mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
change codemagic.yaml
This commit is contained in:
+41
-23
@@ -1,35 +1,40 @@
|
||||
workflows:
|
||||
android-workflow:
|
||||
name: Ionic Capacitor Android Workflow
|
||||
ios-native-workflow:
|
||||
name: iOS Native
|
||||
max_build_duration: 120
|
||||
instance_type: mac_mini_m1
|
||||
integrations:
|
||||
app_store_connect: codemagic
|
||||
environment:
|
||||
android_signing:
|
||||
- GabineteDigital
|
||||
ios_signing:
|
||||
distribution_type: app_store
|
||||
bundle_identifier: com.gpr.gabinetedigital.teste
|
||||
vars:
|
||||
PACKAGE_NAME: "com.gpr.gabinetedigital"
|
||||
node: latest
|
||||
BUNDLE_ID: "io.codemagic.sample.iosnative"
|
||||
APP_STORE_APPLE_ID: DV5P2ZCAPJ
|
||||
xcode: latest
|
||||
cocoapods: default
|
||||
scripts:
|
||||
- name: Install npm dependencies for Ionic Capacitor project
|
||||
- name: Install CocoaPods dependencies
|
||||
script: |
|
||||
npm install --force
|
||||
- name: Set up local.properties
|
||||
pod install
|
||||
- name: Set up provisioning profiles settings on Xcode project
|
||||
script: xcode-project use-profiles
|
||||
- name: Increment build number
|
||||
script: |
|
||||
echo "sdk.dir=$ANDROID_SDK_ROOT" > "$CM_BUILD_DIR/android/local.properties"
|
||||
- name: Update dependencies and copy web assets to native project
|
||||
cd $CM_BUILD_DIR
|
||||
LATEST_BUILD_NUMBER=$(app-store-connect get-latest-app-store-build-number "$APP_STORE_APPLE_ID")
|
||||
agvtool new-version -all $(($LATEST_BUILD_NUMBER + 1))
|
||||
- name: Build ipa for distribution
|
||||
script: |
|
||||
# if you don't need to update native dependencies, use this:
|
||||
# npx cap copy
|
||||
#
|
||||
# to update native dependencies, use this command:
|
||||
ionic cap build android --prod
|
||||
- name: Build Android release
|
||||
script: |
|
||||
cd android
|
||||
./gradlew bundleRelease \
|
||||
-PversionCode=1 \
|
||||
-PversionName=1.0.0
|
||||
xcode-project build-ipa \
|
||||
--workspace "$CM_BUILD_DIR/$XCODE_WORKSPACE" \
|
||||
--scheme "$XCODE_SCHEME"
|
||||
artifacts:
|
||||
- android/app/build/outputs/**/*.apk
|
||||
- build/ios/ipa/*.ipa
|
||||
- /tmp/xcodebuild_logs/*.log
|
||||
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.app
|
||||
- $HOME/Library/Developer/Xcode/DerivedData/**/Build/**/*.dSYM
|
||||
publishing:
|
||||
email:
|
||||
recipients:
|
||||
@@ -38,3 +43,16 @@ workflows:
|
||||
notify:
|
||||
success: true
|
||||
failure: false
|
||||
app_store_connect:
|
||||
auth: integration
|
||||
|
||||
# Configuration related to TestFlight (optional)
|
||||
# Note: This action is performed during post-processing.
|
||||
submit_to_testflight: true
|
||||
beta_groups: # Specify the names of beta tester groups that will get access to the build once it has passed beta review.
|
||||
- group name 1
|
||||
- group name 2
|
||||
|
||||
# Configuration related to App Store (optional)
|
||||
# Note: This action is performed during post-processing.
|
||||
submit_to_app_store: false
|
||||
|
||||
Reference in New Issue
Block a user