diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml new file mode 100644 index 00000000..dc6a5773 --- /dev/null +++ b/.github/workflows/android-ci.yml @@ -0,0 +1,76 @@ +name: Android CI + +on: + push: + branches: [ master ] + paths-ignore: + - '**/README.md' + - 'screenshots/**' + - '.gitignore' + - '.idea/**' + - '.run/**' + pull_request: + branches: [ master ] + paths-ignore: + - '**/README.md' + - 'screenshots/**' + - '.gitignore' + - '.idea/**' + - '.run/**' + +jobs: + build: + name: 🎉 Build + runs-on: ubuntu-latest + steps: + + # https://github.com/actions/checkout + - name: 🚚 Get latest code + uses: actions/checkout@v4 + + # https://github.com/actions/setup-java + - name: ☕ Set up AWS Corretto JDK 17 + uses: actions/setup-java@v4 + with: + distribution: corretto + java-version: '17' + architecture: x64 + + # Run Gradle tasks + - name: Build module :library + run: ./gradlew :library:lint :library:assembleRelease + + # Run Gradle tasks + - name: Build module :mobile + run: ./gradlew :mobile:lint :mobile:bundleDebug + + # https://github.com/actions/upload-artifact + - name: 📦 Retain Artifacts (Release AAR) + id: retain-library-aar + uses: actions/upload-artifact@v4 + with: + name: androidx-github-lib + path: ./library/build/outputs/aar/*.aar + retention-days: 14 + + # https://github.com/actions/upload-artifact + - name: 📦 Retain Artifacts (AAB) + id: retain-app-debug-aab + uses: actions/upload-artifact@v4 + with: + name: androidx-github + path: | + ./mobile/build/outputs/bundle/release/*.aab + ./mobile/build/outputs/bundle/debug/*.aab + retention-days: 14 + + # https://github.com/actions/upload-artifact + - name: 📦 Retain Artifacts (Lint Results) + id: retain-lint-results + uses: actions/upload-artifact@v4 + with: + name: androidx-github-lint + path: | + ./library/build/reports/* + ./mobile/build/reports/* + retention-days: 14 diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml deleted file mode 100644 index 515ace8a..00000000 --- a/.github/workflows/android.yml +++ /dev/null @@ -1,43 +0,0 @@ -name: Android CI - -on: - push: - branches: [ master ] - - pull_request: - branches: [ master ] - -jobs: - build: - name: 🎉 Build - runs-on: ubuntu-latest - steps: - - - name: 🚚 Get latest code - uses: actions/checkout@v3 - - - name: ☕ Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - cache: gradle - - - name: Build with Gradle - run: ./gradlew :mobile:bundleDebug - - - name: 📦 Retain Artifacts (Lint Results) - id: retain-lint-results - uses: actions/upload-artifact@v3 - with: - name: androidx-github - path: ./mobile/build/reports/* - retention-days: 14 - - - name: 📦 Retain Artifacts (Debug AAB) - id: retain-debug-aab - uses: actions/upload-artifact@v3 - with: - name: androidx-github - path: ./mobile/build/outputs/bundle/debug/*.aab - retention-days: 14 diff --git a/.gitignore b/.gitignore index ef699cc2..e1c4ed2b 100644 --- a/.gitignore +++ b/.gitignore @@ -9,4 +9,6 @@ /.idea/workspace.xml /build /captures -/schema/ +/results +/schema +/.idea/AndroidProjectSystem.xml diff --git a/.idea/.gitignore b/.idea/.gitignore index 4aaf0944..d14140d0 100644 --- a/.idea/.gitignore +++ b/.idea/.gitignore @@ -10,3 +10,9 @@ /markdown-navigator-enh.xml /markdown-navigator.xml /dynamic.xml +/appInsightsSettings.xml +/migrations.xml +/deploymentTargetSelector.xml +/other.xml +/deviceManager.xml +/runConfigurations.xml diff --git a/.idea/runConfigurations/androidx_github_library__javadoc_.xml b/.idea/runConfigurations/androidx_github_library__javadoc_.xml new file mode 100644 index 00000000..54bfca52 --- /dev/null +++ b/.idea/runConfigurations/androidx_github_library__javadoc_.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/androidx_github_library__lint_.xml b/.idea/runConfigurations/androidx_github_library__lint_.xml new file mode 100644 index 00000000..a07fce2c --- /dev/null +++ b/.idea/runConfigurations/androidx_github_library__lint_.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/androidx_github_mobile__lint_.xml b/.idea/runConfigurations/androidx_github_mobile__lint_.xml new file mode 100644 index 00000000..b9f1087e --- /dev/null +++ b/.idea/runConfigurations/androidx_github_mobile__lint_.xml @@ -0,0 +1,23 @@ + + + + + + + true + true + false + + + \ No newline at end of file diff --git a/.idea/runConfigurations/github___query_strings.xml b/.idea/runConfigurations/github___bookmarks.xml similarity index 80% rename from .idea/runConfigurations/github___query_strings.xml rename to .idea/runConfigurations/github___bookmarks.xml index b8e4155e..f2a39496 100644 --- a/.idea/runConfigurations/github___query_strings.xml +++ b/.idea/runConfigurations/github___bookmarks.xml @@ -1,5 +1,5 @@ - +