1
0
mirror of https://github.com/AllanWang/Frost-for-Facebook.git synced 2024-11-10 13:02:35 +01:00
Frost-for-Facebook/app/build.gradle

198 lines
6.8 KiB
Groovy
Raw Normal View History

2017-05-30 00:05:26 +02:00
apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
2017-06-29 19:12:18 +02:00
apply plugin: 'kotlin-kapt'
apply plugin: 'com.getkeepsafe.dexcount'
apply plugin: 'com.gladed.androidgitversion'
2017-07-03 04:55:52 +02:00
2017-05-30 00:05:26 +02:00
android {
compileSdkVersion kau.targetSdk
buildToolsVersion kau.buildTools
2017-05-30 00:05:26 +02:00
2017-07-02 20:57:57 +02:00
androidGitVersion {
v1.4.5 (#174) * Update/kau (#125) * Update logger * Clean imports and bring back reactive libs * Update dependencies and make billing async * Misc (#128) * Update null * Attempt to improve transparent theme backgrounds * Update menu * Move injections to visible method and reduce offset * Update searchview and logging * Clean temp strings and add network states * Move console blacklist to web state * Change some logs to info * Move glide loader to onCreate (#135) * Remove commit number increments (#139) * Fix/misc (#140) * Add canadian locale to toLowerCase * Add try catch to JsAssets * Disable error throwing for bad search subject * Log more throwables quietly * Check internet connection before fetching username * Remove name check in frost notifications * Add activity lifecycle logger * Add rxjava to lib showcase * Move network checker to io thread (#150) * Update dependency * Blank * Feature/jsoup debugger (#152) * Create debugger * Update debugger content * Create debugging logic * Finalize and test debugger * Add reload listener * Fix/pro crash without play store (#155) * Update changelog * Check if iab service exists * Add checker before launching play store request * Separate strings * Enhancement/message notifications (#157) * Map message notifs to the headless html extractor * Update strings * Bring im notifs out of alpha * Update changelog * Remove confirmation dialog (#159) * Separate message notifications and add click intents (#171) * Separate message notifications and add click intent for group notifications * Add comments and finalize * Feature/scroll down on message thread (#172) * Add hook for scroll * Update changelog * Add custom navdrawer layout (#173) * Add faq for auto play * Update changelog * Fix page banner bg (#163)
2017-08-15 05:48:39 +02:00
codeFormat = 'MMNNPPXX'
format = '%tag%%.count%%-commit%'
2017-07-02 20:57:57 +02:00
prefix 'v'
}
2017-05-30 00:05:26 +02:00
defaultConfig {
v1.4.5 (#174) * Update/kau (#125) * Update logger * Clean imports and bring back reactive libs * Update dependencies and make billing async * Misc (#128) * Update null * Attempt to improve transparent theme backgrounds * Update menu * Move injections to visible method and reduce offset * Update searchview and logging * Clean temp strings and add network states * Move console blacklist to web state * Change some logs to info * Move glide loader to onCreate (#135) * Remove commit number increments (#139) * Fix/misc (#140) * Add canadian locale to toLowerCase * Add try catch to JsAssets * Disable error throwing for bad search subject * Log more throwables quietly * Check internet connection before fetching username * Remove name check in frost notifications * Add activity lifecycle logger * Add rxjava to lib showcase * Move network checker to io thread (#150) * Update dependency * Blank * Feature/jsoup debugger (#152) * Create debugger * Update debugger content * Create debugging logic * Finalize and test debugger * Add reload listener * Fix/pro crash without play store (#155) * Update changelog * Check if iab service exists * Add checker before launching play store request * Separate strings * Enhancement/message notifications (#157) * Map message notifs to the headless html extractor * Update strings * Bring im notifs out of alpha * Update changelog * Remove confirmation dialog (#159) * Separate message notifications and add click intents (#171) * Separate message notifications and add click intent for group notifications * Add comments and finalize * Feature/scroll down on message thread (#172) * Add hook for scroll * Update changelog * Add custom navdrawer layout (#173) * Add faq for auto play * Update changelog * Fix page banner bg (#163)
2017-08-15 05:48:39 +02:00
applicationId "${project.APP_GROUP}." + project.APP_ID.toLowerCase(Locale.CANADA)
minSdkVersion kau.minSdk
targetSdkVersion kau.targetSdk
2017-07-02 19:36:38 +02:00
versionCode androidGitVersion.code()
versionName androidGitVersion.name()
2017-05-30 04:47:52 +02:00
multiDexEnabled true
2017-05-30 00:05:26 +02:00
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
applicationVariants.all { variant ->
variant.outputs.all {
outputFileName = "${project.APP_ID}-${variant.buildType.name}.apk"
2017-05-30 00:05:26 +02:00
}
}
2017-06-02 03:09:43 +02:00
lintOptions {
warningsAsErrors true
v1.4.5 (#174) * Update/kau (#125) * Update logger * Clean imports and bring back reactive libs * Update dependencies and make billing async * Misc (#128) * Update null * Attempt to improve transparent theme backgrounds * Update menu * Move injections to visible method and reduce offset * Update searchview and logging * Clean temp strings and add network states * Move console blacklist to web state * Change some logs to info * Move glide loader to onCreate (#135) * Remove commit number increments (#139) * Fix/misc (#140) * Add canadian locale to toLowerCase * Add try catch to JsAssets * Disable error throwing for bad search subject * Log more throwables quietly * Check internet connection before fetching username * Remove name check in frost notifications * Add activity lifecycle logger * Add rxjava to lib showcase * Move network checker to io thread (#150) * Update dependency * Blank * Feature/jsoup debugger (#152) * Create debugger * Update debugger content * Create debugging logic * Finalize and test debugger * Add reload listener * Fix/pro crash without play store (#155) * Update changelog * Check if iab service exists * Add checker before launching play store request * Separate strings * Enhancement/message notifications (#157) * Map message notifs to the headless html extractor * Update strings * Bring im notifs out of alpha * Update changelog * Remove confirmation dialog (#159) * Separate message notifications and add click intents (#171) * Separate message notifications and add click intent for group notifications * Add comments and finalize * Feature/scroll down on message thread (#172) * Add hook for scroll * Update changelog * Add custom navdrawer layout (#173) * Add faq for auto play * Update changelog * Fix page banner bg (#163)
2017-08-15 05:48:39 +02:00
disable 'TrustAllX509TrustManager',
'UnusedResources',
'ContentDescription',
'RtlSymmetry',
'MissingTranslation'
xmlReport false
textReport true
textOutput 'stdout'
}
2017-06-02 03:09:43 +02:00
signingConfigs {
2017-07-03 02:24:17 +02:00
debug {
storeFile file("../files/debug.keystore")
storePassword "debugKey"
keyAlias "debugKey"
keyPassword "debugKey"
}
2017-06-02 03:09:43 +02:00
test {
storeFile file("../files/test.keystore")
storePassword "testkey"
keyAlias "testKey"
keyPassword "testkey"
}
2017-06-02 03:09:43 +02:00
}
2017-05-30 00:05:26 +02:00
buildTypes {
2017-06-02 03:09:43 +02:00
debug {
2017-06-04 07:24:19 +02:00
minifyEnabled false
shrinkResources false
2017-06-02 03:09:43 +02:00
applicationIdSuffix ".debug"
versionNameSuffix "-debug"
signingConfig signingConfigs.debug
resValue "string", "frost_name", "Frost Debug"
2017-06-21 00:50:08 +02:00
resValue "string", "frost_web", "Frost Web Debug"
ext.enableBugsnag = false
2017-06-02 03:09:43 +02:00
}
releaseTest {
2017-06-04 08:03:23 +02:00
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2017-06-02 03:09:43 +02:00
applicationIdSuffix ".test"
versionNameSuffix "-test"
signingConfig signingConfigs.test
resValue "string", "frost_name", "Frost Test"
2017-06-21 00:50:08 +02:00
resValue "string", "frost_web", "Frost Web Test"
2017-06-02 03:09:43 +02:00
}
2017-05-30 00:05:26 +02:00
release {
2017-07-01 07:50:58 +02:00
minifyEnabled true
shrinkResources true
2017-05-30 00:05:26 +02:00
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
resValue "string", "frost_name", "Frost"
2017-06-21 00:50:08 +02:00
resValue "string", "frost_web", "Frost Web"
2017-05-30 00:05:26 +02:00
}
}
2017-06-02 03:09:43 +02:00
2017-05-30 00:05:26 +02:00
sourceSets {
main.java.srcDirs += 'src/main/kotlin'
2017-06-01 02:11:46 +02:00
test.java.srcDirs += 'src/test/kotlin'
androidTest.java.srcDirs += 'src/androidTest/kotlin'
2017-05-30 00:05:26 +02:00
}
2017-06-13 01:51:27 +02:00
packagingOptions {
pickFirst 'META-INF/library_release.kotlin_module'
}
2017-05-30 00:05:26 +02:00
}
2017-06-26 06:11:15 +02:00
repositories {
google()
2017-06-26 06:11:15 +02:00
jcenter()
maven { url "https://jitpack.io" }
}
2017-05-30 00:05:26 +02:00
dependencies {
androidTestImplementation("com.android.support.test:runner:${kau.testRunner}") {
2017-05-30 00:05:26 +02:00
exclude group: 'com.android.support', module: 'support-annotations'
}
implementation "com.android.support:exifinterface:${kau.supportLibs}"
androidTestImplementation kauDependency.kotlinTest
androidTestImplementation "com.android.support.test:rules:${TEST_RULE}"
testImplementation kauDependency.kotlinTest
testImplementation "org.jetbrains.kotlin:kotlin-reflect:${KOTLIN}"
testImplementation kauDependency.junit
implementation "org.jetbrains.kotlin:kotlin-stdlib:${KOTLIN}"
//noinspection GradleDependency
implementation "ca.allanwang.kau:adapter:$KAU"
//noinspection GradleDependency
implementation "ca.allanwang.kau:about:$KAU"
//noinspection GradleDependency
implementation "ca.allanwang.kau:colorpicker:$KAU"
//noinspection GradleDependency
implementation "ca.allanwang.kau:mediapicker:$KAU"
//noinspection GradleDependency
implementation "ca.allanwang.kau:kpref-activity:$KAU"
//noinspection GradleDependency
implementation "ca.allanwang.kau:searchview:$KAU"
//noinspection GradleDependency
v1.4.5 (#174) * Update/kau (#125) * Update logger * Clean imports and bring back reactive libs * Update dependencies and make billing async * Misc (#128) * Update null * Attempt to improve transparent theme backgrounds * Update menu * Move injections to visible method and reduce offset * Update searchview and logging * Clean temp strings and add network states * Move console blacklist to web state * Change some logs to info * Move glide loader to onCreate (#135) * Remove commit number increments (#139) * Fix/misc (#140) * Add canadian locale to toLowerCase * Add try catch to JsAssets * Disable error throwing for bad search subject * Log more throwables quietly * Check internet connection before fetching username * Remove name check in frost notifications * Add activity lifecycle logger * Add rxjava to lib showcase * Move network checker to io thread (#150) * Update dependency * Blank * Feature/jsoup debugger (#152) * Create debugger * Update debugger content * Create debugging logic * Finalize and test debugger * Add reload listener * Fix/pro crash without play store (#155) * Update changelog * Check if iab service exists * Add checker before launching play store request * Separate strings * Enhancement/message notifications (#157) * Map message notifs to the headless html extractor * Update strings * Bring im notifs out of alpha * Update changelog * Remove confirmation dialog (#159) * Separate message notifications and add click intents (#171) * Separate message notifications and add click intent for group notifications * Add comments and finalize * Feature/scroll down on message thread (#172) * Add hook for scroll * Update changelog * Add custom navdrawer layout (#173) * Add faq for auto play * Update changelog * Fix page banner bg (#163)
2017-08-15 05:48:39 +02:00
implementation "ca.allanwang.kau:core:$KAU"
//noinspection GradleDependency
implementation "ca.allanwang.kau:core-ui:$KAU"
implementation "org.apache.commons:commons-text:${COMMONS_TEXT}"
implementation "com.devbrackets.android:exomedia:${EXOMEDIA}"
implementation"com.mikepenz:fastadapter-extensions:${kau.fastAdapter}@aar"
//noinspection GradleDependency
implementation "com.github.bumptech.glide:okhttp3-integration:${kau.glide}"
//noinspection GradleDependency
kapt "com.github.bumptech.glide:compiler:${kau.glide}"
implementation "com.fasterxml.jackson.core:jackson-databind:2.9.3"
2017-08-30 20:11:16 +02:00
//noinspection GradleDependency
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${LEAK_CANARY}"
2017-08-30 20:11:16 +02:00
//noinspection GradleDependency
releaseTestImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${LEAK_CANARY}"
//noinspection GradleDependency
debugImplementation "com.squareup.leakcanary:leakcanary-android:${LEAK_CANARY}"
// testImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${LEAK_CANARY}"
implementation "com.github.Raizlabs.DBFlow:dbflow:${DBFLOW}"
implementation "com.github.Raizlabs.DBFlow:dbflow-core:${DBFLOW}"
2017-05-31 02:26:14 +02:00
kapt "com.github.Raizlabs.DBFlow:dbflow-processor:${DBFLOW}"
implementation "com.github.Raizlabs.DBFlow:dbflow-kotlinextensions:${DBFLOW}"
2017-06-26 23:54:07 +02:00
2017-05-30 00:05:26 +02:00
//Icons
implementation "com.mikepenz:material-design-iconic-typeface:${kau.iconicsMaterial}@aar"
implementation "com.mikepenz:community-material-typeface:${kau.iconicsCommunity}@aar"
2017-05-30 00:05:26 +02:00
implementation "org.jsoup:jsoup:${JSOUP}"
implementation "com.squareup.okhttp3:okhttp:${OKHTTP}"
implementation "com.squareup.okhttp3:logging-interceptor:${OKHTTP}"
implementation "co.zsmb:materialdrawer-kt:${MATERIAL_DRAWER_KT}"
implementation "nz.bradcampbell:paperparcel:${PAPER_PARCEL}"
implementation "nz.bradcampbell:paperparcel-kotlin:${PAPER_PARCEL}"
2017-06-29 19:12:18 +02:00
kapt "nz.bradcampbell:paperparcel-compiler:${PAPER_PARCEL}"
implementation "com.bugsnag:bugsnag-android:${BUGSNAG}"
implementation "com.davemorrissey.labs:subsampling-scale-image-view:${SCALE_IMAGE_VIEW}"
implementation "com.sothree.slidinguppanel:library:${SLIDING_PANEL}"
v1.4.5 (#174) * Update/kau (#125) * Update logger * Clean imports and bring back reactive libs * Update dependencies and make billing async * Misc (#128) * Update null * Attempt to improve transparent theme backgrounds * Update menu * Move injections to visible method and reduce offset * Update searchview and logging * Clean temp strings and add network states * Move console blacklist to web state * Change some logs to info * Move glide loader to onCreate (#135) * Remove commit number increments (#139) * Fix/misc (#140) * Add canadian locale to toLowerCase * Add try catch to JsAssets * Disable error throwing for bad search subject * Log more throwables quietly * Check internet connection before fetching username * Remove name check in frost notifications * Add activity lifecycle logger * Add rxjava to lib showcase * Move network checker to io thread (#150) * Update dependency * Blank * Feature/jsoup debugger (#152) * Create debugger * Update debugger content * Create debugging logic * Finalize and test debugger * Add reload listener * Fix/pro crash without play store (#155) * Update changelog * Check if iab service exists * Add checker before launching play store request * Separate strings * Enhancement/message notifications (#157) * Map message notifs to the headless html extractor * Update strings * Bring im notifs out of alpha * Update changelog * Remove confirmation dialog (#159) * Separate message notifications and add click intents (#171) * Separate message notifications and add click intent for group notifications * Add comments and finalize * Feature/scroll down on message thread (#172) * Add hook for scroll * Update changelog * Add custom navdrawer layout (#173) * Add faq for auto play * Update changelog * Fix page banner bg (#163)
2017-08-15 05:48:39 +02:00
//Reactive Libs
implementation "io.reactivex.rxjava2:rxjava:${RX_JAVA}"
v1.4.5 (#174) * Update/kau (#125) * Update logger * Clean imports and bring back reactive libs * Update dependencies and make billing async * Misc (#128) * Update null * Attempt to improve transparent theme backgrounds * Update menu * Move injections to visible method and reduce offset * Update searchview and logging * Clean temp strings and add network states * Move console blacklist to web state * Change some logs to info * Move glide loader to onCreate (#135) * Remove commit number increments (#139) * Fix/misc (#140) * Add canadian locale to toLowerCase * Add try catch to JsAssets * Disable error throwing for bad search subject * Log more throwables quietly * Check internet connection before fetching username * Remove name check in frost notifications * Add activity lifecycle logger * Add rxjava to lib showcase * Move network checker to io thread (#150) * Update dependency * Blank * Feature/jsoup debugger (#152) * Create debugger * Update debugger content * Create debugging logic * Finalize and test debugger * Add reload listener * Fix/pro crash without play store (#155) * Update changelog * Check if iab service exists * Add checker before launching play store request * Separate strings * Enhancement/message notifications (#157) * Map message notifs to the headless html extractor * Update strings * Bring im notifs out of alpha * Update changelog * Remove confirmation dialog (#159) * Separate message notifications and add click intents (#171) * Separate message notifications and add click intent for group notifications * Add comments and finalize * Feature/scroll down on message thread (#172) * Add hook for scroll * Update changelog * Add custom navdrawer layout (#173) * Add faq for auto play * Update changelog * Fix page banner bg (#163)
2017-08-15 05:48:39 +02:00
implementation "io.reactivex.rxjava2:rxkotlin:${RX_KOTLIN}"
implementation "io.reactivex.rxjava2:rxandroid:${RX_ANDROID}"
implementation "com.github.pwittchen:reactivenetwork-rx2:${RX_NETWORK}"
}
apply plugin: 'com.bugsnag.android.gradle'