Skip to content

High performance self-hosted photo and video management solution.

automatically read pubspec.yaml to set iOS version and build number (#1734)

martyfuhry390919c43957
diff --git a/mobile/ios/Runner.xcodeproj/project.pbxproj b/mobile/ios/Runner.xcodeproj/project.pbxproj
index 49154458a1..33054ca33f 100644
--- a/mobile/ios/Runner.xcodeproj/project.pbxproj
+++ b/mobile/ios/Runner.xcodeproj/project.pbxproj
@@ -362,7 +362,8 @@
CODE_SIGN_ENTITLEMENTS = Runner/RunnerProfile.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 85;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)";
DEVELOPMENT_TEAM = 2F67MQ8R79;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
@@ -497,7 +498,8 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 85;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)";
DEVELOPMENT_TEAM = 2F67MQ8R79;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
@@ -524,7 +526,8 @@
CLANG_ENABLE_MODULES = YES;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 85;
+ CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)";
+ MARKETING_VERSION = "$(FLUTTER_BUILD_NAME)";
DEVELOPMENT_TEAM = 2F67MQ8R79;
ENABLE_BITCODE = NO;
INFOPLIST_FILE = Runner/Info.plist;
diff --git a/mobile/ios/Runner/Info.plist b/mobile/ios/Runner/Info.plist
index f6a856b2ee..926edd42d5 100644
--- a/mobile/ios/Runner/Info.plist
+++ b/mobile/ios/Runner/Info.plist
@@ -1,101 +1,101 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
- <dict>
- <key>CFBundleDevelopmentRegion</key>
- <string>$(DEVELOPMENT_LANGUAGE)</string>
- <key>CFBundleDisplayName</key>
- <string>Immich</string>
- <key>CFBundleExecutable</key>
- <string>$(EXECUTABLE_NAME)</string>
- <key>CFBundleIdentifier</key>
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
- <key>CFBundleInfoDictionaryVersion</key>
- <string>6.0</string>
- <key>CFBundleName</key>
- <string>immich_mobile</string>
- <key>CFBundlePackageType</key>
- <string>APPL</string>
- <key>CFBundleShortVersionString</key>
- <string>1.46.0</string>
- <key>CFBundleSignature</key>
- <string>????</string>
- <key>CFBundleVersion</key>
- <string>85</string>
- <key>LSRequiresIPhoneOS</key>
- <true />
- <key>MGLMapboxMetricsEnabledSettingShownInApp</key>
- <true />
- <key>NSAppTransportSecurity</key>
- <dict>
- <key>NSAllowsArbitraryLoads</key>
- <true />
- </dict>
- <key>NSLocationAlwaysUsageDescription</key>
- <string>Enable location setting to show position of assets on map</string>
- <key>NSLocationWhenInUseUsageDescription</key>
- <string>Enable location setting to show position of assets on map</string>
- <key>NSPhotoLibraryUsageDescription</key>
- <string>We need to manage backup your photos album</string>
- <key>NSPhotoLibraryAddUsageDescription</key>
- <string>We need to manage backup your photos album</string>
- <key>NSCameraUsageDescription</key>
- <string>We need to access the camera to let you take beautiful video using this app</string>
- <key>NSMicrophoneUsageDescription</key>
- <string>We need to access the microphone to let you take beautiful video using this app</string>
- <key>UILaunchStoryboardName</key>
- <string>LaunchScreen</string>
- <key>UIMainStoryboardFile</key>
- <string>Main</string>
- <key>UISupportedInterfaceOrientations</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationLandscapeLeft</string>
- <string>UIInterfaceOrientationLandscapeRight</string>
- </array>
- <key>UISupportedInterfaceOrientations~ipad</key>
- <array>
- <string>UIInterfaceOrientationPortrait</string>
- <string>UIInterfaceOrientationPortraitUpsideDown</string>
- <string>UIInterfaceOrientationLandscapeLeft</string>
- <string>UIInterfaceOrientationLandscapeRight</string>
- </array>
- <key>UIViewControllerBasedStatusBarAppearance</key>
- <true />
- <key>io.flutter.embedded_views_preview</key>
- <true />
- <key>ITSAppUsesNonExemptEncryption</key>
- <false />
- <key>CADisableMinimumFrameDurationOnPhone</key>
- <true />
- <key>LSApplicationQueriesSchemes</key>
- <array>
- <string>https</string>
- </array>
- <key>CFBundleLocalizations</key>
- <array>
- <string>cs</string>
- <string>da</string>
- <string>de</string>
- <string>en</string>
- <string>es</string>
- <string>fi</string>
- <string>fr</string>
- <string>it</string>
- <string>ja</string>
- <string>ko</string>
- <string>nl</string>
- <string>pl</string>
- <string>pt</string>
- <string>ru</string>
- <string>sk</string>
- <string>zh</string>
- </array>
- <key>UIStatusBarHidden</key>
- <false />
- <key>UIApplicationSupportsIndirectInputEvents</key>
- <true />
- <key>FLTEnableImpeller</key>
- <true />
- </dict>
-</plist>
\ No newline at end of file
+<dict>
+ <key>CFBundleDevelopmentRegion</key>
+ <string>$(DEVELOPMENT_LANGUAGE)</string>
+ <key>CFBundleDisplayName</key>
+ <string>Immich</string>
+ <key>CFBundleExecutable</key>
+ <string>$(EXECUTABLE_NAME)</string>
+ <key>CFBundleIdentifier</key>
+ <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
+ <key>CFBundleInfoDictionaryVersion</key>
+ <string>6.0</string>
+ <key>CFBundleName</key>
+ <string>immich_mobile</string>
+ <key>CFBundlePackageType</key>
+ <string>APPL</string>
+ <key>CFBundleShortVersionString</key>
+ <string>$(FLUTTER_BUILD_NAME)</string>
+ <key>CFBundleSignature</key>
+ <string>????</string>
+ <key>CFBundleVersion</key>
+ <string>$(FLUTTER_BUILD_NUMBER)</string>
+ <key>LSRequiresIPhoneOS</key>
+ <true/>
+ <key>MGLMapboxMetricsEnabledSettingShownInApp</key>
+ <true/>
+ <key>NSAppTransportSecurity</key>
+ <dict>
+ <key>NSAllowsArbitraryLoads</key>
+ <true/>
+ </dict>
+ <key>NSLocationAlwaysUsageDescription</key>
+ <string>Enable location setting to show position of assets on map</string>
+ <key>NSLocationWhenInUseUsageDescription</key>
+ <string>Enable location setting to show position of assets on map</string>
+ <key>NSPhotoLibraryUsageDescription</key>
+ <string>We need to manage backup your photos album</string>
+ <key>NSPhotoLibraryAddUsageDescription</key>
+ <string>We need to manage backup your photos album</string>
+ <key>NSCameraUsageDescription</key>
+ <string>We need to access the camera to let you take beautiful video using this app</string>
+ <key>NSMicrophoneUsageDescription</key>
+ <string>We need to access the microphone to let you take beautiful video using this app</string>
+ <key>UILaunchStoryboardName</key>
+ <string>LaunchScreen</string>
+ <key>UIMainStoryboardFile</key>
+ <string>Main</string>
+ <key>UISupportedInterfaceOrientations</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UISupportedInterfaceOrientations~ipad</key>
+ <array>
+ <string>UIInterfaceOrientationPortrait</string>
+ <string>UIInterfaceOrientationPortraitUpsideDown</string>
+ <string>UIInterfaceOrientationLandscapeLeft</string>
+ <string>UIInterfaceOrientationLandscapeRight</string>
+ </array>
+ <key>UIViewControllerBasedStatusBarAppearance</key>
+ <true/>
+ <key>io.flutter.embedded_views_preview</key>
+ <true/>
+ <key>ITSAppUsesNonExemptEncryption</key>
+ <false/>
+ <key>CADisableMinimumFrameDurationOnPhone</key>
+ <true/>
+ <key>LSApplicationQueriesSchemes</key>
+ <array>
+ <string>https</string>
+ </array>
+ <key>CFBundleLocalizations</key>
+ <array>
+ <string>cs</string>
+ <string>da</string>
+ <string>de</string>
+ <string>en</string>
+ <string>es</string>
+ <string>fi</string>
+ <string>fr</string>
+ <string>it</string>
+ <string>ja</string>
+ <string>ko</string>
+ <string>nl</string>
+ <string>pl</string>
+ <string>pt</string>
+ <string>ru</string>
+ <string>sk</string>
+ <string>zh</string>
+ </array>
+ <key>UIStatusBarHidden</key>
+ <false/>
+ <key>UIApplicationSupportsIndirectInputEvents</key>
+ <true/>
+ <key>FLTEnableImpeller</key>
+ <true/>
+</dict>
+</plist>