mirror of
https://github.com/sudoxnym/fdroiddata.git
synced 2026-04-14 11:36:37 +00:00
element: v1.1.3
This needed refactoring in how the piasy BigImageViewer lib is handled
as newer versions of that bumped their AGP. We can now use the native
support through maven-publish-plugin and just need to override some of
the publishing variables.
The non-minified version looks like this:
```
apply plugin: 'maven-publish'
afterEvaluate {
publishing {
publications {
release(MavenPublication) {
from components.release
groupId = 'com.github.piasy'
version = releaseVersionName
}
}
}
}
```
See also: https://developer.android.com/studio/build/maven-publish-plugin
This commit is contained in:
parent
fda44c933d
commit
44ce3ca5de
2 changed files with 20 additions and 1 deletions
|
|
@ -331,6 +331,25 @@ Builds:
|
|||
- build.gradle
|
||||
ndk: r21d
|
||||
|
||||
- versionName: 1.1.3
|
||||
versionCode: 40101030
|
||||
commit: v1.1.3
|
||||
subdir: vector
|
||||
gradle:
|
||||
- fdroid
|
||||
srclibs:
|
||||
- piasy@v1.7.1
|
||||
prebuild:
|
||||
- tac ../build.gradle | awk '/dl.bintray.com\/piasy\/maven/{getline;$0="mavenLocal
|
||||
{"}{print $0}' | tac > ../build.gradle.new
|
||||
- mv ../build.gradle.new ../build.gradle
|
||||
- sed -i -e '/com.google.firebase/,+5d' build.gradle
|
||||
- sed -i -e '/com.google.gms.google-services/d' build.gradle
|
||||
- sed -i -e 's/enable true/enable false/g' build.gradle
|
||||
scanignore:
|
||||
- build.gradle
|
||||
ndk: r21d
|
||||
|
||||
MaintainerNotes: |-
|
||||
Uses piasy/BigImageViewer which gets build and installed to a local maven repo in srclib prepare step.
|
||||
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@ Repo: https://github.com/Piasy/BigImageViewer.git
|
|||
# The prepare step adds a gradle plugin which allows installing the libraries to a local maven repo ~/.m2
|
||||
# It also installs it.
|
||||
Prepare: |
|
||||
sed -i -e '/kotlin-gradle-plugin/a classpath "digital.wup:android-maven-publish:3.6.2"' -e '\|http://dl.bintray.com/piasy/maven|d' build.gradle && sed -i -e '/com.github.dcendents.android-maven/i apply plugin: "digital.wup.android-maven-publish"' -e '/version = rootProject.ext.releaseVersionName/a publishing {publications {mavenAar(MavenPublication) {from components.android}}}' gradle/bintray.gradle && gradle publishToMavenLocal
|
||||
sed -i -e '\|http://dl.bintray.com/piasy/maven|d' build.gradle && echo -e "apply plugin: 'maven-publish'\nafterEvaluate { publishing { publications { release(MavenPublication) { from components.release\ngroupId = 'com.github.piasy'\nversion = releaseVersionName}}}}" > gradle/bintray.gradle && gradle publishToMavenLocal
|
||||
|
|
|
|||
Loading…
Reference in a new issue