Skip to content

Commit

Permalink
Fix build out of the box (#59) (#60)
Browse files Browse the repository at this point in the history
* Update README.md

* update gitignore file to ignore idea cache and modules files

* create default values to the needed keys in order to allow building out of the box
  • Loading branch information
b-lam committed Feb 16, 2019
1 parent c29f88c commit a4cd485
Show file tree
Hide file tree
Showing 3 changed files with 107 additions and 101 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,9 @@
/local.properties
/.idea/workspace.xml
/.idea/libraries
/.idea/caches
/.idea/modules
.DS_Store
/build
/captures
.externalNativeBuild
/gradle.properties
.externalNativeBuild
198 changes: 99 additions & 99 deletions app/build.gradle
Original file line number Diff line number Diff line change
@@ -1,100 +1,100 @@
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'io.fabric'

android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.b_lam.resplash"
minSdkVersion 22
targetSdkVersion 28
versionCode 23
versionName "1.3.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField("String", "RELEASE_APP_ID", RELEASE_APP_ID)
buildConfigField("String", "RELEASE_SECRET", RELEASE_SECRET)
buildConfigField("String", "DEV_APP_ID", DEV_APP_ID)
buildConfigField("String", "DEV_SECRET", DEV_SECRET)
buildConfigField("String", "GOOGLE_PLAY_LICENSE_KEY", GOOGLE_PLAY_LICENSE_KEY)

javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
buildTypes {
release {
minifyEnabled false
debuggable false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
applicationIdSuffix ".debug"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
disable 'MissingTranslation'
}
}

repositories {
mavenCentral()
google()
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0-alpha01'
implementation 'androidx.fragment:fragment:1.1.0-alpha03'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
implementation 'androidx.preference:preference:1.1.0-alpha02'
implementation 'androidx.room:room-runtime:2.1.0-alpha04'
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.1.0-alpha03'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
implementation 'com.github.bumptech.glide:glide:4.8.0'
implementation 'com.github.chrisbanes:PhotoView:2.2.0'
implementation 'com.mikepenz:materialdrawer:6.1.1'
implementation 'com.mikepenz:fastadapter:3.3.1'
implementation 'com.mikepenz:fastadapter-commons:3.3.1'
implementation 'com.mikepenz:fastadapter-extensions-expandable:3.3.1'
implementation 'com.mikepenz:fastadapter-extensions:3.3.1'
implementation 'com.mikepenz:materialize:1.2.0'
implementation 'com.jakewharton:butterknife:10.0.0'
implementation 'com.github.clans:fab:1.6.4'
implementation 'com.romandanylyk:pageindicatorview:1.0.3'
implementation 'com.airbnb.android:lottie:3.0.0-beta1'
implementation 'org.ocpsoft.prettytime:prettytime:4.0.1.Final'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.8'

kapt 'com.jakewharton:butterknife-compiler:10.0.0'
kapt 'com.github.bumptech.glide:compiler:4.8.0'
kapt "androidx.lifecycle:lifecycle-compiler:2.0.0"
kapt 'androidx.room:room-compiler:2.1.0-alpha04'

testImplementation 'junit:junit:4.12'
}

kapt {
generateStubs = true
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'
apply plugin: 'kotlin-kapt'
apply plugin: 'io.fabric'

android {
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig {
applicationId "com.b_lam.resplash"
minSdkVersion 22
targetSdkVersion 28
versionCode 23
versionName "1.3.3"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
buildConfigField("String", "RELEASE_APP_ID", project.RELEASE_APP_ID)
buildConfigField("String", "RELEASE_SECRET", project.RELEASE_SECRET)
buildConfigField("String", "DEV_APP_ID", project.DEV_APP_ID)
buildConfigField("String", "DEV_SECRET", project.DEV_SECRET)
buildConfigField("String", "GOOGLE_PLAY_LICENSE_KEY", project.GOOGLE_PLAY_LICENSE_KEY)

javaCompileOptions {
annotationProcessorOptions {
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
}
}
}
buildTypes {
release {
minifyEnabled false
debuggable false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
debug {
debuggable true
applicationIdSuffix ".debug"
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
disable 'MissingTranslation'
}
}

repositories {
mavenCentral()
google()
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
exclude group: 'com.android.support', module: 'support-annotations'
})
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.1.0-alpha01'
implementation 'androidx.fragment:fragment:1.1.0-alpha03'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
implementation 'androidx.preference:preference:1.1.0-alpha02'
implementation 'androidx.room:room-runtime:2.1.0-alpha04'
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
implementation 'androidx.cardview:cardview:1.0.0'
implementation 'com.google.android.material:material:1.1.0-alpha03'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
implementation 'com.squareup.okhttp3:okhttp:3.12.1'
implementation 'com.github.bumptech.glide:glide:4.8.0'
implementation 'com.github.chrisbanes:PhotoView:2.2.0'
implementation 'com.mikepenz:materialdrawer:6.1.1'
implementation 'com.mikepenz:fastadapter:3.3.1'
implementation 'com.mikepenz:fastadapter-commons:3.3.1'
implementation 'com.mikepenz:fastadapter-extensions-expandable:3.3.1'
implementation 'com.mikepenz:fastadapter-extensions:3.3.1'
implementation 'com.mikepenz:materialize:1.2.0'
implementation 'com.jakewharton:butterknife:10.0.0'
implementation 'com.github.clans:fab:1.6.4'
implementation 'com.romandanylyk:pageindicatorview:1.0.3'
implementation 'com.airbnb.android:lottie:3.0.0-beta1'
implementation 'org.ocpsoft.prettytime:prettytime:4.0.1.Final'
implementation 'com.google.firebase:firebase-core:16.0.6'
implementation 'com.crashlytics.sdk.android:crashlytics:2.9.8'

kapt 'com.jakewharton:butterknife-compiler:10.0.0'
kapt 'com.github.bumptech.glide:compiler:4.8.0'
kapt "androidx.lifecycle:lifecycle-compiler:2.0.0"
kapt 'androidx.room:room-compiler:2.1.0-alpha04'

testImplementation 'junit:junit:4.12'
}

kapt {
generateStubs = true
}

apply plugin: 'com.google.gms.google-services'
5 changes: 5 additions & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
RELEASE_APP_ID=""
RELEASE_SECRET=""
DEV_APP_ID=""
DEV_SECRET=""
GOOGLE_PLAY_LICENSE_KEY=""

0 comments on commit a4cd485

Please sign in to comment.