Skip to content

Commit

Permalink
- stable-ids read from project dir now, not from the root
Browse files Browse the repository at this point in the history
  • Loading branch information
maxmpz committed Feb 3, 2022
1 parent 6dc1b1c commit 2fe1325
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions poweramp_skin_sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,14 @@ android {
localProps.load(rootProject.file("local.properties").newDataInputStream())
def paResources = localProps['poweramp.apk'] ?: "Poweramp-build-918-resources.zip"

additionalParameters "--emit-ids", "stable-ids.txt",
additionalParameters "--emit-ids", "${projectDir}/stable-ids.txt",
"--package-id", "0x80",
"-I", "${projectDir}/../${paResources}"
if(rootProject.file("stable-ids.txt").exists()) {
additionalParameters "--stable-ids", "stable-ids.txt"
if(project.file("stable-ids.txt").exists()) {
print "Got stable-ids OK"
additionalParameters "--stable-ids", "${projectDir}/stable-ids.txt"
} else {
print "WARNING: no stable-ids.txt specified"
}
}
compileOptions {
Expand All @@ -41,5 +44,5 @@ android {
}

dependencies {
implementation "androidx.appcompat:appcompat-resources:1.4.0"
implementation "androidx.appcompat:appcompat-resources:1.4.1"
}

0 comments on commit 2fe1325

Please sign in to comment.