@@ -27,10 +27,6 @@ val verName = "1.6.1"
2727val verCode = getVersionCode()
2828val generatedSrcDir = layout.buildDirectory.dir(" generated" ).get().asFile.resolve(" updater" )
2929
30- java {
31- toolchain.languageVersion = JavaLanguageVersion .of(21 )
32- }
33-
3430kotlin {
3531 jvmToolchain(21 )
3632
@@ -46,18 +42,16 @@ kotlin {
4642 binaries.framework {
4743 baseName = " shared"
4844 isStatic = true
49- }
50- compilerOptions {
51- freeCompilerArgs.add(" -Xbinary=preCodegenInlineThreshold=40" )
45+ binaryOption(" smallBinary" , " true" )
46+ binaryOption(" preCodegenInlineThreshold" , " 40" )
5247 }
5348 }
5449
5550 macosArm64 {
5651 binaries.executable {
5752 entryPoint = " main"
58- }
59- compilerOptions {
60- freeCompilerArgs.add(" -Xbinary=preCodegenInlineThreshold=40" )
53+ binaryOption(" smallBinary" , " true" )
54+ binaryOption(" preCodegenInlineThreshold" , " 40" )
6155 }
6256 }
6357
@@ -135,10 +129,15 @@ kotlin {
135129
136130android {
137131 namespace = pkgName
132+ compileSdk = 36
133+ compileSdkMinor = 1
134+ buildToolsVersion = " 36.1.0"
138135 defaultConfig {
139136 applicationId = pkgName
140137 versionCode = verCode
141138 versionName = verName
139+ targetSdk = 36
140+ minSdk = 26
142141 }
143142 val properties = Properties ()
144143 runCatching { properties.load(project.rootProject.file(" local.properties" ).inputStream()) }
@@ -155,7 +154,6 @@ android {
155154 keyPassword = pwd
156155 enableV2Signing = true
157156 enableV3Signing = true
158- enableV4Signing = true
159157 }
160158 }
161159 }
@@ -325,7 +323,7 @@ tasks.withType<AbstractNativeMacApplicationPackageAppDirTask>().configureEach {
325323 val appDir = destinationDir.resolve(" $packageName .app" )
326324 val resourcesDir = appDir.resolve(" Contents/Resources" )
327325 val currentMacosTarget = kotlin.targets.withType<KotlinNativeTarget >()
328- .find { it.konanTarget == KonanTarget .MACOS_ARM64 || it.konanTarget == KonanTarget . MACOS_X64 }?.targetName
326+ .find { it.konanTarget == KonanTarget .MACOS_ARM64 }?.targetName
329327 val composeResourcesDir = project.rootDir
330328 .resolve(" composeApp/build/bin/$currentMacosTarget /releaseExecutable/compose-resources" )
331329 if (composeResourcesDir.exists()) {
0 commit comments