chore: rename package to @padosoft/react-native-ecr17 #48
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Android build | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| # Not run on every PR push (a full Expo+NDK build is ~15-20 min). Trigger | |
| # manually (gh workflow run "Android build" --ref <branch>) when a native | |
| # change is ready to verify. | |
| concurrency: | |
| group: android-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| android: | |
| if: github.repository == 'padosoft/react-native-ecr17-protocol' | |
| name: Build example (debug) — compiles C++/Kotlin/Nitro | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Setup JDK 17 | |
| uses: actions/setup-java@v5 | |
| with: | |
| distribution: temurin | |
| java-version: "17" | |
| - name: Setup Bun | |
| uses: oven-sh/setup-bun@v2 | |
| - name: Install dependencies (drop tooling-only @padosoft/config) | |
| run: | | |
| jq 'del(.devDependencies["@padosoft/config"])' package.json > package.json.tmp | |
| mv package.json.tmp package.json | |
| rm -f bun.lock | |
| bun install | |
| - name: Nitrogen codegen | |
| working-directory: package | |
| run: bunx nitrogen | |
| - name: Expo prebuild (android) | |
| working-directory: example | |
| run: bunx expo prebuild --platform android --no-install | |
| - name: Setup Android SDK | |
| uses: android-actions/setup-android@v3 | |
| - name: Install NDK & CMake | |
| run: | | |
| sdkmanager "ndk;27.1.12297006" "cmake;3.22.1" | |
| - name: Gradle assembleDebug | |
| working-directory: example/android | |
| run: ./gradlew assembleDebug --no-daemon --stacktrace | |
| - name: Upload debug APK | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ecr17-example-debug-apk | |
| path: example/android/app/build/outputs/apk/debug/*.apk | |
| if-no-files-found: error | |
| retention-days: 14 |