They're currently resolved transitively, and not every build variant that resolves these projects sees GeckoView's own versions of them. Differential Revision: https://phabricator.services.mozilla.com/D324776
58 lines
1.8 KiB
Groovy
58 lines
1.8 KiB
Groovy
plugins {
|
|
id 'com.android.application'
|
|
}
|
|
|
|
android {
|
|
buildToolsVersion = project.ext.buildToolsVersion
|
|
compileSdk {
|
|
version = release(project.ext.compileSdkMajorVersion) { minorApiLevel = project.ext.compileSdkMinorVersion }
|
|
}
|
|
|
|
defaultConfig {
|
|
targetSdk project.ext.targetSdkVersion
|
|
minSdk project.ext.minSdkVersion
|
|
manifestPlaceholders = project.ext.manifestPlaceholders
|
|
|
|
applicationId "org.mozilla.geckoview_example"
|
|
versionCode project.ext.versionCode
|
|
versionName project.ext.versionName
|
|
}
|
|
|
|
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
|
|
androidResources {
|
|
ignoreAssetsPattern = '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
|
|
noCompress 'ja'
|
|
}
|
|
|
|
buildFeatures {
|
|
buildConfig = true
|
|
}
|
|
|
|
namespace = 'org.mozilla.geckoview_example'
|
|
}
|
|
|
|
dependencies {
|
|
implementation project(path: ':geckoview')
|
|
|
|
implementation libs.androidx.annotation
|
|
implementation libs.androidx.annotation.experimental
|
|
implementation libs.androidx.appcompat
|
|
implementation libs.androidx.collection
|
|
implementation libs.androidx.constraintlayout
|
|
implementation libs.androidx.core
|
|
implementation libs.androidx.lifecycle.common
|
|
implementation libs.androidx.preference
|
|
implementation libs.google.material
|
|
}
|