File tree Expand file tree Collapse file tree 4 files changed +17
-5
lines changed
convention-plugins/src/main/kotlin Expand file tree Collapse file tree 4 files changed +17
-5
lines changed Original file line number Diff line number Diff line change 33
44allprojects {
55 group = " top.yukonga.miuix.kmp"
6- version = " 0.4.7 "
6+ version = " 0.4.8 "
77}
Original file line number Diff line number Diff line change 44@file:Suppress(" UnstableApiUsage" )
55
66import com.android.build.gradle.internal.api.BaseVariantOutputImpl
7- import org.gradle.kotlin.dsl.withType
87import org.jetbrains.compose.desktop.application.dsl.TargetFormat
98import org.jetbrains.kotlin.gradle.ExperimentalWasmDsl
109import org.jetbrains.kotlin.gradle.targets.js.yarn.YarnPlugin
@@ -233,10 +232,23 @@ val generateVersionInfo by tasks.registering {
233232 const val VERSION_NAME = "$verName "
234233 const val VERSION_CODE = $verCode
235234 const val JDK_VERSION = "${System .getProperty(" java.version" )} "
236-
237235 }
238236 """ .trimIndent(),
239237 )
238+ val iosPlist = project.rootDir.resolve(" iosApp/iosApp/Info.plist" )
239+ if (iosPlist.exists()) {
240+ val content = iosPlist.readText()
241+ val updatedContent = content
242+ .replace(
243+ Regex (" <key>CFBundleShortVersionString</key>\\ s*<string>[^<]*</string>" ),
244+ " <key>CFBundleShortVersionString</key>\n\t <string>$verName </string>"
245+ )
246+ .replace(
247+ Regex (" <key>CFBundleVersion</key>\\ s*<string>[^<]*</string>" ),
248+ " <key>CFBundleVersion</key>\n\t <string>$verCode </string>"
249+ )
250+ iosPlist.writeText(updatedContent)
251+ }
240252 }
241253}
242254
Original file line number Diff line number Diff line change 11distributionBase =GRADLE_USER_HOME
22distributionPath =wrapper/dists
3- distributionUrl =https\://services.gradle.org/distributions/gradle-8.14.2 -bin.zip
3+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.14.3 -bin.zip
44networkTimeout =10000
55validateDistributionUrl =true
66zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change 1717 <key >CFBundleShortVersionString </key >
1818 <string >1.0.4 </string >
1919 <key >CFBundleVersion </key >
20- <string >104 </string >
20+ <string >480 </string >
2121 <key >LSRequiresIPhoneOS </key >
2222 <true />
2323 <key >CADisableMinimumFrameDurationOnPhone </key >
You can’t perform that action at this time.
0 commit comments