Skip to content

Commit

Permalink
Merge pull request #154 from stefan2904/dependency_org-java-1-3-1
Browse files Browse the repository at this point in the history
Change org-java to revived fork, bump to 1.3.1
  • Loading branch information
amberin authored Feb 8, 2024
2 parents 288b229 + 6557397 commit 1591bb6
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/android-build-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
branches:
- 'master'

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
name: Generate APK
Expand All @@ -24,6 +27,8 @@ jobs:

- name: Build APK
run: ./gradlew assembleDebug
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload APK
uses: actions/upload-artifact@v2
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
# Build the standard version binary.
- name: Generate "premium" release APK
run: ./gradlew assemblePremiumRelease --stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Sign APK using key store from repo secrets
uses: r0adkll/sign-android-release@v1
Expand All @@ -56,6 +58,8 @@ jobs:
# Now do the same for the F-Droid flavor.
- name: Generate "fdroid" release APK
run: ./gradlew assembleFdroidRelease --stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Sign APK using key store from repo secrets
uses: r0adkll/sign-android-release@v1
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ jobs:
# Build the standard version binary.
- name: Generate "premium" release APK
run: ./gradlew assemblePremiumRelease --stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Sign APK using key store from repo secrets
uses: r0adkll/sign-android-release@v1
Expand All @@ -57,6 +59,8 @@ jobs:
# Now do the same for the F-Droid flavor.
- name: Generate "fdroid" release APK
run: ./gradlew assembleFdroidRelease --stacktrace
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Sign APK using key store from repo secrets
uses: r0adkll/sign-android-release@v1
Expand Down
4 changes: 2 additions & 2 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ def orgJavaLocation() {
logger.info("app: Using org-java from ${gradle.ext.orgJavaDir}")
return project(':org-java')
} else {
logger.info("app: Using com.orgzly:org-java:$versions.org_java from Maven repository")
return "com.orgzly:org-java:$versions.org_java"
logger.info("app: Using com.orgzlyrevived:org-java:$versions.org_java from Maven repository")
return "com.orgzlyrevived:org-java:$versions.org_java"
}
}
12 changes: 11 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ buildscript {

versions.android_test_uiautomator = '2.2.0'

versions.org_java = '1.3-SNAPSHOT'
versions.org_java = '1.3.1'

versions.loremipsum = '1.0'

Expand Down Expand Up @@ -98,6 +98,16 @@ allprojects {
maven {
url 'https://jitpack.io'
}

// For com.orgzlyrevived.org-java
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/orgzly-revived/org-java")
credentials {
username = project.findProperty("gpr.user") ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") ?: System.getenv("GITHUB_TOKEN")
}
}
}

tasks.withType(JavaCompile) {
Expand Down
7 changes: 7 additions & 0 deletions sample.app.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@ dropbox.app_key = "appkey"
# Same as above, but prefixed with "db-"
dropbox.app_key_schema = "db-appkey"


# Github Package Registry access credentials.
# see https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry
# used to pull the com.orgzlyrevived.org-java dependency from https://github.com/orgzly-revived/org-java
gpr.user = ""
gpr.key = ""

# Use org-java from local directory instead of the Maven repository.
# If you are working on org-java project, this can make development process easier.
# Don't forget to sync project with Gradle files (in Android Studio) if you change this value.
Expand Down

0 comments on commit 1591bb6

Please sign in to comment.