Fix OsmAnd lib script
This commit is contained in:
parent
e46ddf2a4f
commit
35ad469f54
1 changed files with 42 additions and 61 deletions
|
@ -1,4 +1,5 @@
|
||||||
apply plugin: 'com.android.library'
|
apply plugin: 'com.android.library'
|
||||||
|
apply plugin: 'ivy-publish'
|
||||||
|
|
||||||
task printc {
|
task printc {
|
||||||
configurations.each { if(it.isCanBeResolved()) println it.name }
|
configurations.each { if(it.isCanBeResolved()) println it.name }
|
||||||
|
@ -338,67 +339,47 @@ task appStart(type: Exec) {
|
||||||
// commandLine 'cmd', '/c', 'adb', 'shell', 'am', 'start', '-n', 'net.osmand.plus/net.osmand.plus.activities.MapActivity'
|
// commandLine 'cmd', '/c', 'adb', 'shell', 'am', 'start', '-n', 'net.osmand.plus/net.osmand.plus.activities.MapActivity'
|
||||||
}
|
}
|
||||||
|
|
||||||
artifacts {
|
project.afterEvaluate {
|
||||||
archives(file("$buildDir/outputs/aar/OsmAnd-legacy-x86-debug.aar")) {
|
publishing {
|
||||||
classifier 'legacyX86Debug'
|
repositories {
|
||||||
name 'OsmAnd'
|
ivy {
|
||||||
extension 'aar'
|
url = System.getenv("OSMAND_BINARIES_IVY_ROOT") ?: "./"
|
||||||
}
|
}
|
||||||
archives(file("$buildDir/outputs/aar/OsmAnd-legacy-x86-release.aar")) {
|
}
|
||||||
classifier 'legacyX86Release'
|
publications {
|
||||||
name 'OsmAnd'
|
aar(IvyPublication) {
|
||||||
extension 'aar'
|
artifact bundleLegacyX86DebugAar {
|
||||||
}
|
classifier 'legacyX86Debug'
|
||||||
archives(file("$buildDir/outputs/aar/OsmAnd-legacy-arm64-debug.aar")) {
|
}
|
||||||
classifier 'legacyArm64Debug'
|
artifact bundleLegacyX86ReleaseAar {
|
||||||
name 'OsmAnd'
|
classifier 'legacyX86Release'
|
||||||
extension 'aar'
|
}
|
||||||
}
|
artifact bundleLegacyArm64DebugAar {
|
||||||
archives(file("$buildDir/outputs/aar/OsmAnd-legacy-arm64-release.aar")) {
|
classifier 'legacyArm64Debug'
|
||||||
classifier 'legacyArm64Release'
|
}
|
||||||
name 'OsmAnd'
|
artifact bundleLegacyArm64ReleaseAar {
|
||||||
extension 'aar'
|
classifier 'legacyArm64Release'
|
||||||
}
|
}
|
||||||
archives(file("$buildDir/outputs/aar/OsmAnd-legacy-armonly-debug.aar")) {
|
artifact bundleLegacyArmonlyDebugAar {
|
||||||
classifier 'legacyArmonlyDebug'
|
classifier 'legacyArmonlyDebug'
|
||||||
name 'OsmAnd'
|
}
|
||||||
extension 'aar'
|
artifact bundleLegacyArmonlyReleaseAar {
|
||||||
}
|
classifier 'legacyArmonlyRelease'
|
||||||
archives(file("$buildDir/outputs/aar/OsmAnd-legacy-armonly-release.aar")) {
|
}
|
||||||
classifier 'legacyArmonlyRelease'
|
artifact bundleLegacyArmv7DebugAar {
|
||||||
name 'OsmAnd'
|
classifier 'legacyArmv7Debug'
|
||||||
extension 'aar'
|
}
|
||||||
}
|
artifact bundleLegacyArmv7ReleaseAar {
|
||||||
archives(file("$buildDir/outputs/aar/OsmAnd-legacy-armv7-debug.aar")) {
|
classifier 'legacyArmv7Release'
|
||||||
classifier 'legacyArmv7Debug'
|
}
|
||||||
name 'OsmAnd'
|
artifact bundleLegacyFatDebugAar {
|
||||||
extension 'aar'
|
classifier 'legacyFatDebug'
|
||||||
}
|
}
|
||||||
archives(file("$buildDir/outputs/aar/OsmAnd-legacy-armv7-release.aar")) {
|
artifact bundleLegacyFatReleaseAar {
|
||||||
classifier 'legacyArmv7Release'
|
classifier 'legacyFatRelease'
|
||||||
name 'OsmAnd'
|
}
|
||||||
extension 'aar'
|
}
|
||||||
}
|
}
|
||||||
archives(file("$buildDir/outputs/aar/OsmAnd-legacy-fat-debug.aar")) {
|
|
||||||
classifier 'legacyFatDebug'
|
|
||||||
name 'OsmAnd'
|
|
||||||
extension 'aar'
|
|
||||||
}
|
|
||||||
archives(file("$buildDir/outputs/aar/OsmAnd-legacy-fat-release.aar")) {
|
|
||||||
classifier 'legacyFatRelease'
|
|
||||||
name 'OsmAnd'
|
|
||||||
extension 'aar'
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
uploadArchives {
|
|
||||||
repositories.ivy {
|
|
||||||
// credentials {
|
|
||||||
// username ""
|
|
||||||
// password ""
|
|
||||||
// }
|
|
||||||
|
|
||||||
url = System.getenv("OSMAND_BINARIES_IVY_ROOT") ?: "./"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue