104 lines
4 KiB
Groovy
104 lines
4 KiB
Groovy
apply plugin: 'com.android.application'
|
|
apply plugin: 'kotlin-android-extensions'
|
|
apply plugin: 'kotlin-android'
|
|
apply plugin: 'kotlin-kapt'
|
|
apply plugin: 'io.fabric'
|
|
|
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
def keystoreProperties = new Properties()
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
android {
|
|
configurations.all {
|
|
resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1'
|
|
}
|
|
packagingOptions {
|
|
exclude 'META-INF/LICENSE-LGPL-2.1.txt'
|
|
exclude 'META-INF/LICENSE-LGPL-3.txt'
|
|
exclude 'META-INF/LICENSE-W3C-TEST'
|
|
exclude 'META-INF/LICENSE'
|
|
exclude 'META-INF/DEPENDENCIES'
|
|
}
|
|
compileSdkVersion 'android-Q'
|
|
buildToolsVersion '28.0.3'
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
defaultConfig {
|
|
applicationId "com.wbrawner.simplemarkdown"
|
|
minSdkVersion 19
|
|
targetSdkVersion 'Q'
|
|
multiDexEnabled true
|
|
versionCode 18
|
|
versionName "0.6.0"
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
buildConfigField "boolean", "ENABLE_CUSTOM_CSS", "true"
|
|
}
|
|
signingConfigs {
|
|
release {
|
|
keyAlias keystoreProperties['keyAlias']
|
|
keyPassword keystoreProperties['keyPassword']
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
storePassword keystoreProperties['storePassword']
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled true
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
signingConfig signingConfigs.release
|
|
buildConfigField "boolean", "ENABLE_CUSTOM_CSS", "false"
|
|
}
|
|
}
|
|
flavorDimensions "platform"
|
|
dexOptions {
|
|
jumboMode true
|
|
}
|
|
testOptions {
|
|
unitTests {
|
|
includeAndroidResources = true
|
|
}
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
def lifecycle_version = "2.0.0"
|
|
testImplementation 'junit:junit:4.12'
|
|
testImplementation 'org.robolectric:robolectric:4.2'
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
|
androidTestImplementation('androidx.test.espresso:espresso-core:3.1.0', {
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
})
|
|
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'
|
|
androidTestImplementation 'androidx.test:runner:1.1.1'
|
|
androidTestImplementation 'androidx.test:rules:1.1.1'
|
|
androidTestImplementation 'androidx.test.uiautomator:uiautomator:2.2.0'
|
|
implementation 'androidx.appcompat:appcompat:1.0.2'
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation 'com.google.android.material:material:1.0.0'
|
|
implementation 'androidx.legacy:legacy-support-v13:1.0.0'
|
|
implementation 'com.commonsware.cwac:anddown:0.3.0'
|
|
implementation 'com.google.dagger:dagger:2.22.1'
|
|
annotationProcessor 'com.google.dagger:dagger-compiler:2.22.1'
|
|
kapt 'com.google.dagger:dagger-android-processor:2.22.1'
|
|
kapt 'com.google.dagger:dagger-compiler:2.22.1'
|
|
implementation 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
|
|
implementation 'com.jakewharton.rxbinding2:rxbinding-design:2.0.0'
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
|
|
implementation 'io.reactivex.rxjava2:rxjava:2.2.7'
|
|
implementation 'com.google.firebase:firebase-core:16.0.9'
|
|
implementation 'com.android.billingclient:billing:1.2'
|
|
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.0'
|
|
implementation 'androidx.multidex:multidex:2.0.1'
|
|
implementation "androidx.lifecycle:lifecycle-viewmodel-ktx:$lifecycle_version"
|
|
kapt "androidx.lifecycle:lifecycle-compiler:$lifecycle_version"
|
|
compile "androidx.core:core-ktx:1.0.2"
|
|
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
|
implementation 'androidx.lifecycle:lifecycle-extensions:2.0.0'
|
|
}
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|
|
repositories {
|
|
mavenCentral()
|
|
}
|