2020-01-24 16:23:31 +01:00
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply from: 'variables.gradle'
|
|
|
|
|
2020-10-05 13:12:00 +02:00
|
|
|
apply plugin: 'maven-publish'
|
2020-10-20 16:55:08 +02:00
|
|
|
apply plugin: 'com.google.gms.google-services'
|
2020-01-24 16:23:31 +01:00
|
|
|
|
|
|
|
ext {
|
|
|
|
geckoviewChannel = project.ext.firefox_channel
|
|
|
|
geckoviewVersion = project.ext.firefox_version
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
maven {
|
|
|
|
url "https://maven.mozilla.org/maven2/"
|
|
|
|
mavenLocal()
|
|
|
|
mavenCentral()
|
|
|
|
google()
|
|
|
|
jcenter()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
android {
|
2020-02-28 19:10:00 +01:00
|
|
|
compileSdkVersion project.ext.compileSdkVersion
|
2020-11-11 13:11:13 +01:00
|
|
|
ndkVersion "21.3.6528147"
|
2020-02-28 19:10:00 +01:00
|
|
|
|
2020-01-24 16:23:31 +01:00
|
|
|
defaultConfig {
|
|
|
|
applicationId project.ext.applicationId
|
2020-02-28 19:10:00 +01:00
|
|
|
minSdkVersion project.ext.minSdkVersion
|
2020-11-11 13:11:13 +01:00
|
|
|
targetSdkVersion project.ext.targetSdkVersion
|
2020-01-24 16:23:31 +01:00
|
|
|
versionCode project.ext.versionCode
|
|
|
|
versionName project.ext.versionName
|
|
|
|
}
|
2020-10-20 16:55:08 +02:00
|
|
|
buildToolsVersion '29.0.3'
|
2020-02-28 19:10:00 +01:00
|
|
|
|
|
|
|
flavorDimensions "abi"
|
2020-01-24 16:23:31 +01:00
|
|
|
|
|
|
|
compileOptions {
|
|
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
flavorDimensions project.ext.dimen
|
|
|
|
|
|
|
|
productFlavors {
|
2020-10-20 16:55:08 +02:00
|
|
|
|
2020-01-24 16:23:31 +01:00
|
|
|
arm {
|
2020-02-28 19:10:00 +01:00
|
|
|
dimension "abi"
|
|
|
|
ndk {
|
2020-10-20 16:55:08 +02:00
|
|
|
ndk.abiFilters 'armeabi-v7a','arm64-v8a', 'x86', 'x86_64'
|
2020-02-28 19:10:00 +01:00
|
|
|
}
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
aarch64 {
|
2020-02-28 19:10:00 +01:00
|
|
|
dimension "abi"
|
|
|
|
ndk {
|
2020-10-20 16:55:08 +02:00
|
|
|
ndk.abiFilters 'armeabi-v7a','arm64-v8a', 'x86', 'x86_64'
|
2020-02-28 19:10:00 +01:00
|
|
|
}
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
x86 {
|
2020-02-28 19:10:00 +01:00
|
|
|
dimension "abi"
|
|
|
|
ndk {
|
2020-10-20 16:55:08 +02:00
|
|
|
ndk.abiFilters 'armeabi-v7a','arm64-v8a', 'x86', 'x86_64'
|
2020-02-28 19:10:00 +01:00
|
|
|
}
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
x86_64 {
|
2020-02-28 19:10:00 +01:00
|
|
|
dimension "abi"
|
|
|
|
ndk {
|
2020-10-20 16:55:08 +02:00
|
|
|
ndk.abiFilters 'armeabi-v7a','arm64-v8a', 'x86', 'x86_64'
|
2020-02-28 19:10:00 +01:00
|
|
|
}
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
2020-10-20 16:55:08 +02:00
|
|
|
}
|
2020-01-24 16:23:31 +01:00
|
|
|
|
2020-10-20 16:55:08 +02:00
|
|
|
sourceSets {
|
|
|
|
main {
|
|
|
|
res.srcDirs =
|
|
|
|
[
|
|
|
|
'src/main/res/layouts/history',
|
2020-11-11 13:11:13 +01:00
|
|
|
'src/main/res/layouts/tab',
|
2020-10-20 16:55:08 +02:00
|
|
|
'src/main/res/layouts/language',
|
|
|
|
'src/main/res/layouts/orbot',
|
2020-11-11 13:11:13 +01:00
|
|
|
'src/main/res/layouts/orbotLog',
|
2020-10-22 10:36:44 +02:00
|
|
|
'src/main/res/layouts/setting',
|
2020-10-20 16:55:08 +02:00
|
|
|
'src/main/res/layouts/bridge',
|
|
|
|
'src/main/res/layouts/alert',
|
|
|
|
'src/main/res/layouts/bookmark',
|
|
|
|
'src/main/res/layouts/shared',
|
|
|
|
'src/main/res/layouts/shared/listviews',
|
|
|
|
'src/main/res/layouts/other',
|
|
|
|
'src/main/res/custom-xml/alert',
|
2020-11-11 13:11:13 +01:00
|
|
|
'src/main/res/custom-xml/tab',
|
2020-10-20 16:55:08 +02:00
|
|
|
'src/main/res/custom-xml/images',
|
|
|
|
'src/main/res/custom-xml/bookmark',
|
|
|
|
'src/main/res/custom-xml/generic',
|
|
|
|
'src/main/res/custom-xml/history',
|
|
|
|
'src/main/res/custom-xml/home',
|
|
|
|
'src/main/res/custom-xml/landing',
|
|
|
|
'src/main/res/custom-xml/orbot',
|
2020-11-11 13:11:13 +01:00
|
|
|
'src/main/res/custom-xml/orbot_log',
|
2020-10-20 16:55:08 +02:00
|
|
|
'src/main/res/custom-xml/setting',
|
|
|
|
'src/main/res/layouts',
|
|
|
|
'src/main/res/images',
|
|
|
|
'src/main/res'
|
|
|
|
]
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
2020-02-28 19:10:00 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
buildTypes {
|
|
|
|
release {
|
|
|
|
minifyEnabled true
|
|
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
2020-01-24 16:23:31 +01:00
|
|
|
|
2020-02-28 19:10:00 +01:00
|
|
|
}
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
2020-02-28 19:10:00 +01:00
|
|
|
lintOptions {
|
|
|
|
checkReleaseBuilds false
|
|
|
|
// Or, if you prefer, you can continue to check for errors in release builds,
|
|
|
|
// but continue the build even when errors are found:
|
|
|
|
abortOnError false
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
|
2020-02-28 19:10:00 +01:00
|
|
|
|
|
|
|
// Android Support Repository dependencies
|
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
2020-09-11 12:54:25 +02:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
|
|
|
implementation 'androidx.preference:preference:1.1.1'
|
2020-10-05 13:12:00 +02:00
|
|
|
implementation 'androidx.preference:preference:1.1.1'
|
2020-02-28 19:10:00 +01:00
|
|
|
implementation 'androidx.legacy:legacy-preference-v14:1.0.0'
|
|
|
|
implementation 'androidx.recyclerview:recyclerview:1.1.0'
|
2020-11-11 13:11:13 +01:00
|
|
|
implementation 'androidx.cardview:cardview:1.0.0'
|
2020-02-28 19:10:00 +01:00
|
|
|
|
|
|
|
// Testing-only dependencies
|
2020-09-11 12:54:25 +02:00
|
|
|
androidTestImplementation('androidx.test.espresso:espresso-core:3.3.0') {
|
2020-02-28 19:10:00 +01:00
|
|
|
exclude group: 'com.android.support', module: 'support-annotations'
|
|
|
|
}
|
|
|
|
|
2020-01-24 16:23:31 +01:00
|
|
|
/*Default Libraries*/
|
2020-10-20 16:55:08 +02:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
|
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
|
2020-09-11 12:54:25 +02:00
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
2020-10-20 16:55:08 +02:00
|
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.2'
|
|
|
|
implementation 'com.google.android.material:material:1.3.0-alpha03'
|
2020-09-11 12:54:25 +02:00
|
|
|
implementation 'androidx.preference:preference:1.1.1'
|
2020-09-19 14:10:12 +02:00
|
|
|
implementation 'com.google.android.material:material:1.2.1'
|
|
|
|
implementation 'androidx.appcompat:appcompat:1.2.0'
|
2020-01-24 16:23:31 +01:00
|
|
|
|
|
|
|
/*Firefox ABI Splits*/
|
|
|
|
implementation "org.mozilla.components:browser-engine-gecko:$mozilla_components_version"
|
2020-10-05 13:12:00 +02:00
|
|
|
implementation "org.mozilla.components:browser-icons:$mozilla_components_icon_version"
|
2020-01-24 16:23:31 +01:00
|
|
|
implementation "org.mozilla.geckoview:geckoview:$gecko_nightly_version"
|
|
|
|
|
|
|
|
/*Alert Dialog*/
|
|
|
|
implementation 'com.crowdfire.cfalertdialog:cfalertdialog:1.1.0'
|
|
|
|
|
|
|
|
/*Ads Manager*/
|
2020-11-11 13:11:13 +01:00
|
|
|
implementation 'com.google.android.gms:play-services-ads:19.5.0'
|
2020-01-24 16:23:31 +01:00
|
|
|
|
|
|
|
|
|
|
|
/*Crashlytics*/
|
2020-09-11 12:54:25 +02:00
|
|
|
implementation 'com.flurry.android:analytics:12.4.0@aar'
|
2020-01-24 16:23:31 +01:00
|
|
|
|
|
|
|
/*View Animator*/
|
2020-10-05 13:12:00 +02:00
|
|
|
implementation 'com.daimajia.easing:library:2.4@aar'
|
|
|
|
implementation 'com.daimajia.androidanimations:library:2.4@aar'
|
2020-01-24 16:23:31 +01:00
|
|
|
|
|
|
|
/*Orbot Service*/
|
|
|
|
implementation project(path: ':orbotservice')
|
2020-09-19 14:10:12 +02:00
|
|
|
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
|
2020-02-28 19:10:00 +01:00
|
|
|
implementation 'com.github.apl-devs:appintro:v4.2.2'
|
2020-11-11 13:11:13 +01:00
|
|
|
implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.6'
|
2020-01-24 16:23:31 +01:00
|
|
|
|
2020-10-05 13:12:00 +02:00
|
|
|
/*Helper Libraries*/
|
|
|
|
implementation 'com.chauthai.overscroll:overscroll-bouncy:0.1.1'
|
2020-11-11 13:11:13 +01:00
|
|
|
androidTestImplementation "junit:junit:4.13.1"
|
2020-01-24 16:23:31 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply plugin: 'com.google.gms.google-services'
|
2020-10-20 16:55:08 +02:00
|
|
|
|