Asks Garage for the newest release of a project, downloads it with resume, checks the sha256, installs it beside the old one and restarts into it. Splash on garage_ui, a native stub and a first time installer for windows, bundle swap on mac, the system installer on android. No-op on web. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01KHotisA4hV2xmuZsHTksFX
59 lines
1.1 KiB
Kotlin
59 lines
1.1 KiB
Kotlin
group = "net.imbenji.garage_updates"
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
buildscript {
|
|
val kotlinVersion = "2.3.20"
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
classpath("com.android.tools.build:gradle:9.0.1")
|
|
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion")
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
google()
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
id("com.android.library")
|
|
}
|
|
|
|
android {
|
|
namespace = "net.imbenji.garage_updates"
|
|
|
|
compileSdk = 36
|
|
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|
|
|
|
sourceSets {
|
|
getByName("main") {
|
|
java.srcDirs("src/main/kotlin")
|
|
}
|
|
}
|
|
|
|
defaultConfig {
|
|
minSdk = 24
|
|
}
|
|
}
|
|
|
|
kotlin {
|
|
compilerOptions {
|
|
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_17
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
// FileProvider, the only way to hand the installer a file since android 7
|
|
implementation("androidx.core:core:1.13.1")
|
|
}
|