diff --git a/iosApp/Android Makers.xcodeproj/project.pbxproj b/iosApp/Android Makers.xcodeproj/project.pbxproj index 3d4852fb..d39714f9 100644 --- a/iosApp/Android Makers.xcodeproj/project.pbxproj +++ b/iosApp/Android Makers.xcodeproj/project.pbxproj @@ -391,10 +391,12 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AndroidMakers/AndroidMakers.entitlements; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 13; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; + CURRENT_PROJECT_VERSION = 1465; DEVELOPMENT_ASSET_PATHS = "\"AndroidMakers/Preview Content\""; DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 57MV6634WZ; ENABLE_PREVIEWS = YES; ENABLE_USER_SCRIPT_SANDBOXING = NO; FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../shared/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)"; @@ -404,13 +406,15 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 3.0.0; + MARKETING_VERSION = 4.1; OTHER_LDFLAGS = ( "-framework", shared, ); PRODUCT_BUNDLE_IDENTIFIER = com.paug.RobotConf; PRODUCT_NAME = "Android Makers"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Robot 2024"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; @@ -421,10 +425,12 @@ buildSettings = { ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; CODE_SIGN_ENTITLEMENTS = AndroidMakers/AndroidMakers.entitlements; - CODE_SIGN_STYLE = Automatic; - CURRENT_PROJECT_VERSION = 13; + "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; + CODE_SIGN_STYLE = Manual; + CURRENT_PROJECT_VERSION = 1465; DEVELOPMENT_ASSET_PATHS = "\"AndroidMakers/Preview Content\""; DEVELOPMENT_TEAM = ""; + "DEVELOPMENT_TEAM[sdk=iphoneos*]" = 57MV6634WZ; ENABLE_PREVIEWS = YES; ENABLE_USER_SCRIPT_SANDBOXING = NO; FRAMEWORK_SEARCH_PATHS = "$(SRCROOT)/../shared/build/xcode-frameworks/$(CONFIGURATION)/$(SDK_NAME)"; @@ -434,13 +440,15 @@ "$(inherited)", "@executable_path/Frameworks", ); - MARKETING_VERSION = 3.0.0; + MARKETING_VERSION = 4.1; OTHER_LDFLAGS = ( "-framework", shared, ); PRODUCT_BUNDLE_IDENTIFIER = com.paug.RobotConf; PRODUCT_NAME = "Android Makers"; + PROVISIONING_PROFILE_SPECIFIER = ""; + "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = "Robot 2024"; SWIFT_VERSION = 5.0; TARGETED_DEVICE_FAMILY = "1,2"; }; diff --git a/shared/ui/src/iosMain/kotlin/com/androidmakers/ui/MainLayoutViewController.kt b/shared/ui/src/iosMain/kotlin/com/androidmakers/ui/MainLayoutViewController.kt index fa25b266..32fc5dc6 100644 --- a/shared/ui/src/iosMain/kotlin/com/androidmakers/ui/MainLayoutViewController.kt +++ b/shared/ui/src/iosMain/kotlin/com/androidmakers/ui/MainLayoutViewController.kt @@ -3,15 +3,20 @@ package com.androidmakers.ui import androidx.compose.ui.window.ComposeUIViewController import com.androidmakers.ui.common.SigninCallbacks import com.androidmakers.ui.theme.AndroidMakersTheme +import kotlinx.cinterop.ExperimentalForeignApi +import platform.Foundation.NSBundle import platform.UIKit.UIViewController fun MainLayoutViewController(): UIViewController = ComposeUIViewController { + val versionName = NSBundle.mainBundle.objectForInfoDictionaryKey("CFBundleShortVersionString") + val versionCode = NSBundle.mainBundle.objectForInfoDictionaryKey("CFBundleVersion") + AndroidMakersTheme { MainLayout( - versionName = "1.0.0", - versionCode = "1.0", + versionName = versionName.toString(), + versionCode = versionCode.toString(), signinCallbacks = SigninCallbacks( signin = {}, signout = {}