2017-07-25 04:37:23 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2017-11-29 02:11:15 +00:00
|
|
|
|
2018-09-05 00:45:01 +00:00
|
|
|
def acra = new Properties()
|
2018-10-16 01:41:33 +00:00
|
|
|
acra.load(new FileInputStream("app/acra.properties"))
|
|
|
|
|
2018-09-05 00:45:01 +00:00
|
|
|
def keystorePropertiesFile = rootProject.file("keystore.properties")
|
|
|
|
def keystoreProperties = new Properties()
|
|
|
|
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
|
|
|
|
|
2017-07-25 04:37:23 +00:00
|
|
|
android {
|
2017-08-23 17:24:48 +00:00
|
|
|
configurations.all {
|
|
|
|
resolutionStrategy.force 'com.google.code.findbugs:jsr305:3.0.1'
|
|
|
|
}
|
2017-07-27 17:43:55 +00:00
|
|
|
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'
|
|
|
|
}
|
2018-10-01 22:52:24 +00:00
|
|
|
compileSdkVersion 28
|
2018-10-16 12:30:28 +00:00
|
|
|
buildToolsVersion '28.0.3'
|
2017-08-07 22:54:18 +00:00
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
2017-07-25 04:37:23 +00:00
|
|
|
defaultConfig {
|
|
|
|
applicationId "com.wbrawner.simplemarkdown"
|
2017-08-23 19:23:18 +00:00
|
|
|
minSdkVersion 19
|
2018-10-01 22:52:24 +00:00
|
|
|
targetSdkVersion 28
|
2018-09-05 00:45:01 +00:00
|
|
|
versionCode 16
|
|
|
|
versionName "0.6.0"
|
2017-07-25 04:37:23 +00:00
|
|
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
2018-10-16 01:41:33 +00:00
|
|
|
buildConfigField "String", "ACRA_URL", "\"${acra.getProperty("url")}\""
|
|
|
|
buildConfigField "String", "ACRA_USER", "\"${acra.getProperty("user")}\""
|
|
|
|
buildConfigField "String", "ACRA_PASS", "\"${acra.getProperty("pass")}\""
|
2017-07-25 04:37:23 +00:00
|
|
|
}
|
2018-09-05 00:45:01 +00:00
|
|
|
signingConfigs {
|
|
|
|
release {
|
|
|
|
keyAlias keystoreProperties['keyAlias']
|
|
|
|
keyPassword keystoreProperties['keyPassword']
|
|
|
|
storeFile file(keystoreProperties['storeFile'])
|
|
|
|
storePassword keystoreProperties['storePassword']
|
|
|
|
}
|
|
|
|
}
|
2017-07-25 04:37:23 +00:00
|
|
|
buildTypes {
|
2019-02-10 19:12:51 +00:00
|
|
|
debug {
|
|
|
|
resValue "string", "adbmob_ad_unit_id", "ca-app-pub-3940256099942544/6300978111"
|
|
|
|
}
|
2017-07-25 04:37:23 +00:00
|
|
|
release {
|
2017-12-24 01:24:55 +00:00
|
|
|
minifyEnabled true
|
2017-07-25 04:37:23 +00:00
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2018-09-05 00:45:01 +00:00
|
|
|
signingConfig signingConfigs.release
|
2019-02-10 19:12:51 +00:00
|
|
|
resValue "string", "adbmob_ad_unit_id", "ca-app-pub-3319579963502409/4464724664"
|
2017-07-25 04:37:23 +00:00
|
|
|
}
|
|
|
|
}
|
2017-12-24 01:24:55 +00:00
|
|
|
flavorDimensions "platform"
|
|
|
|
productFlavors {
|
|
|
|
standard {}
|
|
|
|
samsung {
|
|
|
|
applicationId "com.wbrawner.simplemarkdown.samsung"
|
|
|
|
minSdkVersion 21
|
|
|
|
}
|
|
|
|
}
|
2017-07-29 17:25:30 +00:00
|
|
|
dexOptions {
|
|
|
|
jumboMode true
|
|
|
|
}
|
2018-01-27 22:51:45 +00:00
|
|
|
testOptions {
|
|
|
|
unitTests {
|
|
|
|
includeAndroidResources = true
|
|
|
|
}
|
|
|
|
}
|
2017-07-25 04:37:23 +00:00
|
|
|
}
|
|
|
|
|
2017-12-24 04:27:38 +00:00
|
|
|
ext {
|
2019-02-10 19:15:47 +00:00
|
|
|
acraVersion = '5.2.0'
|
2018-10-01 22:52:24 +00:00
|
|
|
support_version = "28.0.0"
|
2017-12-24 04:27:38 +00:00
|
|
|
}
|
|
|
|
|
2017-07-25 04:37:23 +00:00
|
|
|
dependencies {
|
2018-09-05 00:45:01 +00:00
|
|
|
annotationProcessor 'com.google.dagger:dagger-compiler:2.16'
|
2017-07-25 04:37:23 +00:00
|
|
|
annotationProcessor 'com.jakewharton:butterknife-compiler:8.7.0'
|
2017-12-24 01:24:55 +00:00
|
|
|
testImplementation 'junit:junit:4.12'
|
2018-09-05 00:45:01 +00:00
|
|
|
testImplementation 'org.robolectric:robolectric:4.1'
|
|
|
|
implementation fileTree(include: ['*.jar'], dir: 'libs')
|
2017-12-24 01:24:55 +00:00
|
|
|
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
|
|
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
|
|
})
|
2018-10-01 22:52:24 +00:00
|
|
|
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
|
|
|
|
androidTestImplementation 'com.android.support.test:runner:1.0.2'
|
2018-09-05 00:45:01 +00:00
|
|
|
androidTestImplementation 'com.android.support.test:rules:1.0.2'
|
2017-12-24 01:24:55 +00:00
|
|
|
androidTestImplementation 'com.android.support.test.uiautomator:uiautomator-v18:2.1.3'
|
|
|
|
implementation "com.android.support:appcompat-v7:$support_version"
|
2018-10-01 22:52:24 +00:00
|
|
|
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
|
2017-12-24 01:24:55 +00:00
|
|
|
implementation "com.android.support:design:$support_version"
|
|
|
|
implementation "com.android.support:support-v13:$support_version"
|
|
|
|
implementation 'com.commonsware.cwac:anddown:0.3.0'
|
2018-09-05 00:45:01 +00:00
|
|
|
implementation 'com.google.dagger:dagger:2.16'
|
|
|
|
implementation 'com.jakewharton:butterknife:8.8.1'
|
2017-12-24 01:24:55 +00:00
|
|
|
implementation 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
|
|
|
|
implementation 'com.jakewharton.rxbinding2:rxbinding-design:2.0.0'
|
2018-10-01 22:52:24 +00:00
|
|
|
implementation 'io.reactivex.rxjava2:rxandroid:2.1.0'
|
2018-09-05 00:45:01 +00:00
|
|
|
implementation 'io.reactivex.rxjava2:rxjava:2.2.6'
|
2018-10-16 01:41:33 +00:00
|
|
|
implementation "ch.acra:acra-http:$acraVersion"
|
2019-02-10 19:12:51 +00:00
|
|
|
implementation 'com.google.firebase:firebase-core:16.0.7'
|
|
|
|
implementation 'com.google.firebase:firebase-ads:17.1.3'
|
|
|
|
implementation 'com.android.billingclient:billing:1.2'
|
2017-12-24 01:24:55 +00:00
|
|
|
samsungImplementation project(":IAP5Helper")
|
2017-07-25 04:37:23 +00:00
|
|
|
}
|
2019-02-10 19:12:51 +00:00
|
|
|
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|