Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
20 changes: 0 additions & 20 deletions .circleci/src/commands/@mobile-commands.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,18 +5,6 @@ mobile-halt-if-no-native-changes:
command: |
! git diff --quiet origin/main... -- 'packages/mobile' ':!packages/mobile/src' || circleci-agent step halt

mobile-halt-if-codepush-release-ios:
steps:
- run:
name: fastlane build
command: cd packages/mobile/ios && bundle exec fastlane haltIfCodePushEligible

mobile-halt-if-codepush-release-android:
steps:
- run:
name: fastlane build
command: cd packages/mobile/android && bundle exec fastlane haltIfCodePushEligible

# Bundle ios app and prepare to build/upload/release
mobile-prepare-ios:
parameters:
Expand DownExpand Up@@ -50,7 +38,6 @@ mobile-prepare-ios:
command: |
ln -s $PWD/node_modules/.bin/react-native $PWD/packages/mobile/node_modules/.bin/react-native || true
ln -s $PWD/node_modules/react-native $PWD/packages/mobile/node_modules/react-native || true
ln -s $PWD/node_modules/react-native-code-push $PWD/packages/mobile/node_modules/react-native-code-push || true
- restore_cache:
key: pods-{{ checksum "packages/mobile/ios/Podfile.lock" }}
- run:
Expand DownExpand Up@@ -99,8 +86,6 @@ mobile-build-ios:
- store_test_results:
path: packages/mobile/output/scan

# If the app can be released via CodePush, release it via CodePush.
# Otherwise, build and upload it to the App Store.
mobile-release-ios:
parameters:
build-directory:
Expand DownExpand Up@@ -216,14 +201,11 @@ mobile-build-android:
name: Symlink react-native
command: |
ln -s $PWD/node_modules/react-native $PWD/packages/mobile/node_modules/react-native || true
ln -s $PWD/node_modules/react-native-code-push $PWD/packages/mobile/node_modules/react-native-code-push || true
- run:
name: generating the release apk & bundle
command: |
echo "yes" | sdkmanager "platforms;android-30" && cd packages/mobile/android && ./gradlew <<parameters.build-type>>

# If the app can be released via CodePush, release it via CodePush.
# Otherwise, build and upload it to the App Store.
mobile-release-android:
parameters:
build-directory:
Expand All@@ -244,7 +226,6 @@ mobile-release-android:
command: |
ln -s $PWD/node_modules/.bin/react-native $PWD/packages/mobile/node_modules/.bin/react-native || true
ln -s $PWD/node_modules/react-native $PWD/packages/mobile/node_modules/react-native || true
ln -s $PWD/node_modules/react-native-code-push $PWD/packages/mobile/node_modules/react-native-code-push || true
- run:
name: release android
command: |
Expand DownExpand Up@@ -320,7 +301,6 @@ mobile-release-saga-dapp-store:
command: |
ln -s $PWD/node_modules/.bin/react-native $PWD/packages/mobile/node_modules/.bin/react-native || true
ln -s $PWD/node_modules/react-native $PWD/packages/mobile/node_modules/react-native || true
ln -s $PWD/node_modules/react-native-code-push $PWD/packages/mobile/node_modules/react-native-code-push || true
- run:
name: Build Android
command: |
Expand Down
35 changes: 0 additions & 35 deletions .circleci/src/jobs/@mobile-jobs.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -52,7 +52,6 @@ mobile-build-staging-ios:
FL_OUTPUT_DIR: output
shell: /bin/bash --login -o pipefail
steps:
- mobile-halt-if-no-native-changes # Don't need to test building if there's no native changes
- mobile-prepare-ios:
build-directory: 'build-mobile-staging'
bundle-id: 'co.audius.audiusmusic.staging'
Expand DownExpand Up@@ -114,32 +113,12 @@ mobile-build-upload-production-ios-if-full-release:
build-directory: 'build-mobile-production'
bundle-id: 'co.audius.audiusmusic'
env: '.env.prod'
- mobile-halt-if-codepush-release-ios
- mobile-release-ios:
build-directory: 'build-mobile-production'
bundle-id: 'co.audius.audiusmusic'
env: '.env.prod'
slack-notify: false

mobile-deploy-codepush-production-ios-if-ota-release:
working_directory: ~/audius-protocol
# run on macos so app can be created and signed.
resource_class: macos.m1.medium.gen1
macos:
xcode: '16.2.0'
environment:
FL_OUTPUT_DIR: output
shell: /bin/bash --login -o pipefail
steps:
- mobile-prepare-ios:
build-directory: 'build-mobile-production'
bundle-id: 'co.audius.audiusmusic'
env: '.env.prod'
- mobile-release-ios:
build-directory: 'build-mobile-production'
bundle-id: 'co.audius.audiusmusic'
env: '.env.prod'

mobile-build-upload-releasecandidate-ios:
working_directory: ~/audius-protocol
# run on macos so app can be created and signed.
Expand DownExpand Up@@ -255,26 +234,12 @@ mobile-build-upload-production-android-if-full-release:
steps:
- mobile-prepare-android:
build-directory: 'build-mobile-production'
- mobile-halt-if-codepush-release-android
- mobile-release-android:
build-directory: 'build-mobile-production'
upload-type: 'prod'
track: 'alpha'
slack-notify: false

mobile-deploy-codepush-production-android-if-ota-release:
working_directory: ~/audius-protocol
resource_class: large
docker:
- image: cimg/android:2023.08-node
steps:
- mobile-prepare-android:
build-directory: 'build-mobile-production'
- mobile-release-android:
build-directory: 'build-mobile-production'
upload-type: 'prod'
track: 'alpha'

mobile-deploy-saga-dapp-store:
working_directory: ~/audius-protocol
resource_class: xlarge
Expand Down
36 changes: 0 additions & 36 deletions .circleci/src/workflows/mobile.yml
Original file line numberDiff line numberDiff line change
Expand Up@@ -59,24 +59,6 @@ jobs:
branches:
only: /(^release.*)$/

- mobile-hold-deploy-codepush-ios-if-ota-release:
type: approval
requires:
- mobile-build-upload-production-ios-if-full-release
filters:
branches:
only: /(^release.*)$/

- mobile-deploy-codepush-production-ios-if-ota-release:
context:
- Audius Mobile Client
- slack-secrets
requires:
- mobile-hold-deploy-codepush-ios-if-ota-release
filters:
branches:
only: /(^release.*)$/

- mobile-build-staging-android:
context: Audius Mobile Client
requires:
Expand DownExpand Up@@ -133,24 +115,6 @@ jobs:
branches:
only: /(^release.*)$/

- mobile-hold-deploy-codepush-android-if-ota-release:
type: approval
requires:
- mobile-build-upload-production-android-if-full-release
filters:
branches:
only: /(^release.*)$/

- mobile-deploy-codepush-production-android-if-ota-release:
context:
- Audius Mobile Client
- slack-secrets
requires:
- mobile-hold-deploy-codepush-android-if-ota-release
filters:
branches:
only: /(^release.*)$/

- mobile-hold-deploy-saga-dapp-store:
type: approval
requires:
Expand Down
Loading