App build script with pinned GeckoView
Browse files- app/build.gradle.kts +55 -0
app/build.gradle.kts
ADDED
|
@@ -0,0 +1,55 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
plugins {
|
| 2 |
+
id("com.android.application")
|
| 3 |
+
id("org.jetbrains.kotlin.android")
|
| 4 |
+
}
|
| 5 |
+
|
| 6 |
+
android {
|
| 7 |
+
namespace = "dev.nova.browser"
|
| 8 |
+
compileSdk = 35
|
| 9 |
+
|
| 10 |
+
defaultConfig {
|
| 11 |
+
applicationId = "dev.nova.browser"
|
| 12 |
+
minSdk = 24
|
| 13 |
+
targetSdk = 35
|
| 14 |
+
versionCode = 1
|
| 15 |
+
versionName = "0.1.0"
|
| 16 |
+
}
|
| 17 |
+
|
| 18 |
+
buildTypes {
|
| 19 |
+
release {
|
| 20 |
+
isMinifyEnabled = false
|
| 21 |
+
proguardFiles(getDefaultProguardFile("proguard-android-optimize.txt"))
|
| 22 |
+
}
|
| 23 |
+
}
|
| 24 |
+
|
| 25 |
+
compileOptions {
|
| 26 |
+
// GeckoView requires Java 17 compatibility (per official quick-start)
|
| 27 |
+
sourceCompatibility = JavaVersion.VERSION_17
|
| 28 |
+
targetCompatibility = JavaVersion.VERSION_17
|
| 29 |
+
}
|
| 30 |
+
kotlinOptions {
|
| 31 |
+
jvmTarget = "17"
|
| 32 |
+
}
|
| 33 |
+
buildFeatures {
|
| 34 |
+
compose = true
|
| 35 |
+
}
|
| 36 |
+
composeOptions {
|
| 37 |
+
kotlinCompilerExtensionVersion = "1.5.14"
|
| 38 |
+
}
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
dependencies {
|
| 42 |
+
// GeckoView stable channel. Bump to the newest version string from:
|
| 43 |
+
// https://maven.mozilla.org/maven2/org/mozilla/geckoview/
|
| 44 |
+
implementation("org.mozilla.geckoview:geckoview:147.0.20260212191108")
|
| 45 |
+
|
| 46 |
+
implementation(platform("androidx.compose:compose-bom:2024.09.03"))
|
| 47 |
+
implementation("androidx.compose.ui:ui")
|
| 48 |
+
implementation("androidx.compose.material3:material3")
|
| 49 |
+
implementation("androidx.compose.ui:ui-tooling-preview")
|
| 50 |
+
implementation("androidx.activity:activity-compose:1.9.2")
|
| 51 |
+
implementation("androidx.core:core-ktx:1.13.1")
|
| 52 |
+
implementation("androidx.lifecycle:lifecycle-runtime-ktx:2.8.6")
|
| 53 |
+
|
| 54 |
+
debugImplementation("androidx.compose.ui:ui-tooling")
|
| 55 |
+
}
|