Bug reports and pull requests from users are what keep this project working.
- Create an issue and describe your idea
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Publish the branch (
git push origin my-new-feature
) - Create a new Pull Request
- In the project's
build.gradle
file comment the stage reference and add maven local:
repositories {
mavenCentral()
google()
gradlePluginPortal()
mavenLocal()
}
- Edit the
android-base-lib.gradle
file inbuildSrc
and removeid("signing"")
inside the plugins:
plugins {
id("com.android.library")
id("io.gitlab.arturbosch.detekt")
kotlin("android")
id("jacoco")
id("maven-publish")
}
- Below the plugins` add the next code:
publishing {
publications {
register<MavenPublication>("release") {
group = getPropertyOrFail("group")
artifactId = properties.get("artifactId").toString()
version = getPropertyOrFail("version")
afterEvaluate {
from(components["release"])
}
}
}
}
-
Below the comment
// Publishing block
remove all the code. -
Go to Android Studio -> Gradle tab and run the
publishToMavenLocal
in themaps-api
,maps-api-googlemaps
andmaps-api-openstreetmap
:
Go to /Users/your_user/.m2
dot folder and you'll find the plugin.
Add some prints to debug the code
Create a sample project, add the plugin and sync the project with gradle and you'll see logs in the Build
tab in Android Studio.
You can verify your code with the following tasks:
./gradlew assemble
./gradlew detekt
Once you have made a change in any of the maps-api
, maps-api-google maps
or maps-api-openstreetmap
modules,
you must publishToMavenLocal
in that module in order to see the changes.
This project has documentation in a few places:
A friendly README.md written for many audiences.
You can find more information in the wiki.
- Clone the repository
- Update the changelog (and commit it afterwards)
- Push the changes and wait for the latest CI build to complete
- Bump the version, create a Git tag and commit the changes
- Push the version bump commit:
git push
- Push the Git tag:
git push --tags
For details on our project's governance model and how decisions are made, please see our Governance Policy.