Skip to content

Commit 4698ef9

Browse files
committed
initial commit
0 parents  commit 4698ef9

File tree

101 files changed

+1789
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

101 files changed

+1789
-0
lines changed

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
*.iml
2+
.gradle
3+
/local.properties
4+
/.idea/caches
5+
/.idea/libraries
6+
/.idea/modules.xml
7+
/.idea/workspace.xml
8+
/.idea/navEditor.xml
9+
/.idea/assetWizardSettings.xml
10+
.DS_Store
11+
/build
12+
/captures
13+
.externalNativeBuild
14+
.cxx
15+
local.properties
16+
.idea/vcs.xml

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.name

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

app/build.gradle.kts

Lines changed: 112 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,112 @@
1+
plugins {
2+
id("com.android.application")
3+
kotlin("android")
4+
id("dagger.hilt.android.plugin")
5+
id("kotlin-kapt")
6+
}
7+
8+
android {
9+
compileSdk = ProjectConfig.compileSdk
10+
11+
defaultConfig {
12+
applicationId = ProjectConfig.appId
13+
minSdk = ProjectConfig.minSdk
14+
targetSdk = ProjectConfig.targetSdk
15+
versionCode = ProjectConfig.versionCode
16+
versionName = ProjectConfig.versionName
17+
18+
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
19+
vectorDrawables {
20+
useSupportLibrary = true
21+
}
22+
}
23+
24+
buildTypes {
25+
getByName("release") {
26+
isMinifyEnabled = false
27+
}
28+
}
29+
buildFeatures {
30+
compose = true
31+
}
32+
33+
compileOptions {
34+
sourceCompatibility = JavaVersion.VERSION_1_8
35+
targetCompatibility = JavaVersion.VERSION_1_8
36+
}
37+
38+
kotlinOptions {
39+
jvmTarget = "1.8"
40+
}
41+
42+
composeOptions {
43+
kotlinCompilerExtensionVersion = Compose.composeCompilerVersion
44+
}
45+
packagingOptions {
46+
exclude("META-INF/AL2.0")
47+
exclude("META-INF/LGPL2.1")
48+
exclude("**/attach_hotspot_windows.dll")
49+
exclude("META-INF/licenses/ASM")
50+
}
51+
}
52+
53+
dependencies {
54+
55+
implementation(Compose.compiler)
56+
implementation(Compose.ui)
57+
implementation(Compose.uiToolingPreview)
58+
implementation(Compose.hiltNavigationCompose)
59+
implementation(Compose.material)
60+
implementation(Compose.runtime)
61+
implementation(Compose.navigation)
62+
implementation(Compose.viewModelCompose)
63+
implementation(Compose.activityCompose)
64+
65+
implementation(DaggerHilt.hiltAndroid)
66+
kapt(DaggerHilt.hiltCompiler)
67+
68+
implementation(project(Modules.core))
69+
implementation(project(Modules.onboardingPresentation))
70+
implementation(project(Modules.onboardingDomain))
71+
implementation(project(Modules.trackerPresentation))
72+
implementation(project(Modules.trackerDomain))
73+
implementation(project(Modules.trackerData))
74+
75+
implementation(AndroidX.coreKtx)
76+
implementation(AndroidX.appCompat)
77+
78+
implementation(Coil.coilCompose)
79+
implementation(Google.material)
80+
81+
implementation(Retrofit.okHttp)
82+
implementation(Retrofit.retrofit)
83+
implementation(Retrofit.okHttpLoggingInterceptor)
84+
implementation(Retrofit.moshiConverter)
85+
86+
kapt(Room.roomCompiler)
87+
implementation(Room.roomKtx)
88+
implementation(Room.roomRuntime)
89+
90+
testImplementation(Testing.junit4)
91+
testImplementation(Testing.junitAndroidExt)
92+
testImplementation(Testing.truth)
93+
testImplementation(Testing.coroutines)
94+
testImplementation(Testing.turbine)
95+
testImplementation(Testing.composeUiTest)
96+
testImplementation(Testing.mockk)
97+
testImplementation(Testing.mockWebServer)
98+
99+
androidTestImplementation(Testing.junit4)
100+
androidTestImplementation(Testing.junitAndroidExt)
101+
androidTestImplementation(Testing.truth)
102+
androidTestImplementation(Testing.coroutines)
103+
androidTestImplementation(Testing.turbine)
104+
androidTestImplementation(Testing.composeUiTest)
105+
androidTestImplementation(Testing.mockkAndroid)
106+
androidTestImplementation(Testing.mockWebServer)
107+
androidTestImplementation(Testing.hiltTesting)
108+
kaptAndroidTest(DaggerHilt.hiltCompiler)
109+
androidTestImplementation(Testing.testRunner)
110+
111+
112+
}

app/proguard-rules.pro

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Add project specific ProGuard rules here.
2+
# You can control the set of applied configuration files using the
3+
# proguardFiles setting in build.gradle.kts.
4+
#
5+
# For more details, see
6+
# http://developer.android.com/guide/developing/tools/proguard.html
7+
8+
# If your project uses WebView with JS, uncomment the following
9+
# and specify the fully qualified class name to the JavaScript interface
10+
# class:
11+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
12+
# public *;
13+
#}
14+
# Uncomment this to preserve the line number information for
15+
# debugging stack traces.
16+
#-keepattributes SourceFile,LineNumberTable
17+
18+
# If you keep the line number information, uncomment this to
19+
# hide the original source file name.
20+
#-renamesourcefileattribute SourceFile
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.plcoding.calorytracker
2+
3+
import androidx.test.platform.app.InstrumentationRegistry
4+
import androidx.test.ext.junit.runners.AndroidJUnit4
5+
6+
import org.junit.Test
7+
import org.junit.runner.RunWith
8+
9+
import org.junit.Assert.*
10+
11+
/**
12+
* Instrumented test, which will execute on an Android device.
13+
*
14+
* See [testing documentation](http://d.android.com/tools/testing).
15+
*/
16+
@RunWith(AndroidJUnit4::class)
17+
class ExampleInstrumentedTest {
18+
@Test
19+
fun useAppContext() {
20+
// Context of the app under test.
21+
val appContext = InstrumentationRegistry.getInstrumentation().targetContext
22+
assertEquals("com.plcoding.calorytracker", appContext.packageName)
23+
}
24+
}

0 commit comments

Comments
 (0)