modifyPom(addFilter('aar') { artifact, file ->
artifact.name == 'android-maps-utils'
})
modifyPom(addFilter('apklib') { artifact, file ->
artifact.name == 'android-maps-utils-apklib'
})
// There's no official apklib for Google Play services, so we
// can't really maintain that dependency for the apklib packaging.
pom('apklib').whenConfigured { pom ->
pom.dependencies = []
}
}
}
}
def modifyPom(pom) {
pom.project {
name 'Google Maps Android API utility library'
description 'Handy extensions to the Google Maps Android API.'
url 'https://github.com/googlemaps/android-maps-utils'
scm {
url 'scm:git@github.com:googlemaps/android-maps-utils.git'
connection 'scm:git@github.com:googlemaps/android-maps-utils.git'
developerConnection 'scm:git@github.com:googlemaps/android-maps-utils.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
organization {
name 'Google Inc'
url 'http://developers.google.com/maps'
}
developers {
developer {
id 'broady'
name 'Chris Broadfoot'
url 'http://google.com/+ChristopherBroadfoot'
}
}
}
`buildscript { repositories { maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'io.fabric.tools:gradle:1.+' } }
apply plugin: 'com.android.application' apply plugin: 'io.fabric' repositories { maven { url 'https://maven.fabric.io/public' } } android { compileSdkVersion 29 buildToolsVersion '29.0.1' defaultConfig { applicationId "xxxx.xxxxx.xxxx" minSdkVersion 21 targetSdkVersion 29 versionCode 2014 versionName "2020.7.6" multiDexEnabled true proguardFiles getDefaultProguardFile('proguard-android.txt') testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner" ndk { abiFilters "armeabi" }
} repositories { mavenCentral() mavenLocal() jcenter()
} dependencies { testImplementation 'junit:junit:4.12' implementation fileTree(include: ['*.jar'], dir: 'libs') implementation project(':library') implementation files('libs/aws-android-sdk-core-2.4.7.jar')
} `
`// Top-level build file where you can add configuration options common to all sub-projects/modules.
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript { repositories { google() jcenter() maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'com.android.tools.build:gradle:3.5.1' classpath 'com.google.gms:google-services:4.2.0' classpath 'io.fabric.tools:gradle:1.31.2' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } }
allprojects { repositories { google() jcenter() mavenLocal()
} task clean(type: Delete) { delete rootProject.buildDir }`
`buildscript { repositories { jcenter() maven { url 'https://maven.google.com/' name 'Google' } } dependencies { classpath 'com.android.tools.build:gradle:3.5.1' classpath 'com.google.gms:google-services:4.2.0'
}
apply plugin: 'com.android.library' apply plugin: 'maven' apply plugin: 'signing'
archivesBaseName = 'android-maps-utils' group = 'com.google.maps.android'
dependencies {
}
android { compileSdkVersion 29
}
task instrumentTest(dependsOn: connectedCheck)
task apklib(type: Zip) { dependsOn 'packageReleaseJar' appendix = extension = 'apklib'
}
artifacts { archives apklib }
signing { sign configurations.archives }
uploadArchives { repositories { mavenDeployer { beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
// authentication(userName: sonatypeUsername, password: sonatypePassword) } snapshotRepository(url: 'https://oss.sonatype.org/content/repositories/snapshots/') { // authentication(userName: sonatypeUsername, password: sonatypePassword) }
}
def modifyPom(pom) { pom.project { name 'Google Maps Android API utility library' description 'Handy extensions to the Google Maps Android API.' url 'https://github.com/googlemaps/android-maps-utils'
} `