mirror of
https://github.com/ovrport/app.git
synced 2026-10-26 19:19:56 -04:00
feat: Main screen feat: Patcher beginnings chore: Rename project feat: Bottom navigation bar chore: Adaptive icon feat: Shaping patching feat: Integrate aapt2 feat: Integrating ARSCLib feat: JSON manifest processing feat: Migrating to KMP feat: Generate ovrport config feat: Remove localized app names feat: Drag and drop refactor: Improve reliability chore: Prepare for release feat: Update detection chore: README and LICENSE feat: Replace smali compiler chore: Code cleanup
123 lines
3.6 KiB
Kotlin
123 lines
3.6 KiB
Kotlin
import org.jetbrains.compose.desktop.application.dsl.TargetFormat
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
val appVersion: String by project
|
|
|
|
plugins {
|
|
alias(libs.plugins.kotlinMultiplatform)
|
|
alias(libs.plugins.androidApplication)
|
|
alias(libs.plugins.composeMultiplatform)
|
|
alias(libs.plugins.composeCompiler)
|
|
alias(libs.plugins.kotlinSerialization)
|
|
}
|
|
|
|
kotlin {
|
|
androidTarget {
|
|
compilerOptions {
|
|
jvmTarget.set(JvmTarget.JVM_11)
|
|
}
|
|
}
|
|
|
|
jvm("desktop")
|
|
|
|
sourceSets {
|
|
val desktopMain by getting
|
|
|
|
androidMain.dependencies {
|
|
implementation(compose.preview)
|
|
implementation(libs.androidx.activity.compose)
|
|
}
|
|
commonMain.dependencies {
|
|
implementation(compose.runtime)
|
|
implementation(compose.foundation)
|
|
implementation(compose.material3)
|
|
implementation(compose.ui)
|
|
implementation(compose.components.resources)
|
|
implementation(compose.components.uiToolingPreview)
|
|
implementation(libs.androidx.lifecycle.viewmodel)
|
|
implementation(libs.androidx.lifecycle.runtime.compose)
|
|
implementation(libs.androidx.lifecycle.viewmodel.compose)
|
|
implementation(compose.materialIconsExtended)
|
|
implementation(libs.android.tools.build)
|
|
implementation(libs.bouncycastle.pkix)
|
|
implementation(libs.kotlinx.serialization.json)
|
|
implementation(fileTree("libs"))
|
|
}
|
|
desktopMain.dependencies {
|
|
implementation(compose.desktop.currentOs)
|
|
implementation(libs.kotlinx.coroutines.swing)
|
|
}
|
|
}
|
|
}
|
|
|
|
android {
|
|
namespace = "moe.crx.ovrport"
|
|
compileSdk = libs.versions.android.compileSdk.get().toInt()
|
|
|
|
defaultConfig {
|
|
applicationId = "moe.crx.ovrport"
|
|
minSdk = libs.versions.android.minSdk.get().toInt()
|
|
targetSdk = libs.versions.android.targetSdk.get().toInt()
|
|
versionCode = appVersion.split('.').run { get(0).toInt() * 1000000 + get(1).toInt() * 1000 + get(2).toInt() }
|
|
versionName = appVersion
|
|
}
|
|
packaging {
|
|
resources {
|
|
excludes += "/META-INF/{AL2.0,LGPL2.1}"
|
|
excludes += "META-INF/versions/9/OSGI-INF/MANIFEST.MF"
|
|
}
|
|
}
|
|
buildTypes {
|
|
release {
|
|
isMinifyEnabled = false
|
|
isShrinkResources = false
|
|
proguardFiles(
|
|
getDefaultProguardFile("proguard-android-optimize.txt"),
|
|
"proguard-rules.pro"
|
|
)
|
|
}
|
|
}
|
|
compileOptions {
|
|
sourceCompatibility = JavaVersion.VERSION_11
|
|
targetCompatibility = JavaVersion.VERSION_11
|
|
}
|
|
}
|
|
|
|
dependencies {
|
|
debugImplementation(compose.uiTooling)
|
|
}
|
|
|
|
compose.desktop {
|
|
application {
|
|
mainClass = "moe.crx.ovrport.MainKt"
|
|
|
|
buildTypes {
|
|
release {
|
|
proguard {
|
|
configurationFiles.from("proguard-rules.pro")
|
|
}
|
|
}
|
|
}
|
|
|
|
nativeDistributions {
|
|
targetFormats(TargetFormat.Dmg, TargetFormat.Msi, TargetFormat.Deb)
|
|
packageName = "overport"
|
|
packageVersion = appVersion
|
|
|
|
windows {
|
|
shortcut = true
|
|
perUserInstall = true
|
|
iconFile.set(file("icons/app-icon.ico"))
|
|
}
|
|
linux {
|
|
shortcut = true
|
|
iconFile.set(file("icons/app-icon.png"))
|
|
}
|
|
macOS {
|
|
dockName = "overport"
|
|
iconFile.set(file("icons/app-icon.icns"))
|
|
}
|
|
}
|
|
}
|
|
}
|