diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index d6d92e2a8..fada1dd4f 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -1,37 +1,29 @@ -name: check - -permissions: - contents: read - +name: Mi Prueba de Humo iOS on: - pull_request: - push: - branches: main - -concurrency: - group: ${{ github.workflow }}-${{ github.head_ref || github.ref }} - cancel-in-progress: true + workflow_dispatch: jobs: - check: - runs-on: macOS-15 - env: - MINT_PATH: ${{ github.workspace }}/mint + build_ios: + runs-on: macos-latest steps: - - uses: actions/checkout@v2 - - - name: Cache Mint packages - uses: actions/cache@v4 - with: - path: ${{ env.MINT_PATH }} - key: ${{ runner.os }}-mint-${{ hashFiles('**/Mintfile') }} - restore-keys: ${{ runner.os }}-mint- - - - name: Install mint - run: brew install mint - - - name: Bootstrap mint with swiftformat - run: mint bootstrap - - - name: Check - run: scripts/style.sh test-only + - name: Checkout + uses: actions/checkout@v4 + + - name: Instalar pods + run: | + cd analytics + pod install + + - name: Compilar + run: | + xcodebuild -workspace analytics/AnalyticsExample.xcworkspace \ + -scheme AnalyticsExample \ + -configuration Debug \ + -sdk iphonesimulator \ + -derivedDataPath build + + - name: Guardar App para Appetize + uses: actions/upload-artifact@v4 + with: + name: app-simulador + path: build/Build/Products/Debug-iphonesimulator/AnalyticsExample.app diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 000000000..7a3b067ca --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,47 @@ +name: Prueba Final Caro - Victoria Total +on: + workflow_dispatch: + +jobs: + build_ios: + runs-on: macos-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Preparar, Instalar y Compilar + run: | + # 1. Encontrar el proyecto de analytics + PROYECTO_PATH=$(find ./analytics -name "*.xcodeproj" | head -n 1) + DIRECTORIO=$(dirname "$PROYECTO_PATH") + NOMBRE_TARGET=$(basename "$PROYECTO_PATH" .xcodeproj) + + echo "Trabajando en: $DIRECTORIO" + cd "$DIRECTORIO" + + # 2. Crear Podfile + cat < Podfile + platform :ios, '15.0' + project '$NOMBRE_TARGET.xcodeproj' + use_frameworks! + target '$NOMBRE_TARGET' do + pod 'FirebaseAnalytics' + end + EOF + + # 3. Instalar + pod install + + # 4. Compilar (usando el workspace reciƩn creado) + xcodebuild -workspace "$NOMBRE_TARGET.xcworkspace" \ + -scheme "$NOMBRE_TARGET" \ + -configuration Debug \ + -sdk iphonesimulator \ + -derivedDataPath build \ + -quiet + + - name: Guardar App para Appetize + uses: actions/upload-artifact@v4 + with: + name: app-simulador + path: "**/build/Build/Products/Debug-iphonesimulator/*.app" diff --git a/analytics/GoogleService-Info.plist b/analytics/GoogleService-Info.plist index 55258edfe..624ec666a 100644 --- a/analytics/GoogleService-Info.plist +++ b/analytics/GoogleService-Info.plist @@ -2,39 +2,29 @@ - AD_UNIT_ID_FOR_BANNER_TEST - ca-app-pub-3940256099942544/2934735716 - AD_UNIT_ID_FOR_INTERSTITIAL_TEST - ca-app-pub-3940256099942544/4411468910 API_KEY - AIzaSyAzlj4APqi5S58nFtE52Da0fYBOHA2MhaY - BUNDLE_ID - com.google.firebase.quickstart.AnalyticsExample - CLIENT_ID - 123456789000-hjugbg6ud799v4c49dim8ce2usclthar.apps.googleusercontent.com - DATABASE_URL - https://mockproject-1234.firebaseio.com + AIzaSyDW7nSUCURYKM-fqKSrGN4eS0UZkA1GtpE GCM_SENDER_ID - 123456789000 - GOOGLE_APP_ID - 1:123456789000:ios:f1bf012572b04063 + 672558884827 + PLIST_VERSION + 1 + BUNDLE_ID + com.caro.testdemo + PROJECT_ID + testmobileios-df09c + STORAGE_BUCKET + testmobileios-df09c.firebasestorage.app IS_ADS_ENABLED - + IS_ANALYTICS_ENABLED - + IS_APPINVITE_ENABLED - + IS_GCM_ENABLED - + IS_SIGNIN_ENABLED - - PLIST_VERSION - 1 - PROJECT_ID - mockproject-1234 - REVERSED_CLIENT_ID - com.googleusercontent.apps.123456789000-hjugbg6ud799v4c49dim8ce2usclthar - STORAGE_BUCKET - mockproject-1234.appspot.com + + GOOGLE_APP_ID + 1:672558884827:ios:9dabd5502a0477c3f169fe - + \ No newline at end of file