2015-05-02 16:40:40 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2015-10-15 01:21:51 +00:00
|
|
|
apply plugin: 'com.getkeepsafe.dexcount'
|
2015-05-02 16:40:40 +00:00
|
|
|
|
|
|
|
android {
|
2017-03-19 01:46:08 +00:00
|
|
|
compileSdkVersion 25
|
|
|
|
buildToolsVersion '25.0.2'
|
2016-03-03 02:39:53 +00:00
|
|
|
|
2015-05-02 16:40:40 +00:00
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 14
|
2017-03-19 01:46:08 +00:00
|
|
|
targetSdkVersion 25
|
2016-11-30 01:16:20 +00:00
|
|
|
versionName "4.4.2"
|
2016-07-31 18:50:03 +00:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
2016-03-03 02:39:53 +00:00
|
|
|
}
|
|
|
|
|
2015-08-21 20:57:19 +00:00
|
|
|
sourceSets {
|
|
|
|
lightningPlus.setRoot('src/LightningPlus')
|
|
|
|
lightningLite.setRoot('src/LightningLite')
|
|
|
|
}
|
2016-03-03 02:39:53 +00:00
|
|
|
|
2015-05-02 16:40:40 +00:00
|
|
|
buildTypes {
|
2015-05-25 16:55:35 +00:00
|
|
|
debug {
|
2015-07-18 18:30:41 +00:00
|
|
|
minifyEnabled false
|
|
|
|
shrinkResources false
|
2015-05-03 11:56:22 +00:00
|
|
|
proguardFiles 'proguard-project.txt'
|
2015-05-02 16:40:40 +00:00
|
|
|
}
|
2015-05-25 16:55:35 +00:00
|
|
|
|
|
|
|
release {
|
2015-05-02 16:40:40 +00:00
|
|
|
minifyEnabled true
|
2015-05-04 16:07:15 +00:00
|
|
|
shrinkResources true
|
2015-05-03 11:56:22 +00:00
|
|
|
proguardFiles 'proguard-project.txt'
|
2015-05-02 16:40:40 +00:00
|
|
|
}
|
|
|
|
}
|
2016-03-03 02:39:53 +00:00
|
|
|
|
2015-05-25 16:55:35 +00:00
|
|
|
productFlavors {
|
2015-06-05 04:03:02 +00:00
|
|
|
lightningPlus {
|
2015-05-25 16:55:35 +00:00
|
|
|
buildConfigField "boolean", "FULL_VERSION", "true"
|
|
|
|
applicationId "acr.browser.lightning"
|
2016-11-30 01:16:20 +00:00
|
|
|
versionCode 91
|
2015-05-25 16:55:35 +00:00
|
|
|
}
|
2016-03-23 03:39:06 +00:00
|
|
|
|
2015-06-05 04:03:02 +00:00
|
|
|
lightningLite {
|
2015-05-25 16:55:35 +00:00
|
|
|
buildConfigField "boolean", "FULL_VERSION", "false"
|
|
|
|
applicationId "acr.browser.barebones"
|
2016-11-30 01:16:20 +00:00
|
|
|
versionCode 93
|
2015-05-25 16:55:35 +00:00
|
|
|
}
|
|
|
|
}
|
2016-03-03 02:39:53 +00:00
|
|
|
|
2015-05-03 11:56:22 +00:00
|
|
|
lintOptions {
|
2015-10-18 02:12:07 +00:00
|
|
|
abortOnError true
|
2015-05-03 11:56:22 +00:00
|
|
|
}
|
2016-03-03 02:39:53 +00:00
|
|
|
|
2015-10-18 03:05:33 +00:00
|
|
|
packagingOptions {
|
2015-10-18 19:15:36 +00:00
|
|
|
exclude '.readme'
|
2015-10-18 03:05:33 +00:00
|
|
|
}
|
2015-05-02 16:40:40 +00:00
|
|
|
}
|
|
|
|
|
2015-10-15 01:21:51 +00:00
|
|
|
dexcount {
|
|
|
|
includeClasses = false
|
|
|
|
includeFieldCount = false
|
2017-03-19 01:46:08 +00:00
|
|
|
format = "tree"
|
2015-10-15 01:21:51 +00:00
|
|
|
orderByMethodCount = true
|
|
|
|
verbose = false
|
|
|
|
}
|
|
|
|
|
2015-05-02 16:40:40 +00:00
|
|
|
dependencies {
|
2016-03-23 03:39:06 +00:00
|
|
|
|
2015-10-22 01:42:22 +00:00
|
|
|
// support libraries
|
2017-04-12 02:38:15 +00:00
|
|
|
def supportLibVersion = '25.3.1'
|
2017-03-19 02:56:30 +00:00
|
|
|
compile "com.android.support:palette-v7:$supportLibVersion"
|
|
|
|
compile "com.android.support:appcompat-v7:$supportLibVersion"
|
|
|
|
compile "com.android.support:design:$supportLibVersion"
|
|
|
|
compile "com.android.support:recyclerview-v7:$supportLibVersion"
|
|
|
|
compile "com.android.support:support-v4:$supportLibVersion"
|
2015-10-22 01:42:22 +00:00
|
|
|
|
2016-05-20 02:52:52 +00:00
|
|
|
// html parsing for reading mode
|
2017-03-19 02:56:30 +00:00
|
|
|
compile 'org.jsoup:jsoup:1.10.2'
|
2015-10-22 01:42:22 +00:00
|
|
|
|
|
|
|
// dependency injection
|
2017-04-23 00:57:59 +00:00
|
|
|
def daggerVersion = '2.10'
|
2017-03-19 02:56:30 +00:00
|
|
|
compile "com.google.dagger:dagger:$daggerVersion"
|
2017-04-23 00:46:41 +00:00
|
|
|
annotationProcessor "com.google.dagger:dagger-compiler:$daggerVersion"
|
2016-05-20 02:52:52 +00:00
|
|
|
provided 'javax.annotation:jsr250-api:1.0'
|
2015-10-22 01:42:22 +00:00
|
|
|
|
|
|
|
// view binding
|
2017-04-23 00:46:41 +00:00
|
|
|
compile 'com.jakewharton:butterknife:8.5.1'
|
|
|
|
annotationProcessor 'com.jakewharton:butterknife-compiler:8.5.1'
|
2015-09-03 13:33:40 +00:00
|
|
|
|
2015-10-22 01:42:22 +00:00
|
|
|
// permissions
|
2015-11-21 23:21:58 +00:00
|
|
|
compile 'com.anthonycr.grant:permissions:1.1.2'
|
2015-09-03 13:33:40 +00:00
|
|
|
|
2015-10-22 01:42:22 +00:00
|
|
|
// proxy support
|
2016-04-18 17:58:54 +00:00
|
|
|
compile 'net.i2p.android:client:0.8'
|
2016-03-23 03:39:06 +00:00
|
|
|
|
2017-04-17 20:45:42 +00:00
|
|
|
compile 'com.squareup.okhttp3:okhttp:3.7.0'
|
|
|
|
|
2017-03-19 02:39:23 +00:00
|
|
|
// tor proxy
|
2017-03-19 02:56:30 +00:00
|
|
|
def netcipherVersion = '2.0.0-alpha1'
|
|
|
|
compile "info.guardianproject.netcipher:netcipher:$netcipherVersion"
|
|
|
|
compile "info.guardianproject.netcipher:netcipher-webkit:$netcipherVersion"
|
2015-09-09 02:24:15 +00:00
|
|
|
|
2017-04-09 19:29:37 +00:00
|
|
|
compile 'com.anthonycr.bonsai:bonsai:1.1.0'
|
2016-07-12 01:51:45 +00:00
|
|
|
|
2017-03-20 23:41:22 +00:00
|
|
|
compile 'com.anthonycr.progress:animated-progress:1.0'
|
2016-07-22 03:29:33 +00:00
|
|
|
|
2015-10-22 01:42:22 +00:00
|
|
|
// memory leak analysis
|
2017-03-19 02:56:30 +00:00
|
|
|
def leakCanaryVersion = '1.5'
|
|
|
|
debugCompile "com.squareup.leakcanary:leakcanary-android:$leakCanaryVersion"
|
|
|
|
releaseCompile "com.squareup.leakcanary:leakcanary-android-no-op:$leakCanaryVersion"
|
2015-08-21 20:57:19 +00:00
|
|
|
}
|