Skip to content

Commit 7d0ddbc

Browse files
committed
initial commit
0 parents  commit 7d0ddbc

75 files changed

Lines changed: 1704 additions & 0 deletions

File tree

Some content is hidden

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

.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+
gradle.properties

.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/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: 23 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.

.idea/vcs.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.

app/.gitignore

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Gradle files
2+
.gradle/
3+
build/
4+
5+
# Local configuration file (sdk path, etc)
6+
local.properties
7+
8+
# Log/OS Files
9+
*.log
10+
11+
# Android Studio generated files and folders
12+
captures/
13+
.externalNativeBuild/
14+
.cxx/
15+
*.apk
16+
output.json
17+
18+
# IntelliJ
19+
*.iml
20+
.idea/
21+
22+
# Keystore files
23+
*.jks
24+
*.keystore
25+
26+
# Google Services (e.g. APIs or Firebase)
27+
google-services.json
28+
29+
# Android Profiling
30+
*.hprof
31+
32+
gradle.properties

app/build.gradle

Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
plugins {
2+
id 'com.android.application'
3+
id 'org.jetbrains.kotlin.android'
4+
id 'kotlin-kapt'
5+
id "dagger.hilt.android.plugin"
6+
}
7+
8+
android {
9+
compileSdk 32
10+
11+
defaultConfig {
12+
applicationId "com.farhan.tanvir.androidcleanarchitecture"
13+
minSdk 21
14+
targetSdk 32
15+
versionCode 1
16+
versionName "1.0"
17+
18+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19+
vectorDrawables {
20+
useSupportLibrary true
21+
}
22+
buildConfigField("String","BASE_URL",BASE_URL)
23+
buildConfigField("String","POSTER_URL",POSTER_URL)
24+
25+
}
26+
27+
buildTypes {
28+
release {
29+
minifyEnabled false
30+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
31+
}
32+
}
33+
compileOptions {
34+
sourceCompatibility JavaVersion.VERSION_1_8
35+
targetCompatibility JavaVersion.VERSION_1_8
36+
}
37+
kotlinOptions {
38+
jvmTarget = '1.8'
39+
}
40+
buildFeatures {
41+
compose true
42+
}
43+
composeOptions {
44+
kotlinCompilerExtensionVersion compose_version
45+
}
46+
packagingOptions {
47+
resources {
48+
excludes += '/META-INF/{AL2.0,LGPL2.1}'
49+
}
50+
}
51+
}
52+
53+
dependencies {
54+
55+
implementation 'androidx.core:core-ktx:1.7.0'
56+
implementation "androidx.compose.ui:ui:$compose_version"
57+
implementation "androidx.compose.material:material:$compose_version"
58+
implementation "androidx.compose.ui:ui-tooling-preview:$compose_version"
59+
implementation 'androidx.lifecycle:lifecycle-runtime-ktx:2.3.1'
60+
implementation 'androidx.activity:activity-compose:1.3.1'
61+
implementation project(path: ':data')
62+
implementation project(path: ':domain')
63+
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
64+
implementation 'androidx.lifecycle:lifecycle-livedata-ktx:2.4.0'
65+
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.4.0'
66+
testImplementation 'junit:junit:4.13.2'
67+
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
68+
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
69+
androidTestImplementation "androidx.compose.ui:ui-test-junit4:$compose_version"
70+
debugImplementation "androidx.compose.ui:ui-tooling:$compose_version"
71+
72+
//hilt
73+
implementation "com.google.dagger:hilt-android:$hilt_version"
74+
kapt "com.google.dagger:hilt-compiler:$hilt_version"
75+
implementation 'androidx.hilt:hilt-navigation-compose:1.0.0'
76+
77+
// Retrofit
78+
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
79+
implementation 'com.squareup.retrofit2:converter-gson:2.9.0'
80+
implementation("com.jakewharton.retrofit:retrofit2-kotlinx-serialization-converter:0.8.0")
81+
82+
//GSON
83+
implementation 'com.google.code.gson:gson:2.8.9'
84+
85+
// Coil
86+
implementation("io.coil-kt:coil-compose:1.3.2")
87+
88+
// System UI Controller - Accompanist
89+
implementation "com.google.accompanist:accompanist-systemuicontroller:0.17.0"
90+
}
91+
92+
kapt {
93+
correctErrorTypes true
94+
}

app/proguard-rules.pro

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
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.
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+
15+
# Uncomment this to preserve the line number information for
16+
# debugging stack traces.
17+
#-keepattributes SourceFile,LineNumberTable
18+
19+
# If you keep the line number information, uncomment this to
20+
# hide the original source file name.
21+
#-renamesourcefileattribute SourceFile
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
package com.farhan.tanvir.androidcleanarchitecture
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.farhan.tanvir.androidcleanarchitecture", appContext.packageName)
23+
}
24+
}

0 commit comments

Comments
 (0)