Skip to content

Commit

Permalink
Merge pull request #12 from usefulness/updates
Browse files Browse the repository at this point in the history
  • Loading branch information
mateuszkwiecinski authored Nov 20, 2022
2 parents 8117989 + 4bd06c3 commit 7eb03c8
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/workflows/after_merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,4 +80,9 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
build-root-directory: sample
arguments: check
arguments: assemble check

- uses: actions/upload-artifact@v3
with:
name: apk
path: sample/app/build/outputs/apk/release/*.apk
9 changes: 9 additions & 0 deletions .github/workflows/publish_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,12 @@ jobs:
- run: ./gradlew publishAllPublicationsToMavenCentralRepository

- run: ./gradlew publishAllPublicationsToGithubRepository

- uses: actions/upload-artifact@v3
with:
name: apk
path: sample/app/build/outputs/apk/release/*.apk

- uses: softprops/action-gh-release@v0.1.14
with:
files: sample/app/build/outputs/apk/release/*.apk
9 changes: 7 additions & 2 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
name: lint-results
path: '${{ github.workspace }}/**/build/**/reports/lint-results-*.html'

connected-test:
screenshot-test:
runs-on: macos-latest
strategy:
matrix:
Expand Down Expand Up @@ -133,4 +133,9 @@ jobs:
uses: gradle/gradle-build-action@v2
with:
build-root-directory: sample
arguments: check
arguments: assemble check

- uses: actions/upload-artifact@v3
with:
name: apk
path: sample/app/build/outputs/apk/release/*.apk
4 changes: 4 additions & 0 deletions sample/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,13 @@ android {
buildTypes {
named("debug") {
signingConfig signingConfigs.getByName("debug")
applicationIdSuffix ".debug"
versionNameSuffix "-debug"
}
named("release") {
signingConfig signingConfigs.getByName("debug")
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
minifyEnabled true
}
}

Expand Down
5 changes: 5 additions & 0 deletions sample/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
-keepattributes SourceFile,LineNumberTable

-keepclassmembers class * extends java.lang.Enum {
<fields>;
}

0 comments on commit 7eb03c8

Please sign in to comment.