2015-05-02 12:40:40 -04:00
|
|
|
apply plugin: 'com.android.application'
|
2015-09-03 15:33:40 +02:00
|
|
|
apply plugin: 'com.neenbedankt.android-apt'
|
2015-10-14 21:21:51 -04:00
|
|
|
apply plugin: 'com.getkeepsafe.dexcount'
|
2015-05-02 12:40:40 -04:00
|
|
|
|
|
|
|
android {
|
2016-09-13 23:11:39 -04:00
|
|
|
compileSdkVersion 24
|
2016-10-09 10:54:26 -04:00
|
|
|
buildToolsVersion "24.0.3"
|
2016-03-02 21:39:53 -05:00
|
|
|
|
2015-05-02 12:40:40 -04:00
|
|
|
defaultConfig {
|
|
|
|
minSdkVersion 14
|
2016-09-13 23:11:39 -04:00
|
|
|
targetSdkVersion 24
|
2016-04-22 12:19:58 -04:00
|
|
|
versionName "4.3.3"
|
2016-07-31 14:50:03 -04:00
|
|
|
vectorDrawables.useSupportLibrary = true
|
2016-03-02 21:39:53 -05:00
|
|
|
}
|
|
|
|
|
2015-08-21 16:57:19 -04:00
|
|
|
sourceSets {
|
|
|
|
lightningPlus.setRoot('src/LightningPlus')
|
|
|
|
lightningLite.setRoot('src/LightningLite')
|
|
|
|
}
|
2016-03-02 21:39:53 -05:00
|
|
|
|
2015-05-02 12:40:40 -04:00
|
|
|
buildTypes {
|
2015-05-25 12:55:35 -04:00
|
|
|
debug {
|
2015-07-18 14:30:41 -04:00
|
|
|
minifyEnabled false
|
|
|
|
shrinkResources false
|
2015-05-03 13:56:22 +02:00
|
|
|
proguardFiles 'proguard-project.txt'
|
2015-05-02 12:40:40 -04:00
|
|
|
}
|
2015-05-25 12:55:35 -04:00
|
|
|
|
|
|
|
release {
|
2015-05-02 12:40:40 -04:00
|
|
|
minifyEnabled true
|
2015-05-04 12:07:15 -04:00
|
|
|
shrinkResources true
|
2015-05-03 13:56:22 +02:00
|
|
|
proguardFiles 'proguard-project.txt'
|
2015-05-02 12:40:40 -04:00
|
|
|
}
|
|
|
|
}
|
2016-03-02 21:39:53 -05:00
|
|
|
|
2015-05-25 12:55:35 -04:00
|
|
|
productFlavors {
|
2015-06-05 00:03:02 -04:00
|
|
|
lightningPlus {
|
2015-05-25 12:55:35 -04:00
|
|
|
buildConfigField "boolean", "FULL_VERSION", "true"
|
|
|
|
applicationId "acr.browser.lightning"
|
2016-04-22 12:19:58 -04:00
|
|
|
versionCode 88
|
2015-05-25 12:55:35 -04:00
|
|
|
}
|
2016-03-22 23:39:06 -04:00
|
|
|
|
2015-06-05 00:03:02 -04:00
|
|
|
lightningLite {
|
2015-05-25 12:55:35 -04:00
|
|
|
buildConfigField "boolean", "FULL_VERSION", "false"
|
|
|
|
applicationId "acr.browser.barebones"
|
2016-04-22 12:19:58 -04:00
|
|
|
versionCode 90
|
2015-05-25 12:55:35 -04:00
|
|
|
}
|
|
|
|
}
|
2016-03-02 21:39:53 -05:00
|
|
|
|
2015-05-03 13:56:22 +02:00
|
|
|
lintOptions {
|
2015-10-17 22:12:07 -04:00
|
|
|
abortOnError true
|
2015-05-03 13:56:22 +02:00
|
|
|
}
|
2016-03-02 21:39:53 -05:00
|
|
|
|
2015-10-17 23:05:33 -04:00
|
|
|
packagingOptions {
|
2015-10-18 15:15:36 -04:00
|
|
|
exclude '.readme'
|
2015-10-17 23:05:33 -04:00
|
|
|
}
|
2015-05-02 12:40:40 -04:00
|
|
|
}
|
|
|
|
|
2015-10-14 21:21:51 -04:00
|
|
|
dexcount {
|
|
|
|
includeClasses = false
|
|
|
|
includeFieldCount = false
|
|
|
|
printAsTree = true
|
|
|
|
orderByMethodCount = true
|
|
|
|
verbose = false
|
|
|
|
}
|
|
|
|
|
2015-05-02 12:40:40 -04:00
|
|
|
dependencies {
|
2016-03-22 23:39:06 -04:00
|
|
|
|
2015-10-21 21:42:22 -04:00
|
|
|
// support libraries
|
2016-09-13 23:11:39 -04:00
|
|
|
compile 'com.android.support:palette-v7:24.2.1'
|
|
|
|
compile 'com.android.support:appcompat-v7:24.2.1'
|
|
|
|
compile 'com.android.support:design:24.2.1'
|
|
|
|
compile 'com.android.support:recyclerview-v7:24.2.1'
|
|
|
|
compile 'com.android.support:support-v4:24.2.1'
|
2015-10-21 21:42:22 -04:00
|
|
|
|
2016-05-19 22:52:52 -04:00
|
|
|
// html parsing for reading mode
|
|
|
|
compile 'org.jsoup:jsoup:1.9.2'
|
2015-10-21 21:42:22 -04:00
|
|
|
|
|
|
|
// event bus
|
2015-08-27 16:47:55 +02:00
|
|
|
compile 'com.squareup:otto:1.3.8'
|
2015-10-21 21:42:22 -04:00
|
|
|
|
|
|
|
// dependency injection
|
2016-01-11 22:26:32 -05:00
|
|
|
compile 'com.google.dagger:dagger:2.0.2'
|
|
|
|
apt 'com.google.dagger:dagger-compiler:2.0.2'
|
2016-05-19 22:52:52 -04:00
|
|
|
provided 'javax.annotation:jsr250-api:1.0'
|
2015-10-21 21:42:22 -04:00
|
|
|
|
|
|
|
// view binding
|
2015-09-26 17:55:21 -04:00
|
|
|
compile 'com.jakewharton:butterknife:7.0.1'
|
2015-09-03 15:33:40 +02:00
|
|
|
|
2015-10-21 21:42:22 -04:00
|
|
|
// permissions
|
2015-11-21 18:21:58 -05:00
|
|
|
compile 'com.anthonycr.grant:permissions:1.1.2'
|
2015-09-03 15:33:40 +02:00
|
|
|
|
2015-10-21 21:42:22 -04:00
|
|
|
// proxy support
|
2016-04-18 13:58:54 -04:00
|
|
|
compile 'net.i2p.android:client:0.8'
|
2016-03-22 23:39:06 -04:00
|
|
|
|
2015-09-08 22:24:15 -04:00
|
|
|
// Use the following code to update the libnetcipher submodule
|
2015-07-18 17:59:43 -04:00
|
|
|
// git submodule foreach git reset --hard
|
|
|
|
// git submodule update --remote
|
2016-03-22 23:39:06 -04:00
|
|
|
compile project(':libnetcipher')
|
2015-09-08 22:24:15 -04:00
|
|
|
|
2016-07-11 21:51:45 -04:00
|
|
|
compile project(':bonsai')
|
|
|
|
|
2016-07-21 23:29:33 -04:00
|
|
|
compile project(':animated-progress-bar')
|
|
|
|
|
2015-10-21 21:42:22 -04:00
|
|
|
// memory leak analysis
|
2016-09-13 23:33:45 -04:00
|
|
|
debugCompile 'com.squareup.leakcanary:leakcanary-android:1.4'
|
|
|
|
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.4'
|
2015-08-21 16:57:19 -04:00
|
|
|
}
|