From 51bb28bbb31a70853b85438b67c68b575665730e Mon Sep 17 00:00:00 2001 From: Andries Smit Date: Tue, 30 Jun 2026 10:44:42 +0200 Subject: [PATCH] chore: remove deprecated appcenter references --- .../workflows/ios-build-custom-dev-app.yml | 7 -- appcenter-build-config.json | 65 ------------------- appcenter-post-clone.sh | 13 ---- appcenter-pre-build.sh | 31 --------- capabilities.android.json | 1 - capabilities.ios.json | 1 - ios/appcenter-post-clone.sh | 12 ---- 7 files changed, 130 deletions(-) delete mode 100644 appcenter-build-config.json delete mode 100755 appcenter-post-clone.sh delete mode 100755 appcenter-pre-build.sh delete mode 100755 ios/appcenter-post-clone.sh diff --git a/.github/workflows/ios-build-custom-dev-app.yml b/.github/workflows/ios-build-custom-dev-app.yml index 54a564606..0bd94780e 100644 --- a/.github/workflows/ios-build-custom-dev-app.yml +++ b/.github/workflows/ios-build-custom-dev-app.yml @@ -46,13 +46,6 @@ jobs: run: bundle exec pod install working-directory: ./ios - - name: appcenter prebuilt script test - shell: bash - working-directory: ./ - run: | - chmod +x ./appcenter-pre-build.sh - APPCENTER_XCODE_SCHEME="nativeTemplate" APPCENTER_SOURCE_DIRECTORY="./" IS_DEV_APP=False ./appcenter-pre-build.sh - - name: iOS Build Action uses: yukiarrr/ios-build-action@v1.12.0 with: diff --git a/appcenter-build-config.json b/appcenter-build-config.json deleted file mode 100644 index 90494fa82..000000000 --- a/appcenter-build-config.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "ios": { - "trigger": "manual", - "testEnabled": false, - "signed": false, - "environmentVariables": [ - { "name": "CODE_PUSH_KEY", "value": "" }, - { "name": "IS_DEV_APP", "value": false }, - { "name": "SUPPORTS_MOBILE_TOOLKIT", "value": false } - ], - "toolsets": { - "xcode": { - "xcodeVersion": "15.4", - "automaticSigning": false, - "projectOrWorkspacePath": "ios/NativeTemplate.xcworkspace", - "podfilePath": "ios/Podfile", - "scheme": "nativeTemplate" - }, - "javascript": { - "packageJsonPath": "package.json", - "runTests": false, - "nodeVersion": "18.x" - }, - "buildscripts": { - "package.json": { - "postClone": "appcenter-post-clone.sh", - "preBuild": "appcenter-pre-build.sh" - } - } - } - }, - "android": { - "trigger": "manual", - "testEnabled": false, - "signed": false, - "environmentVariables": [ - { "name": "CODE_PUSH_KEY", "value": "" }, - { "name": "IS_DEV_APP", "value": false }, - { "name": "SUPPORTS_MOBILE_TOOLKIT", "value": false }, - { "name": "JAVA_HOME", "value": "$(JAVA_HOME_17_X64)" } - ], - "toolsets": { - "android": { - "module": "app", - "buildVariant": "appstoreDebug", - "isRoot": false, - "runTests": false, - "runLint": false, - "automaticSigning": false, - "gradleWrapperPath": "android/gradlew" - }, - "javascript": { - "packageJsonPath": "package.json", - "runTests": false, - "nodeVersion": "18.x" - }, - "buildscripts": { - "package.json": { - "postClone": "appcenter-post-clone.sh", - "preBuild": "appcenter-pre-build.sh" - } - } - } - } -} diff --git a/appcenter-post-clone.sh b/appcenter-post-clone.sh deleted file mode 100755 index b827ca08d..000000000 --- a/appcenter-post-clone.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash -set -e - -# Untar bundle resources -if [ -f "./android/res.tar.gz" ]; then - tar xvzf "./android/res.tar.gz" -C "./android/app/src/main/res" && sudo find "./android/app/src/main/res/." -type d -exec chmod u+rwx {} \; -fi - -# # Untar bundle resources -if [ -f "./ios/Bundle/assets.tar.gz" ]; then - mkdir "./ios/Bundle/assets" - tar xvzf "./ios/Bundle/assets.tar.gz" -C "./ios/Bundle/assets" && sudo find "./ios/Bundle/assets/." -type d -exec chmod u+rwx {} \; -fi diff --git a/appcenter-pre-build.sh b/appcenter-pre-build.sh deleted file mode 100755 index 666d3266a..000000000 --- a/appcenter-pre-build.sh +++ /dev/null @@ -1,31 +0,0 @@ -#!/usr/bin/env bash - -export JAVA_HOME=${JAVA_HOME_17_X64} -export PATH=${JAVA_HOME}/bin:${PATH} - -if [[ $SUPPORTS_MOBILE_TOOLKIT == True ]]; then - echo "Configuring template with mobile toolkit" - npm run configure -fi - -INFO_PLIST=$APPCENTER_SOURCE_DIRECTORY/ios/$APPCENTER_XCODE_SCHEME/Info.plist -if [[ -e "$INFO_PLIST" && $IS_DEV_APP == False ]]; then - echo "Removing old MendixNative lib" - rm -rf $APPCENTER_SOURCE_DIRECTORY/ios/MendixNative - echo "Stripping references of old MendixNative (i386, x86_64, arm64) archs" - LIB_PATH=$APPCENTER_SOURCE_DIRECTORY/ios/MendixNative/libMendix.a - lipo -remove arm64 -output $LIB_PATH $LIB_PATH || true - lipo -remove x86_64 -output $LIB_PATH $LIB_PATH || true - lipo -remove i386 -output $LIB_PATH $LIB_PATH || true - lipo -info $LIB_PATH || true - - cat $INFO_PLIST -fi - -CODE_PUSH_KEY_FILE=$APPCENTER_SOURCE_DIRECTORY/android/app/src/main/res/raw/code_push_key -if [[ -e "$CODE_PUSH_KEY_FILE" && $IS_DEV_APP == False ]]; then - echo "Updating Android code_push_key resource file with code push key" - sed -i '' 's/.*/'$CODE_PUSH_KEY'/' $CODE_PUSH_KEY_FILE; - - cat $CODE_PUSH_KEY_FILE -fi diff --git a/capabilities.android.json b/capabilities.android.json index b6938ddf5..efc33dda8 100644 --- a/capabilities.android.json +++ b/capabilities.android.json @@ -5,7 +5,6 @@ "crashlytics": false, "localNotifications": false, "pushNotifications": false, - "appCenterOTA": false, "maps": false, "mapsIos": false } diff --git a/capabilities.ios.json b/capabilities.ios.json index b6938ddf5..efc33dda8 100644 --- a/capabilities.ios.json +++ b/capabilities.ios.json @@ -5,7 +5,6 @@ "crashlytics": false, "localNotifications": false, "pushNotifications": false, - "appCenterOTA": false, "maps": false, "mapsIos": false } diff --git a/ios/appcenter-post-clone.sh b/ios/appcenter-post-clone.sh deleted file mode 100755 index f830047d6..000000000 --- a/ios/appcenter-post-clone.sh +++ /dev/null @@ -1,12 +0,0 @@ -# Update node version to 18; -brew install node@18 - -# Update project's dependencies -npm i && pod update - -# Untar bundle resources -if [ -f "./Bundle/assets.tar.gz" ]; then - mkdir ./Bundle/assets - tar xvzf ./Bundle/assets.tar.gz -C ./Bundle/assets && sudo find ./Bundle/assets/. -type d -exec chmod u+rwx {} \; - exit 0; -fi