diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7a64b30d..5d12f1ee 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -81,7 +81,7 @@ jobs: SENTRY_RELEASE: ${{ steps.build.outputs.SENTRY_RELEASE }} SENTRY_DIST: ${{ steps.build.outputs.SENTRY_DIST }} - name: Upload Beta - if: github.event_name == 'push1' || github.event_name == 'release1' # Disabled for now + if: github.event_name == 'push' || github.event_name == 'release1' # Disabled for now run: bash ${GITHUB_WORKSPACE}/Scripts/fastlane.sh working-directory: Scripts continue-on-error: true diff --git a/.gitignore b/.gitignore index 71d66d10..5a0fe980 100644 --- a/.gitignore +++ b/.gitignore @@ -48,3 +48,10 @@ app.*.map.json /.vscode/settings.json /lib/l10n/messages_*.dart /ios/Podfile.lock +/ios/APPLE_SECRETS.json + +ios/Runner.ipa + +ios/fastlane/report.xml + +ios/Runner.app.dSYM.zip diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 3e145783..88b48af9 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -30,6 +30,7 @@ /* End PBXCopyFilesBuildPhase section */ /* Begin PBXFileReference section */ + 0BD4B9A62BFBDF1000EB00F6 /* Runner.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Runner.entitlements; sourceTree = ""; }; 1498D2321E8E86230040F4C2 /* GeneratedPluginRegistrant.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = GeneratedPluginRegistrant.h; sourceTree = ""; }; 1498D2331E8E89220040F4C2 /* GeneratedPluginRegistrant.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = GeneratedPluginRegistrant.m; sourceTree = ""; }; 3B3967151E833CAA004F5970 /* AppFrameworkInfo.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; name = AppFrameworkInfo.plist; path = Flutter/AppFrameworkInfo.plist; sourceTree = ""; }; @@ -104,6 +105,7 @@ 97C146F01CF9000F007C117D /* Runner */ = { isa = PBXGroup; children = ( + 0BD4B9A62BFBDF1000EB00F6 /* Runner.entitlements */, 97C146FA1CF9000F007C117D /* Main.storyboard */, 97C146FD1CF9000F007C117D /* Assets.xcassets */, 97C146FF1CF9000F007C117D /* LaunchScreen.storyboard */, @@ -383,6 +385,7 @@ ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO; BUILD_LIBRARY_FOR_DISTRIBUTION = NO; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = SKRSQZ43AV; ENABLE_BITCODE = NO; @@ -527,6 +530,7 @@ ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO; BUILD_LIBRARY_FOR_DISTRIBUTION = NO; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = SKRSQZ43AV; ENABLE_BITCODE = NO; @@ -557,6 +561,7 @@ ASSETCATALOG_COMPILER_INCLUDE_ALL_APPICON_ASSETS = NO; BUILD_LIBRARY_FOR_DISTRIBUTION = NO; CLANG_ENABLE_MODULES = YES; + CODE_SIGN_ENTITLEMENTS = Runner/Runner.entitlements; CURRENT_PROJECT_VERSION = "$(FLUTTER_BUILD_NUMBER)"; DEVELOPMENT_TEAM = SKRSQZ43AV; ENABLE_BITCODE = NO; diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index 3b25c827..f2a3aed7 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -1,66 +1,66 @@ - - CADisableMinimumFrameDurationOnPhone - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleDisplayName - Tail Company - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - tail_app - CFBundlePackageType - APPL - CFBundleShortVersionString - $(FLUTTER_BUILD_NAME) - CFBundleSignature - ???? - CFBundleVersion - $(FLUTTER_BUILD_NUMBER) - ITSAppUsesNonExemptEncryption - - LSRequiresIPhoneOS - - NSBluetoothAlwaysUsageDescription - Need BLE permission to connect to Gear - NSBluetoothPeripheralUsageDescription - Need BLE permission to connect to Gear - NSMotionUsageDescription - This application uses motion to trigger actions when you are walking - NSPhotoLibraryUsageDescription - Unused, but added by the library used to select firmware files - UIApplicationSupportsIndirectInputEvents - - UIBackgroundModes - - bluetooth-central - fetch - - UILaunchStoryboardName - LaunchScreen.storyboard - UIMainStoryboardFile - Main - UIRequiresFullScreen - - UIRequiresPersistentWiFi - - UIStatusBarHidden - - UISupportedInterfaceOrientations - - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - - UIViewControllerBasedStatusBarAppearance - - + + CADisableMinimumFrameDurationOnPhone + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Tail Company + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + tail_app + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + ITSAppUsesNonExemptEncryption + + LSRequiresIPhoneOS + + NSBluetoothAlwaysUsageDescription + Need BLE permission to connect to Gear + NSBluetoothPeripheralUsageDescription + Need BLE permission to connect to Gear + NSMotionUsageDescription + This application uses motion to trigger actions when you are walking + NSPhotoLibraryUsageDescription + Unused, but added by the library used to select firmware files + UIApplicationSupportsIndirectInputEvents + + UIBackgroundModes + + bluetooth-central + fetch + + UILaunchStoryboardName + LaunchScreen.storyboard + UIMainStoryboardFile + Main + UIRequiresFullScreen + + UIRequiresPersistentWiFi + + UIStatusBarHidden + + UISupportedInterfaceOrientations + + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + + UIViewControllerBasedStatusBarAppearance + + diff --git a/ios/Runner/Runner.entitlements b/ios/Runner/Runner.entitlements new file mode 100644 index 00000000..903def2a --- /dev/null +++ b/ios/Runner/Runner.entitlements @@ -0,0 +1,8 @@ + + + + + aps-environment + development + + diff --git a/ios/fastlane/Fastfile b/ios/fastlane/Fastfile index 891ba496..dae5f3c4 100644 --- a/ios/fastlane/Fastfile +++ b/ios/fastlane/Fastfile @@ -10,6 +10,7 @@ platform :ios do # note the `..`, since fastlane runs in the _fastlane_ directory changelog = File.read("../../CHANGELOG.md") + #get_push_certificate build_app(workspace: "Runner.xcworkspace", scheme: "Runner") upload_to_testflight(skip_waiting_for_build_processing: true, changelog:changelog, build_number: ENV['BUILD_NUMBER'], app_version: ENV['VERSION'], reject_build_waiting_for_review: true, api_key_path:"APPLE_SECRETS.json") end diff --git a/ios/fastlane/README.md b/ios/fastlane/README.md new file mode 100644 index 00000000..891747df --- /dev/null +++ b/ios/fastlane/README.md @@ -0,0 +1,32 @@ +fastlane documentation +---- + +# Installation + +Make sure you have the latest version of the Xcode command line tools installed: + +```sh +xcode-select --install +``` + +For _fastlane_ installation instructions, see [Installing _fastlane_](https://docs.fastlane.tools/#installing-fastlane) + +# Available Actions + +## iOS + +### ios beta + +```sh +[bundle exec] fastlane ios beta +``` + +Push a new beta build to TestFlight + +---- + +This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run. + +More information about _fastlane_ can be found on [fastlane.tools](https://fastlane.tools). + +The documentation of _fastlane_ can be found on [docs.fastlane.tools](https://docs.fastlane.tools).