-
-
Notifications
You must be signed in to change notification settings - Fork 246
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Setup testflight against v8 branch * enable run on pr * run on push * make executable * fix beta version number * push on main, release and workflow update * bump xcode default version to 15.0.1 * add newline * Add ITSAppUsesNonExemptEncryption to info.plist * select with xcodes * fix file extension * fix warnings * use correct property to remove warning * Update ktlint --------- Co-authored-by: GIancarlo Buenaflor <[email protected]>
- Loading branch information
Showing
11 changed files
with
192 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -188,7 +188,7 @@ jobs: | |
- uses: actions/checkout@v4 | ||
|
||
- name: ktlint | ||
uses: ScaCap/action-ktlint@0ff81efa49425bd0df46caabd8005aafdc8f2cf2 # [email protected].0 | ||
uses: ScaCap/action-ktlint@38262d0fb8bff43ddafc8b3c04bce6e6c7263319 # [email protected].1 | ||
with: | ||
github_token: ${{ secrets.github_token }} | ||
reporter: github-pr-review | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Upload to Testflight | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- release/** | ||
pull_request: | ||
paths: | ||
- '.github/workflows/testflight.yml' | ||
|
||
jobs: | ||
upload_to_testflight: | ||
name: Build and Upload to Testflight | ||
runs-on: macos-13 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: subosito/flutter-action@48cafc24713cca54bbe03cdc3a423187d413aafa # [email protected] | ||
- run: xcodes select 15.0.1 | ||
- uses: ruby/setup-ruby@250fcd6a742febb1123a77a841497ccaa8b9e939 # [email protected] | ||
with: | ||
ruby-version: '2.7.5' | ||
bundler-cache: true | ||
|
||
- name: flutter | ||
working-directory: ./flutter/example | ||
run: | | ||
flutter upgrade | ||
flutter pub get | ||
flutter build ios --no-codesign | ||
- name: Install Fastlane | ||
working-directory: ./flutter/example/ios | ||
run: bundle install | ||
|
||
- name: Bump, Build & Upload App to TestFlight | ||
working-directory: ./flutter/example/ios | ||
env: | ||
APP_STORE_CONNECT_KEY_ID: ${{ secrets.APP_STORE_CONNECT_KEY_ID }} | ||
APP_STORE_CONNECT_ISSUER_ID: ${{ secrets.APP_STORE_CONNECT_ISSUER_ID }} | ||
APP_STORE_CONNECT_KEY: ${{ secrets.APP_STORE_CONNECT_KEY }} | ||
FASTLANE_BUNDLE_VERSION: ${{ github.run_number }} | ||
FASTLANE_KEYCHAIN_PASSWORD: ${{ secrets.FASTLANE_KEYCHAIN_PASSWORD }} | ||
MATCH_GIT_PRIVATE_KEY: ${{ secrets.MATCH_GIT_PRIVATE_KEY }} | ||
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }} | ||
MATCH_USERNAME: ${{ secrets.MATCH_USERNAME }} | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
SENTRY_LOG_LEVEL: DEBUG | ||
run: | | ||
bundle exec fastlane bump_build_number | ||
bundle exec fastlane build_release | ||
bundle exec fastlane upload_testflight | ||
- name: Upload Symbols to Sentry | ||
working-directory: ./flutter/example | ||
env: | ||
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | ||
run: flutter packages pub run sentry_dart_plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
source "https://rubygems.org" | ||
|
||
gem "fastlane" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
app_identifier("io.sentry.flutter.sample") # The bundle identifier of your app | ||
|
||
itc_team_id("96157806") # App Store Connect Team ID | ||
team_id("97JCY7859U") # Developer Portal Team ID | ||
|
||
# For more information about the Appfile, see: | ||
# https://docs.fastlane.tools/advanced/#appfile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
default_platform(:ios) | ||
|
||
platform :ios do | ||
|
||
desc "Bump Build Number" | ||
lane :bump_build_number do | ||
fetch_api_key() | ||
|
||
version_string = get_version_number(xcodeproj: "./Runner.xcodeproj") | ||
version_parts = version_string.split(".") | ||
|
||
# Remove last digit if necessary | ||
if version_parts.length > 3 | ||
version_parts.pop | ||
end | ||
|
||
new_version = version_parts.join(".") | ||
|
||
increment_version_number( | ||
version_number: new_version, | ||
xcodeproj: "./Runner.xcodeproj" | ||
) | ||
increment_build_number( | ||
build_number: latest_testflight_build_number + 1, | ||
xcodeproj: "./Runner.xcodeproj" | ||
) | ||
end | ||
|
||
desc "Build Release" | ||
lane :build_release do | ||
|
||
setup_ci | ||
|
||
disable_automatic_code_signing | ||
|
||
sync_code_signing( | ||
type: "development", | ||
readonly: true, | ||
app_identifier: ["io.sentry.flutter.sample"] | ||
) | ||
|
||
sync_code_signing( | ||
type: "appstore", | ||
readonly: true, | ||
app_identifier: ["io.sentry.flutter.sample"] | ||
) | ||
|
||
update_project_provisioning( | ||
xcodeproj: "Runner.xcodeproj", | ||
target_filter: "Runner", | ||
profile: ENV["sigh_io.sentry.flutter.sample_appstore_profile-path"], | ||
build_configuration: "Release" | ||
) | ||
|
||
build_app( | ||
workspace: "Runner.xcworkspace", | ||
scheme: "Runner", | ||
configuration: "Release", | ||
clean: true, | ||
include_symbols: true, | ||
export_method: "app-store", | ||
output_directory:"./build/", | ||
export_options: { | ||
method: "app-store", | ||
provisioningProfiles: { | ||
"io.sentry.flutter.sample" => ENV["sigh_io.sentry.flutter.sample_appstore_profile-name"] | ||
} | ||
}, | ||
codesigning_identity: ENV["sigh_io.sentry.flutter.sample_appstore_certificate-name"], | ||
output_name: "sentry_flutter_sample.ipa" | ||
) | ||
|
||
delete_keychain( | ||
name: "fastlane_tmp_keychain" | ||
) unless is_ci | ||
end | ||
|
||
desc "Upload to TestFlight" | ||
lane :upload_testflight do | ||
fetch_api_key() | ||
testflight( | ||
skip_waiting_for_build_processing: true, | ||
ipa: "./build/sentry_flutter_sample.ipa" | ||
) | ||
end | ||
|
||
desc "Fetch ASC API Key" | ||
lane :fetch_api_key do | ||
app_store_connect_api_key( | ||
key_id: ENV["APP_STORE_CONNECT_KEY_ID"], | ||
issuer_id: ENV["APP_STORE_CONNECT_ISSUER_ID"], | ||
key_content: ENV["APP_STORE_CONNECT_KEY"] | ||
) | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
git_url("[email protected]:getsentry/codesigning.git") | ||
storage_mode("git") | ||
username("[email protected]") # Your Apple Developer Portal username | ||
|
||
# The docs are available on https://docs.fastlane.tools/actions/match |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters