mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
change codemagic.yaml
This commit is contained in:
+41
-23
@@ -1,35 +1,40 @@
|
|||||||
workflows:
|
workflows:
|
||||||
android-workflow:
|
ios-native-workflow:
|
||||||
name: Ionic Capacitor Android Workflow
|
name: iOS Native
|
||||||
max_build_duration: 120
|
max_build_duration: 120
|
||||||
|
instance_type: mac_mini_m1
|
||||||
|
integrations:
|
||||||
|
app_store_connect: codemagic
|
||||||
environment:
|
environment:
|
||||||
android_signing:
|
ios_signing:
|
||||||
- GabineteDigital
|
distribution_type: app_store
|
||||||
|
bundle_identifier: com.gpr.gabinetedigital.teste
|
||||||
vars:
|
vars:
|
||||||
PACKAGE_NAME: "com.gpr.gabinetedigital"
|
BUNDLE_ID: "io.codemagic.sample.iosnative"
|
||||||
node: latest
|
APP_STORE_APPLE_ID: DV5P2ZCAPJ
|
||||||
|
xcode: latest
|
||||||
|
cocoapods: default
|
||||||
scripts:
|
scripts:
|
||||||
- name: Install npm dependencies for Ionic Capacitor project
|
- name: Install CocoaPods dependencies
|
||||||
script: |
|
script: |
|
||||||
npm install --force
|
pod install
|
||||||
- name: Set up local.properties
|
- name: Set up provisioning profiles settings on Xcode project
|
||||||
|
script: xcode-project use-profiles
|
||||||
|
- name: Increment build number
|
||||||
script: |
|
script: |
|
||||||
echo "sdk.dir=$ANDROID_SDK_ROOT" > "$CM_BUILD_DIR/android/local.properties"
|
cd $CM_BUILD_DIR
|
||||||
- name: Update dependencies and copy web assets to native project
|
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: |
|
script: |
|
||||||
# if you don't need to update native dependencies, use this:
|
xcode-project build-ipa \
|
||||||
# npx cap copy
|
--workspace "$CM_BUILD_DIR/$XCODE_WORKSPACE" \
|
||||||
#
|
--scheme "$XCODE_SCHEME"
|
||||||
# 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
|
|
||||||
artifacts:
|
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:
|
publishing:
|
||||||
email:
|
email:
|
||||||
recipients:
|
recipients:
|
||||||
@@ -38,3 +43,16 @@ workflows:
|
|||||||
notify:
|
notify:
|
||||||
success: true
|
success: true
|
||||||
failure: false
|
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