mirror of https://github.com/LeOS-GSI/LeOS-Genesis
146 lines
4.1 KiB
Groovy
Executable File
146 lines
4.1 KiB
Groovy
Executable File
apply plugin: 'com.android.application'
|
|
apply from: 'variables.gradle'
|
|
|
|
apply plugin: 'maven'
|
|
apply plugin: 'io.fabric'
|
|
|
|
ext {
|
|
geckoviewChannel = project.ext.firefox_channel
|
|
geckoviewVersion = project.ext.firefox_version
|
|
}
|
|
|
|
repositories {
|
|
maven {
|
|
url "https://maven.mozilla.org/maven2/"
|
|
maven { url 'https://maven.fabric.io/public' }
|
|
mavenLocal()
|
|
mavenCentral()
|
|
google()
|
|
jcenter()
|
|
}
|
|
}
|
|
|
|
android {
|
|
compileSdkVersion 29
|
|
buildToolsVersion '29.0.2'
|
|
defaultConfig {
|
|
applicationId project.ext.applicationId
|
|
minSdkVersion 21
|
|
versionCode project.ext.versionCode
|
|
versionName project.ext.versionName
|
|
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
|
|
|
multiDexEnabled true
|
|
}
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_1_8
|
|
targetCompatibility JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
dexOptions {
|
|
preDexLibraries true
|
|
}
|
|
|
|
lintOptions {
|
|
lintConfig file("lint.xml")
|
|
}
|
|
|
|
// We have a three dimensional build configuration:
|
|
// BUILD TYPE (debug, release) X PRODUCT FLAVOR (focus, klar) X ARCHITECTURE (x86, arm, aarch64)
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
|
|
}
|
|
splits {
|
|
abi {
|
|
enable true
|
|
reset()
|
|
include 'arm64-v8a'
|
|
include 'x86'
|
|
include 'armeabi-v7a'
|
|
include 'x86_64'
|
|
universalApk false
|
|
}
|
|
}
|
|
}
|
|
|
|
flavorDimensions project.ext.dimen
|
|
|
|
productFlavors {
|
|
arm {
|
|
versionCode project.ext.arm_vcode
|
|
versionName project.ext.arm_vname
|
|
dimension project.ext.dimen
|
|
}
|
|
aarch64 {
|
|
versionCode project.ext.aarch_vcode
|
|
versionName project.ext.aarch_vname
|
|
dimension project.ext.dimen
|
|
}
|
|
x86 {
|
|
versionCode project.ext.x86_vcode
|
|
versionName project.ext.x86_vname
|
|
dimension project.ext.dimen
|
|
}
|
|
x86_64 {
|
|
versionCode project.ext.x64_vcode
|
|
versionName project.ext.x64_vname
|
|
dimension project.ext.dimen
|
|
}
|
|
}
|
|
|
|
|
|
sourceSets {
|
|
test {
|
|
resources {
|
|
srcDir "${projectDir}/src/main/assets/"
|
|
}
|
|
}
|
|
|
|
}
|
|
configurations.all {
|
|
resolutionStrategy.force 'com.android.support:support-v4:26.1.0' // the lib is old dependencies version;
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
|
|
/*Default Libraries*/
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
implementation 'androidx.appcompat:appcompat:1.1.0'
|
|
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'
|
|
implementation 'com.google.android.material:material:1.2.0-alpha03'
|
|
implementation 'androidx.preference:preference:1.1.0'
|
|
implementation 'com.google.android.material:material:1.0.0'
|
|
|
|
/*Firefox ABI Splits*/
|
|
implementation "org.mozilla.components:browser-engine-gecko:$mozilla_components_version"
|
|
implementation "org.mozilla.geckoview:geckoview:$gecko_nightly_version"
|
|
|
|
/*Alert Dialog*/
|
|
implementation 'com.crowdfire.cfalertdialog:cfalertdialog:1.1.0'
|
|
|
|
/*Ads Manager*/
|
|
implementation 'com.google.android.gms:play-services-ads:18.3.0'
|
|
|
|
|
|
/*Crashlytics*/
|
|
implementation 'com.crashlytics.sdk.android:crashlytics:2.10.1'
|
|
implementation 'com.flurry.android:analytics:12.1.0@aar'
|
|
|
|
/*View Animator*/
|
|
implementation 'com.daimajia.easing:library:2.1@aar'
|
|
implementation 'com.daimajia.androidanimations:library:2.3@aar'
|
|
|
|
/*Orbot Service*/
|
|
implementation project(path: ':orbotservice')
|
|
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
apply plugin: 'com.google.gms.google-services'
|