1 buildDir "${topobjdir}/gradle/build/mobile/android/geckoview_example"
3 apply plugin: 'com.android.application'
5 apply from: "${topsrcdir}/mobile/android/gradle/product_flavors.gradle"
8 buildToolsVersion project.ext.buildToolsVersion
9 compileSdkVersion project.ext.compileSdkVersion
12 targetSdkVersion project.ext.targetSdkVersion
13 minSdkVersion project.ext.minSdkVersion
14 manifestPlaceholders = project.ext.manifestPlaceholders
16 applicationId "org.mozilla.geckoview_example"
17 versionCode project.ext.versionCode
18 versionName project.ext.versionName
22 sourceCompatibility JavaVersion.VERSION_17
23 targetCompatibility JavaVersion.VERSION_17
29 proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
33 // By default the android plugins ignores folders that start with `_`, but
34 // we need those in web extensions.
36 // - https://issuetracker.google.com/issues/36911326
37 // - https://stackoverflow.com/questions/9206117/how-to-workaround-autoomitting-fiiles-folders-starting-with-underscore-in
39 ignoreAssetsPattern '!.svn:!.git:!.ds_store:!*.scc:.*:!CVS:!thumbs.db:!picasa.ini:!*~'
43 project.configureProductFlavors.delegate = it
44 project.configureProductFlavors()
50 namespace 'org.mozilla.geckoview_example'
54 implementation ComponentsDependencies.androidx_annotation
55 implementation ComponentsDependencies.androidx_appcompat
56 implementation ComponentsDependencies.androidx_preferences
58 implementation project(path: ':geckoview')
59 implementation ComponentsDependencies.androidx_constraintlayout
60 implementation ComponentsDependencies.google_material