diff --git a/.github/workflows/release_staging.yml b/.github/workflows/release_staging.yml new file mode 100644 index 0000000..d15a50a --- /dev/null +++ b/.github/workflows/release_staging.yml @@ -0,0 +1,62 @@ +# This is a lint and test workflow for Flutter CI + +name: Relase (staging) + +# on: +# push: +# branches: +# - develop +# pull_request: +# branches: +# - develop +on: + pull_request: +jobs: + build_ios: + name: Build iOS + runs-on: macOS-latest + steps: + # Setup Java environment in order to build the Android app. + - uses: actions/checkout@v2.3.2 + - uses: actions/setup-java@v1 + with: + java-version: '12.x' + + # Setup the Flutter environment. + - uses: subosito/flutter-action@v1 + with: + channel: 'stable' # 'dev', 'alpha', default to: 'stable' + # flutter-version: '1.12.x' # uncomment this to specify the exact version of Flutter + + - name: Get Flutter dependencies. + run: flutter pub get + + - name: Build app + run: flutter build ios --flavor staging -t lib/main-staging.dart --no-codesign + + - name: Upload iPA + uses: actions/upload-artifact@master + with: + name: ios-build + path: build/ios/iphoneos + deploy_ios: + name: Upload to Firebase App Distribution + needs: [build_ios] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + - name: Download Artifact + uses: actions/download-artifact@v2.0.9 + with: + name: ios-build + - name: Upload IPA + uses: wzieba/Firebase-Distribution-Github-Action@v1.3.2 + with: + appId: ${{secrets.FIREBASE_IOS_APP_ID}} + token: ${{secrets.FIREBASE_TOKEN}} + file: Runner.ipa + debug: true diff --git a/ios/Runner.xcodeproj/project.pbxproj b/ios/Runner.xcodeproj/project.pbxproj index 87b09a4..b632a02 100644 --- a/ios/Runner.xcodeproj/project.pbxproj +++ b/ios/Runner.xcodeproj/project.pbxproj @@ -476,6 +476,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 723E2E286422E7355D82CD8E /* Pods-Runner.debug-production.xcconfig */; buildSettings = { + DEVELOPMENT_TEAM = FM5NT9MLCT; PRODUCT_NAME = Runner; }; name = "Debug-production"; @@ -484,6 +485,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = A5EBA3F1CC940667DF79EE46 /* Pods-Runner.profile-production.xcconfig */; buildSettings = { + DEVELOPMENT_TEAM = FM5NT9MLCT; PRODUCT_NAME = Runner; }; name = "Profile-production"; @@ -492,6 +494,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = BD4D2DD9EF09CB23F1BFE775 /* Pods-Runner.release-production.xcconfig */; buildSettings = { + DEVELOPMENT_TEAM = FM5NT9MLCT; PRODUCT_NAME = Runner; }; name = "Release-production"; @@ -500,6 +503,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = 527D168B5B717A9D51E5BDE8 /* Pods-Runner.debug-staging.xcconfig */; buildSettings = { + DEVELOPMENT_TEAM = FM5NT9MLCT; PRODUCT_NAME = Runner; }; name = "Debug-staging"; @@ -508,6 +512,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = C2F4412A61D42AC96F3D7D8A /* Pods-Runner.profile-staging.xcconfig */; buildSettings = { + DEVELOPMENT_TEAM = FM5NT9MLCT; PRODUCT_NAME = Runner; }; name = "Profile-staging"; @@ -516,6 +521,7 @@ isa = XCBuildConfiguration; baseConfigurationReference = E2E32C4D4960E4DC124372C0 /* Pods-Runner.release-staging.xcconfig */; buildSettings = { + DEVELOPMENT_TEAM = FM5NT9MLCT; PRODUCT_NAME = Runner; }; name = "Release-staging"; diff --git a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme index a28140c..fb2dffc 100644 --- a/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme +++ b/ios/Runner.xcodeproj/xcshareddata/xcschemes/Runner.xcscheme @@ -27,8 +27,6 @@ selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB" selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB" shouldUseLaunchSchemeArgsEnv = "YES"> - - - - + + - - + + + + + + - - + shouldUseLaunchSchemeArgsEnv = "YES"> + + - - - + - + - + debugDocumentVersioning = "YES"> + - + diff --git a/ios/Runner/Info.plist b/ios/Runner/Info.plist index cda6f0c..cd93082 100644 --- a/ios/Runner/Info.plist +++ b/ios/Runner/Info.plist @@ -1,45 +1,45 @@ - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(BUNDLE_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - $(FLUTTER_BUILD_NAME) - CFBundleSignature - ???? - CFBundleVersion - $(FLUTTER_BUILD_NUMBER) - LSRequiresIPhoneOS - - UILaunchStoryboardName - $(ASSET_PREFIX)LaunchScreen - UIMainStoryboardFile - Main - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UIViewControllerBasedStatusBarAppearance - - + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(BUNDLE_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + $(FLUTTER_BUILD_NAME) + CFBundleSignature + ???? + CFBundleVersion + $(FLUTTER_BUILD_NUMBER) + LSRequiresIPhoneOS + + UILaunchStoryboardName + $(ASSET_PREFIX)LaunchScreen + UIMainStoryboardFile + Main + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UIViewControllerBasedStatusBarAppearance + +