46 lines
1.6 KiB
Groovy
46 lines
1.6 KiB
Groovy
plugins {
|
|
alias(libs.plugins.kotlin.android)
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
buildToolsVersion = project.ext.buildToolsVersion
|
|
compileSdkVersion = project.ext.compileSdkVersion
|
|
|
|
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'
|
|
}
|
|
|
|
namespace = 'org.mozilla.geckoview.example.messaging'
|
|
}
|
|
|
|
dependencies {
|
|
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
|
implementation libs.androidx.annotation
|
|
implementation libs.androidx.appcompat
|
|
implementation libs.androidx.constraintlayout
|
|
testImplementation libs.junit.vintage
|
|
// Replace this with implementation "org.mozilla.geckoview:geckoview-${geckoviewChannel}:${geckoviewVersion}"
|
|
implementation project(path: ':geckoview')
|
|
}
|