forked from mirrors/gecko-dev
53 lines
1.8 KiB
Groovy
53 lines
1.8 KiB
Groovy
buildDir "${topobjdir}/gradle/build/mobile/android/examples/port_messaging_example"
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
apply from: "${topsrcdir}/mobile/android/gradle/product_flavors.gradle"
|
|
|
|
android {
|
|
buildToolsVersion project.ext.buildToolsVersion
|
|
compileSdkVersion project.ext.compileSdkVersion
|
|
|
|
compileOptions {
|
|
sourceCompatibility JavaVersion.VERSION_11
|
|
targetCompatibility JavaVersion.VERSION_11
|
|
}
|
|
dexOptions {
|
|
javaMaxHeapSize "32g"
|
|
}
|
|
defaultConfig {
|
|
applicationId "org.mozilla.geckoview.example.messaging"
|
|
targetSdkVersion project.ext.targetSdkVersion
|
|
minSdkVersion project.ext.minSdkVersion
|
|
versionCode 1
|
|
versionName "1.0"
|
|
}
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
|
}
|
|
}
|
|
|
|
// By default the android plugins ignores folders that start with `_`, but
|
|
// we need those in web extensions.
|
|
// See also:
|
|
// - https://issuetracker.google.com/issues/36911326
|
|
// - https://stackoverflow.com/questions/9206117/how-to-workaround-autoomitting-fiiles-folders-starting-with-underscore-in
|
|
aaptOptions {
|
|
ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
|
|
noCompress 'ja'
|
|
}
|
|
|
|
project.configureProductFlavors.delegate = it
|
|
project.configureProductFlavors()
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation "androidx.annotation:annotation:1.0.0"
|
|
implementation "androidx.appcompat:appcompat:1.0.0"
|
|
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
|
|
testImplementation 'junit:junit:4.12'
|
|
implementation project(path: ':geckoview')
|
|
}
|