diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index eb1ef611..94807b0f 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1,2 +1,2 @@ +custom: ["https://litecoinspace.org/address/ltc1q05w9amjznfytcuw8ve7d7dy2ec3y762ps55u35", "https://www.paypal.me/syslogic"] github: ["syslogic"] -custom: ["https://www.paypal.me/syslogic"] diff --git a/.github/workflows/android-ci.yml b/.github/workflows/android-ci.yml new file mode 100644 index 00000000..f298ae7a --- /dev/null +++ b/.github/workflows/android-ci.yml @@ -0,0 +1,91 @@ +name: Android CI + +on: + workflow_dispatch: + push: + # branches: [ master ] + paths-ignore: + - '**/README.md' + - 'screenshots/**' + - '.gitignore' + - '.idea/**' + - '.run/**' + tags: + - "[0-9]+.[0-9]+.[0-9]+" + +jobs: + build: + name: πŸŽ‰ Build Android Library + runs-on: ubuntu-latest + permissions: + contents: read + packages: write + steps: + + # https://github.com/actions/checkout + - name: 🚚 Get latest code + uses: actions/checkout@v4 + with: + # Mandatory to get the extract version from tag. + fetch-depth: 0 + + # https://github.com/actions/setup-java + - name: β˜• Set up JDK + uses: actions/setup-java@v4 + with: + architecture: x64 + distribution: corretto + java-version: '17' + + # https://github.com/gradle/actions/blob/main/docs/setup-gradle.md + - name: 🐘 Setup Gradle + uses: gradle/actions/setup-gradle@v4 + with: + cache-encryption-key: ${{ SECRETS.GRADLE_ENCRYPTION_KEY }} + cache-cleanup: always + + - name: 🐘 Publish AAR to GPR + env: + GITHUB_ACTOR: ${{ GITHUB.REPOSITORY_OWNER }} + GITHUB_TOKEN: ${{ SECRETS.GITHUB_TOKEN }} + run: | + chmod +x ./gradlew + export VERSION=$(git for-each-ref refs/tags --sort=-refname --format='%(refname:short)' --count=1) + ./gradlew --max-workers=2 :androidx-github:lint :androidx-github:publishLibraryPublicationToGitHubPackagesRepository + ls -la ./library/build/outputs/aar | grep aar + + # https://github.com/actions/upload-artifact + - name: πŸ“¦ Retain Artifacts (AAR) + id: retain-library-aar + uses: actions/upload-artifact@v4 + with: + name: androidx-github + path: ./library/build/outputs/aar/*.aar + 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/* + retention-days: 14 + +# - name: 🐘 Publish JAR to GPR +# env: +# GITHUB_ACTOR: ${{ GITHUB.REPOSITORY_OWNER }} +# GITHUB_TOKEN: ${{ SECRETS.GITHUB_TOKEN }} +# run: | +# # PUT -> HTTP 403 +# # ./gradlew --max-workers=2 :buildSrc:publishPluginPublicationToGitHubPackagesRepository +# ./gradlew --max-workers=2 :buildSrc:build +# ls -la ./buildSrc/build/libs | grep jar + +# - name: πŸ“¦ Retain Artifacts (JAR) +# id: retain-library-jar +# uses: actions/upload-artifact@v4 +# with: +# name: gpr-maintenance-gradle-plugin +# path: ./buildSrc/build/libs/*.jar +# 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..e49170b7 100644 --- a/.idea/.gitignore +++ b/.idea/.gitignore @@ -10,3 +10,10 @@ /markdown-navigator-enh.xml /markdown-navigator.xml /dynamic.xml +/appInsightsSettings.xml +/migrations.xml +/deploymentTargetSelector.xml +/other.xml +/deviceManager.xml +/runConfigurations.xml +/vcs.xml diff --git a/.idea/dictionaries/.gitignore b/.idea/dictionaries/.gitignore index 0b520790..a66342f0 100644 --- a/.idea/dictionaries/.gitignore +++ b/.idea/dictionaries/.gitignore @@ -1 +1,2 @@ /martin.xml +/project.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 @@ - +