Delete app/src/main/res/layout/activity_login.xml #431
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 (Gradle 9.2.1) | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # GITHUB_TOKENにリリース作成権限を付与 | |
| steps: | |
| # 1. リポジトリチェックアウト + Gradle キャッシュ | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Clear Gradle cache | |
| run: rm -rf ~/.gradle/caches && rm -rf .gradle && rm -rf build | |
| # 2. JDK 17 セットアップ | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@v4 | |
| with: | |
| distribution: temurin | |
| java-version: 17 | |
| # 4. バージョン文字列とコード生成(ビルド番号+日付時刻 JST) | |
| - name: Generate version info | |
| id: version | |
| run: | | |
| BUILD=${{ github.run_number }} | |
| DATE=$(TZ=Asia/Tokyo date +'%Y.%m%d.%H%M%S') | |
| VERSION_NAME="${BUILD}.${DATE}" | |
| VERSION_CODE=$BUILD | |
| echo "VERSION_NAME=$VERSION_NAME" >> $GITHUB_ENV | |
| echo "VERSION_CODE=$VERSION_CODE" >> $GITHUB_ENV | |
| echo "Version name: $VERSION_NAME" | |
| echo "Version code: $VERSION_CODE" | |
| - name: Gradlewアクセス許可 | |
| run: chmod +x gradlew && chmod +x ./gradlew | |
| # 6. Build Release APK | |
| - name: Build Release APK | |
| run: ./gradlew clean assembleRelease --refresh-dependencies -PversionName=${{ env.VERSION_NAME }} -PversionCode=${{ env.VERSION_CODE }} | |
| - name: Set up Android SDK Build Tools | |
| uses: android-actions/setup-android@v2 | |
| with: | |
| api-level: 33 | |
| build-tools: 33.0.2 | |
| license-accept: true | |
| - name: Install build-tools 33.0.2 | |
| run: | | |
| sdkmanager --install "build-tools;33.0.2" | |
| # 8. Keystore 復元 | |
| - name: Restore keystore | |
| run: | | |
| echo "${{ secrets.KEYSTORE_BASE64 }}" | base64 -d > my-release-key.jks | |
| # 9. APK 署名 | |
| - name: Sign APK | |
| run: | | |
| APK_UNSIGN=app/build/outputs/apk/release/app-release-unsigned.apk | |
| APK_SIGNED=output/JavaSkinChanger-latest.apk | |
| mkdir -p output | |
| yes | $ANDROID_HOME/build-tools/33.0.2/apksigner sign \ | |
| --ks my-release-key.jks \ | |
| --ks-pass pass:${{ secrets.KEYSTORE_PASSWORD }} \ | |
| --key-pass pass:${{ secrets.KEY_ALIAS_PASSWORD }} \ | |
| --out $APK_SIGNED \ | |
| $APK_UNSIGN | |
| - name: Release | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| tag: BETA | |
| name: JavaSkinChanger Release - ${{ env.VERSION_NAME }} | |
| artifacts: output/JavaSkinChanger-latest.apk | |
| allowUpdates: true | |
| replacesArtifacts: true | |
| prerelease: true | |
| - name: archive | |
| uses: ncipollo/release-action@v1 | |
| with: | |
| tag: v-${{ env.VERSION_CODE }} | |
| name: JavaSkinChanger Archive - ${{ env.VERSION_NAME }} | |
| artifacts: output/JavaSkinChanger-latest.apk | |
| allowUpdates: true | |
| prerelease: true | |
| - name: Upload APK artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: JSC-APKZIP | |
| path: output/JavaSkinChanger-latest.apk | |
| - name: List all native libs | |
| run: unzip -l output/JavaSkinChanger-latest.apk | grep "\.so" || true && unzip -l output/JavaSkinChanger-latest.apk | grep gdx || true && unzip -l output/JavaSkinChanger-latest.apk | grep libgdx.so || true | |