2015-05-02 16:40:40 +00:00
|
|
|
apply plugin: 'com.android.application'
|
2015-09-03 13:33:40 +00:00
|
|
|
apply plugin: 'com.neenbedankt.android-apt'
|
2015-10-15 01:21:51 +00:00
|
|
|
apply plugin: 'com.getkeepsafe.dexcount'
|
2015-05-02 16:40:40 +00:00
|
|
|
|
|
|
|
android {
|
2015-08-22 13:08:39 +00:00
|
|
|
compileSdkVersion 23
|
2016-01-12 03:26:32 +00:00
|
|
|
buildToolsVersion "23.0.2"
|
2016-03-03 02:39:53 +00:00
|
|
|
|
2015-05-02 16:40:40 +00:00
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 14
|
2015-08-23 16:13:06 +00:00
|
|
|
targetSdkVersion 23
|
2016-03-24 02:05:44 +00:00
|
|
|
versionName "4.3.1"
|
2016-03-03 02:39:53 +00:00
|
|
|
generatedDensities = []
|
2015-05-02 16:40:40 +00:00
|
|
|
}
|
2016-03-03 02:39:53 +00:00
|
|
|
|
|
|
|
aaptOptions {
|
|
|
|
additionalParameters "--no-version-vectors"
|
|
|
|
}
|
|
|
|
|
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-03-24 02:05:44 +00:00
|
|
|
versionCode 86
|
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-03-24 02:05:44 +00:00
|
|
|
versionCode 88
|
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
|
|
|
|
printAsTree = true
|
|
|
|
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
|
2016-03-11 03:23:32 +00:00
|
|
|
compile 'com.android.support:palette-v7:23.2.1'
|
|
|
|
compile 'com.android.support:appcompat-v7:23.2.1'
|
|
|
|
compile 'com.android.support:design:23.2.1'
|
|
|
|
compile 'com.android.support:recyclerview-v7:23.2.1'
|
|
|
|
compile 'com.android.support:support-v4:23.2.1'
|
2015-10-22 01:42:22 +00:00
|
|
|
|
|
|
|
// html parsing fo reading mode
|
2015-09-12 02:14:26 +00:00
|
|
|
compile 'org.jsoup:jsoup:1.8.3'
|
2015-10-22 01:42:22 +00:00
|
|
|
|
|
|
|
// event bus
|
2015-08-27 14:47:55 +00:00
|
|
|
compile 'com.squareup:otto:1.3.8'
|
2015-10-22 01:42:22 +00:00
|
|
|
|
|
|
|
// dependency injection
|
2016-01-12 03:26:32 +00:00
|
|
|
compile 'com.google.dagger:dagger:2.0.2'
|
|
|
|
apt 'com.google.dagger:dagger-compiler:2.0.2'
|
2015-10-22 01:42:22 +00:00
|
|
|
|
|
|
|
// view binding
|
2015-09-26 21:55:21 +00:00
|
|
|
compile 'com.jakewharton:butterknife:7.0.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
|
|
|
|
compile 'net.i2p.android:client:0.7'
|
2016-03-23 03:39:06 +00:00
|
|
|
|
2015-09-09 02:24:15 +00:00
|
|
|
// Use the following code to update the libnetcipher submodule
|
2015-07-18 21:59:43 +00:00
|
|
|
// git submodule foreach git reset --hard
|
|
|
|
// git submodule update --remote
|
2016-03-23 03:39:06 +00:00
|
|
|
compile project(':libnetcipher')
|
2015-09-09 02:24:15 +00:00
|
|
|
|
2015-10-22 01:42:22 +00:00
|
|
|
// memory leak analysis
|
2016-01-17 03:49:31 +00:00
|
|
|
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4-beta1'
|
|
|
|
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4-beta1'
|
2015-09-09 02:24:15 +00:00
|
|
|
provided 'javax.annotation:jsr250-api:1.0'
|
2015-08-21 20:57:19 +00:00
|
|
|
}
|