Skip to content

Commit dc48843

Browse files
author
Florian Walther
committed
Initial commit
0 parents  commit dc48843

40 files changed

+986
-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: 138 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: 21 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/jarRepositories.xml

Lines changed: 25 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: 14 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: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
apply plugin: 'com.android.application'
2+
apply plugin: 'kotlin-android'
3+
apply plugin: 'kotlin-android-extensions'
4+
apply plugin: 'kotlin-kapt'
5+
apply plugin: "androidx.navigation.safeargs.kotlin"
6+
apply plugin: 'dagger.hilt.android.plugin'
7+
8+
android {
9+
compileSdkVersion rootProject.compileSdkVersion
10+
buildToolsVersion "29.0.3"
11+
12+
defaultConfig {
13+
applicationId "com.codinginflow.imagesearchapp"
14+
minSdkVersion rootProject.minSdkVersion
15+
targetSdkVersion rootProject.targetSdkVersion
16+
versionCode 1
17+
versionName "1.0"
18+
19+
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
20+
21+
buildConfigField("String", "UNSPLASH_ACCESS_KEY", unsplash_access_key)
22+
}
23+
24+
buildTypes {
25+
release {
26+
minifyEnabled false
27+
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
28+
}
29+
}
30+
31+
buildFeatures {
32+
viewBinding true
33+
}
34+
35+
compileOptions {
36+
sourceCompatibility JavaVersion.VERSION_1_8
37+
targetCompatibility JavaVersion.VERSION_1_8
38+
}
39+
40+
kotlinOptions {
41+
jvmTarget = JavaVersion.VERSION_1_8
42+
}
43+
}
44+
45+
dependencies {
46+
// Default dependencies
47+
implementation fileTree(dir: "libs", include: ["*.jar"])
48+
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
49+
implementation "androidx.core:core-ktx:$ktxVersion"
50+
implementation "androidx.appcompat:appcompat:$appCompatVersion"
51+
implementation "androidx.constraintlayout:constraintlayout:$constraintLayoutVersion"
52+
testImplementation "junit:junit:$junitVersion"
53+
androidTestImplementation "androidx.test.ext:junit:$testExtJunitVersion"
54+
androidTestImplementation "androidx.test.espresso:espresso-core:$espressoVersion"
55+
56+
// Navigation Component
57+
implementation "androidx.navigation:navigation-fragment-ktx:$navigationVersion"
58+
implementation "androidx.navigation:navigation-ui-ktx:$navigationVersion"
59+
60+
// Dagger Hilt
61+
implementation "com.google.dagger:hilt-android:$hiltVersion"
62+
kapt "com.google.dagger:hilt-android-compiler:$hiltVersion"
63+
implementation "androidx.hilt:hilt-lifecycle-viewmodel:$hiltAndroidXVersion"
64+
kapt "androidx.hilt:hilt-compiler:$hiltAndroidXVersion"
65+
66+
// Retrofit + GSON
67+
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
68+
implementation "com.squareup.retrofit2:converter-gson:$retrofitVersion"
69+
70+
// Glide
71+
implementation "com.github.bumptech.glide:glide:$glideVersion"
72+
73+
// Paging 3
74+
implementation "androidx.paging:paging-runtime:$pagingVersion"
75+
}
76+
77+
kapt {
78+
correctErrorTypes true
79+
}

0 commit comments

Comments
 (0)