Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/publish_android_on_huawei.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ jobs:
CLIENT_ID: ${{ secrets.APP_GALLERY_CLIENT_ID }}
CLIENT_SECRET: ${{ secrets.APP_GALLERY_CLIENT_SECRET }}
APK_PATH: composeApp/build/outputs/bundle/fullRelease/composeApp-full-release.aab
run: bundle exec fastlane android publish_app_gallery app_id:$APP_ID client_id:$CLIENT_ID client_secret:$CLIENT_SECRET apk_path:$APK_PATH
run: bundle exec fastlane android publish_app_gallery organization:ooni app_id:$APP_ID client_id:$CLIENT_ID client_secret:$CLIENT_SECRET apk_path:$APK_PATH
2 changes: 1 addition & 1 deletion .github/workflows/publish_ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG_SLUG: ${{ secrets.SENTRY_ORG_SLUG }}
SENTRY_PROJECT_SLUG: ${{ secrets.SENTRY_PROJECT_SLUG_IOS }}
run: bundle exec fastlane sentry_upload_debug_symbols auth_token:$SENTRY_AUTH_TOKEN org_slug:$SENTRY_ORG_SLUG project_slug:$SENTRY_PROJECT_SLUG
run: bundle exec fastlane ios sentry_upload_debug_symbols auth_token:$SENTRY_AUTH_TOKEN org_slug:$SENTRY_ORG_SLUG project_slug:$SENTRY_PROJECT_SLUG

publishNewsMediaScan:
name: Publish NewsMediaScan iOS
Expand Down
34 changes: 19 additions & 15 deletions fastlane/Fastfile
Original file line number Diff line number Diff line change
Expand Up @@ -256,24 +256,28 @@ platform :ios do
lane :capture_screens do |options|
# TODO
end
end

desc "Upload debug symbols to Sentry"
desc "#### Example:"
desc "```\nfastlane sentry_upload_debug_symbols auth_token:... org_slug:ooni project_slug:probe-multiplatform-ios\n```"
desc "#### Options"
desc " * **`auth_token`**: Sentry auth token"
desc " * **`org_slug`**: Sentry organization slug"
desc " * **`project_slug`**: Sentry project slug"
desc ""
lane :sentry_upload_debug_symbols do |options|
sentry_debug_files_upload(
auth_token: options[:auth_token],
org_slug: options[:org_slug],
project_slug: options[:project_slug]
)

desc "Upload debug symbols to Sentry"
desc "#### Example:"
desc "```\nfastlane sentry_upload_debug_symbols auth_token:... org_slug:ooni project_slug:probe-multiplatform-ios path:.\n```"
desc "#### Options"
desc " * **`auth_token`**: Sentry auth token"
desc " * **`org_slug`**: Sentry organization slug"
desc " * **`project_slug`**: Sentry project slug"
desc ""
lane :sentry_upload_debug_symbols do |options|

sentry_debug_files_upload(
auth_token: options[:auth_token],
org_slug: options[:org_slug],
project_slug: options[:project_slug],
path: options[:path] || '.'
)
end
end


def organization!(options)
organization = options[:organization]
raise "Invalid organization '#{organization}'" unless %w(ooni dw).include?(organization)
Expand Down
51 changes: 24 additions & 27 deletions fastlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,6 @@ For _fastlane_ installation instructions, see [Installing _fastlane_](https://do

# Available Actions

### sentry_upload_debug_symbols

```sh
[bundle exec] fastlane sentry_upload_debug_symbols
```

Upload debug symbols to Sentry

#### Example:

```
fastlane sentry_upload_debug_symbols auth_token:... org_slug:ooni project_slug:probe-multiplatform-ios
```

#### Options

* **`auth_token`**: Sentry auth token

* **`org_slug`**: Sentry organization slug

* **`project_slug`**: Sentry project slug



----


## Android

### android publish_app_gallery
Expand Down Expand Up @@ -335,6 +308,30 @@ fastlane ios capture_screens organization:ooni locales:en,it



### ios sentry_upload_debug_symbols

```sh
[bundle exec] fastlane ios sentry_upload_debug_symbols
```

Upload debug symbols to Sentry

#### Example:

```
fastlane sentry_upload_debug_symbols auth_token:... org_slug:ooni project_slug:probe-multiplatform-ios path:.
```

#### Options

* **`auth_token`**: Sentry auth token

* **`org_slug`**: Sentry organization slug

* **`project_slug`**: Sentry project slug



----

This README.md is auto-generated and will be re-generated every time [_fastlane_](https://fastlane.tools) is run.
Expand Down
22 changes: 22 additions & 0 deletions iosApp/ci_scripts/ci_post_clone.sh
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,27 @@ set -e
HOMEBREW_NO_AUTO_UPDATE=1 # disable homebrew's automatic updates.
brew install cocoapods

brew install ruby@3.3

echo 'export PATH="/usr/local/opt/ruby@3.3/bin:$PATH"' >> ~/.zshrc

source ~/.zshrc

### Start fastlane setup
cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo.

echo 'export GEM_HOME=$HOME/gems' >>~/.zshrc
echo 'export PATH=$HOME/gems/bin:$PATH' >>~/.zshrc
export GEM_HOME=$HOME/gems
export PATH="$GEM_HOME/bin:$PATH"

gem install bundler --install-dir $GEM_HOME

bundle install

### End fastlane setup

### Start Java setup
root_dir=$CI_WORKSPACE_PATH
repo_dir=$CI_PRIMARY_REPOSITORY_PATH
jdk_dir="${CI_DERIVED_DATA_PATH}/JDK"
Expand Down Expand Up @@ -83,6 +104,7 @@ recover_cache_files
install_jdk_if_needed

export JAVA_HOME="${jdk_dir}/Home"
### End Java setup

# The default execution directory of this script is the ci_scripts directory.
cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo.
Expand Down
10 changes: 10 additions & 0 deletions iosApp/ci_scripts/ci_post_xcodebuild.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/sh

# Fail this script if any subcommand fails.
set -e

cd $CI_PRIMARY_REPOSITORY_PATH # change working directory to the root of your cloned repo.

source ~/.zshrc

bundle exec fastlane ios sentry_upload_debug_symbols auth_token:$SENTRY_AUTH_TOKEN org_slug:ooni project_slug:probe-multiplatform-ios