For consistency with the rest of the build system, have gradle build folders be created in TOPOBJDR. Put the logic in shared-settings.gradle and apply it to all projects. Existing gradle and taskcluster configuration uses the 'gradle/build' prefix, so continue using that for now. Only apply this when building top-level for now since a fair bit of automation of fenix/focus/a-c projects expects build artifacts in the source directory. Plugins are compiled as "composite builds" so they somewhat exist in their own world. For simplicity, just manually specify the `buildDir` for each plugin. Differential Revision: https://phabricator.services.mozilla.com/D240116
50 lines
1.5 KiB
Groovy
50 lines
1.5 KiB
Groovy
plugins {
|
|
alias(libs.plugins.kotlin.android)
|
|
}
|
|
|
|
apply plugin: 'com.android.application'
|
|
|
|
android {
|
|
buildToolsVersion project.ext.buildToolsVersion
|
|
compileSdkVersion project.ext.compileSdkVersion
|
|
|
|
defaultConfig {
|
|
targetSdkVersion project.ext.targetSdkVersion
|
|
minSdkVersion project.ext.minSdkVersion
|
|
manifestPlaceholders = project.ext.manifestPlaceholders
|
|
|
|
applicationId "org.mozilla.geckoview.test_runner"
|
|
versionCode project.ext.versionCode
|
|
versionName project.ext.versionName
|
|
}
|
|
|
|
buildTypes {
|
|
release {
|
|
minifyEnabled false
|
|
proguardFiles getDefaultProguardFile('proguard-android.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.test_runner'
|
|
}
|
|
|
|
dependencies {
|
|
implementation libs.androidx.annotation
|
|
implementation libs.androidx.appcompat
|
|
implementation libs.androidx.preferences
|
|
|
|
implementation project(path: ':geckoview')
|
|
implementation libs.androidx.constraintlayout
|
|
implementation libs.google.material
|
|
}
|