Skip to content

Commit

Permalink
Slight build simplification (#49)
Browse files Browse the repository at this point in the history
* see if we can get a blind build to work in jitpack.io

* simplify the build wrt local.properties
  • Loading branch information
jkwatson authored Jun 23, 2021
1 parent 68d2949 commit 1ec156c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ jobs:
java-version: 11

- name: Build and test
run: echo rum.beacon.url=http://backend > ./local.properties; echo rum.auth.token=abc123 >> ./local.properties; ./gradlew build --no-daemon
run: touch ./local.properties; ./gradlew build --no-daemon
9 changes: 3 additions & 6 deletions sample-app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,12 @@ android {
}

buildTypes {
debug {
resValue("string", "rum_beacon_url", localProperties['rum.beacon.url'])
resValue("string", "rum_auth_token", localProperties['rum.auth.token'])
all {
resValue("string", "rum_beacon_url", localProperties['rum.beacon.url'] ?: "http://backend")
resValue("string", "rum_auth_token", localProperties['rum.auth.token'] ?: "dummyAuthToken")
}

release {
//TODO: is there a better way to put values in for these so the build doesn't fail?
resValue("string", "rum_beacon_url", "http://backend")
resValue("string", "rum_auth_token", "dummyAuthToken")
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
Expand Down

0 comments on commit 1ec156c

Please sign in to comment.