Skip to content

Commit b7891c2

Browse files
Kishan Kumar MauryaKishan Kumar Maurya
authored andcommitted
Project Setup
Dagger Integrated RxJava,MVVM
0 parents  commit b7891c2

File tree

77 files changed

+2094
-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.

77 files changed

+2094
-0
lines changed

.gitignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
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

.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/codeStyles/Project.xml

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

.idea/codeStyles/codeStyleConfig.xml

Lines changed: 5 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: 19 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/runConfigurations.xml

Lines changed: 12 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

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
apply plugin: 'com.android.application'
2+
3+
apply plugin: 'kotlin-android'
4+
5+
apply plugin: 'kotlin-android-extensions'
6+
7+
apply plugin: 'kotlin-kapt'
8+
9+
android {
10+
compileSdkVersion 29
11+
buildToolsVersion "29.0.2"
12+
defaultConfig {
13+
applicationId "com.example.githubfirebaseissue"
14+
minSdkVersion 21
15+
targetSdkVersion 29
16+
versionCode 1
17+
versionName "1.0"
18+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
19+
multiDexEnabled true
20+
}
21+
buildTypes {
22+
release {
23+
minifyEnabled false
24+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
25+
}
26+
}
27+
compileOptions {
28+
sourceCompatibility JavaVersion.VERSION_1_8
29+
targetCompatibility JavaVersion.VERSION_1_8
30+
}
31+
}
32+
33+
dependencies {
34+
implementation fileTree(dir: 'libs', include: ['*.jar'])
35+
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
36+
implementation 'androidx.lifecycle:lifecycle-viewmodel-ktx:2.2.0'
37+
38+
api "androidx.appcompat:appcompat:$appcompat_version"
39+
api "androidx.constraintlayout:constraintlayout:$androidx_constraint_layout_version"
40+
api "androidx.core:core-ktx:$appcompat_version"
41+
api "androidx.recyclerview:recyclerview:$androidx_stable_version"
42+
api "androidx.fragment:fragment:$androidx_stable_version"
43+
44+
api "androidx.fragment:fragment-ktx:$ktx_fragment_version"
45+
api "androidx.lifecycle:lifecycle-extensions:$lifecycle_version"
46+
47+
48+
/* retrofit for network calls */
49+
api "com.squareup.retrofit2:retrofit:$retrofit_version"
50+
api "com.squareup.retrofit2:converter-gson:$retrofit_version"
51+
api "com.squareup.retrofit2:adapter-rxjava:$retrofit_version"
52+
api 'com.squareup.retrofit2:adapter-rxjava2:2.7.1'
53+
api "com.squareup.okhttp3:okhttp:4.3.1"
54+
api "com.squareup.okhttp3:logging-interceptor:$logging_interceptor_version"
55+
56+
api "com.github.bumptech.glide:glide:$glide_version"
57+
kapt "com.github.bumptech.glide:compiler:$glide_version"
58+
api "com.google.android.material:material:$android_material_version"
59+
60+
implementation "io.reactivex.rxjava2:rxandroid:$rxJavaVersion"
61+
implementation "io.reactivex.rxjava2:rxjava:$rxJavaVersion"
62+
63+
// architecture components
64+
implementation "android.arch.lifecycle:runtime:$arch_runtime_version"
65+
implementation "android.arch.lifecycle:extensions:$arch_version"
66+
implementation "android.arch.lifecycle:reactivestreams:$arch_version"
67+
kapt "android.arch.lifecycle:compiler:$arch_version"
68+
69+
70+
// gson for type converters
71+
api "com.google.code.gson:gson:$gson_version"
72+
73+
//shimmer
74+
api 'com.facebook.shimmer:shimmer:0.1.0@aar'
75+
76+
// dagger
77+
implementation "com.google.dagger:dagger:$dagger_version"
78+
implementation "com.google.dagger:dagger-android:$dagger_version"
79+
implementation "com.google.dagger:dagger-android-support:$dagger_version"
80+
kapt "com.google.dagger:dagger-compiler:$dagger_version"
81+
kapt "com.google.dagger:dagger-android-processor:$dagger_version"
82+
83+
//testing
84+
testImplementation "android.arch.core:core-testing:1.1.1"
85+
testImplementation "com.jraska.livedata:testing-ktx:$jraska_version"
86+
testImplementation "junit:junit:$junit_version"
87+
testImplementation "org.mockito:mockito-inline:$mockito_version"
88+
testImplementation 'org.jetbrains.kotlinx:kotlinx-coroutines-test:1.3.2'
89+
testImplementation "com.nhaarman.mockitokotlin2:mockito-kotlin:2.2.0"
90+
testImplementation "org.hamcrest:hamcrest-library:$hamcrest_version"
91+
92+
}

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

0 commit comments

Comments
 (0)