fix import according to new package name #109
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: Main | |
| on: | |
| workflow_dispatch: | |
| push: | |
| tags: | |
| - "v*.*.*" | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| # Fast, unsigned validation build for PRs and ordinary pushes to main. | |
| # Skipped on tag pushes, where the full signed release build below runs instead. | |
| validate: | |
| if: ${{ !startsWith(github.ref, 'refs/tags/') }} | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 20 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@b5c8a0dca2731e85b6e85238a73680f5151738e9 # v4.3.1 | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Create dummy local.properties | |
| run: echo "sdk.dir=some_location" > ./local.properties | |
| - name: Compile & assemble debug variants (Android, Desktop, Web) | |
| run: ./gradlew androidApp:assembleDebug desktopApp:compileKotlin webApp:compileKotlinJs webApp:compileKotlinWasmJs | |
| # Full signed release build: Android APK, Linux Deb, Web (WASM + JS). Tag pushes only. | |
| build_android_linux_web: | |
| if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
| permissions: | |
| contents: write | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@b5c8a0dca2731e85b6e85238a73680f5151738e9 # v4.3.1 | |
| - name: Grant execute permission for gradlew | |
| run: chmod +x gradlew | |
| - name: Create Key.properties File | |
| run: | | |
| echo "storePassword=${{ secrets.STORE_PASSWORD }}" > ./key.properties | |
| echo "keyPassword=${{ secrets.KEY_PASSWORD }}" >> ./key.properties | |
| echo "alias=${{ secrets.KEY_ALIAS }}" >> ./key.properties | |
| echo "path=${{ runner.temp }}/key.jks" >> ./key.properties | |
| - name: Create Local.properties File | |
| run: | | |
| echo "MAPS_API_KEY=${{ secrets.MAP_API_KEY }}" >> ./local.properties | |
| - name: Create Android keystore File | |
| run: | | |
| echo -n "${{ secrets.ANDROID_KEYSTORE }}" | base64 -d > "$RUNNER_TEMP/key.jks" | |
| - name: Build release artifacts (APK, Deb, WASM, JS) | |
| run: ./gradlew androidApp:assembleRelease desktopApp:packageDeb webApp:wasmJsBrowserDistribution webApp:jsBrowserDistribution | |
| - name: Generate release zip assets | |
| env: | |
| VERSION: ${{ github.ref_name }} | |
| run: | | |
| JS_ZIP="com.shreyashkore.wonderouscompose_${VERSION}-JS.zip" | |
| WASM_ZIP="com.shreyashkore.wonderouscompose_${VERSION}-WASM.zip" | |
| (cd ./webApp/build/dist && zip -r "$JS_ZIP" js) | |
| (cd ./webApp/build/dist && zip -r "$WASM_ZIP" wasmJs) | |
| - name: Release | |
| uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| files: | | |
| ./androidApp/build/outputs/apk/release/androidApp-release.apk | |
| ./desktopApp/build/compose/binaries/main/deb/*.deb | |
| ./webApp/build/dist/*.zip | |
| - name: Deploy Wasm | |
| uses: JamesIves/github-pages-deploy-action@0f24da7de3e7e135102609a4c9633b025be8411b # v4.1.5 | |
| with: | |
| token: ${{ secrets.TOKEN }} | |
| branch: main | |
| folder: webApp/build/dist/wasmJs/productionExecutable | |
| repository-name: ShreyashKore/wonderous-compose-wasm | |
| - name: Deploy JS | |
| uses: JamesIves/github-pages-deploy-action@0f24da7de3e7e135102609a4c9633b025be8411b # v4.1.5 | |
| with: | |
| token: ${{ secrets.TOKEN }} | |
| branch: main | |
| folder: webApp/build/dist/js/productionExecutable | |
| repository-name: ShreyashKore/wonderous-compose-js | |
| # Windows MSI package. Tag pushes only — windows runners bill at a 2x minute multiplier, | |
| # so this is skipped entirely for PR/push validation. | |
| build_windows: | |
| if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
| permissions: | |
| contents: write | |
| runs-on: windows-latest | |
| timeout-minutes: 30 | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
| - name: Set up JDK 17 | |
| uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4.5.0 | |
| with: | |
| java-version: '17' | |
| distribution: 'temurin' | |
| - name: Set up Gradle | |
| uses: gradle/actions/setup-gradle@b5c8a0dca2731e85b6e85238a73680f5151738e9 # v4.3.1 | |
| - name: Grant execute permission for gradlew | |
| run: | | |
| chmod +x gradlew | |
| - name: Create dummy local.properties | |
| run: echo "sdk.dir=some_location" > ./local.properties | |
| - name: Build MSI | |
| run: | | |
| ./gradlew desktopApp:packageMsi | |
| - name: Upload Release Asset | |
| uses: softprops/action-gh-release@c062e08bd532815e2082a85e87e3ef29c3e6d191 # v2.0.8 | |
| with: | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| files: | | |
| ./desktopApp/build/compose/binaries/main/msi/*.msi | |
| # build_ios: | |
| # runs-on: macos-latest | |
| # | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - name: set up JDK 17 | |
| # uses: actions/setup-java@v3 | |
| # with: | |
| # java-version: '17' | |
| # distribution: 'temurin' | |
| # cache: gradle | |
| # | |
| # - name: Grant execute permission for gradlew | |
| # run: chmod +x gradlew | |
| # - name: "Setup Gradle" | |
| # uses: gradle/gradle-build-action@v2 | |
| # - name: "Build xcworkspace" | |
| # run: ./gradlew podInstall |