Skip to content

Latest commit

 

History

History
41 lines (32 loc) · 2.55 KB

RELEASING.md

File metadata and controls

41 lines (32 loc) · 2.55 KB

Releasing

  1. Choose a version number per Semantic Versioning. Let's call it x.y.z.
  2. Create a release ticket with release highlights and release steps
- [ ] Update HTTP User Agent Version in MapboxConstants.java
- [ ] Update VERSION_NAME to `x.y.z` in [/MapboxAndroidSDK/gradle.properties](https://github.com/mapbox/mapbox-android-sdk/blob/mb-pages/MapboxAndroidSDK/gradle.properties)
- [ ] Publish `x.y.z` artifact to Central Repository
- [ ] Update [README](https://github.com/mapbox/mapbox-android-sdk/blob/mb-pages/README.md) to list current and snapshot build numbers
- [ ] Update Mapbox.com Documentation (requires `x.y.z` to be found on http://search.maven.org - usually a few hours after release)
- [ ] Tag `x.y.z` in GitHub
- [ ] Update VERSION_NAME to `x.y+1.z-SNAPSHOT` in [/MapboxAndroidSDK/gradle.properties](https://github.com/mapbox/mapbox-android-sdk/blob/mb-pages/MapboxAndroidSDK/gradle.properties)
- [ ] Update Demo Project to use new `x.y.z` artifact from Central Repository
- [ ] Push new updated Demo App to Google Play
- [ ] Move non completed issues from `x.y.z` to `x.y+1.z` milestone
- [ ] Close Milestone `x.y.z` in GitHub

Publishing To Central Repository

  1. Add Nexus Repository and Signing Credentials To /MapboxAndroidSDK/gradle.properties (DO NOT COMMIT)

  2. In Terminal

     cd MapboxAndroidSDK
     ./deploy.sh
    
  3. Follow instructions to Close Staging Repository and Release To Central Repository

  4. Remove Nexus Repository and Signing Credentials From /MapboxAndroidSDK/gradle.properties

Updating Mapbox.com Documentation

  1. Follow instructions in /docs/README.md

Releasing New Demo App On Google Play

  1. Update Mapbox Android SDK dependency, Version Code, and Version Name in /MapBoxAndroidDemo/build.gradle
  2. Build .apk with ./gradlew clean assembleRelease from command line
  3. Sign MapBoxAndroidDemo/build/outputs/apk/MapBoxAndroidDemo-release-unsigned.apk with same signing credentials used in Publishing To Central Repository See Android documentation on doing this with Android Studio or Manually
  4. Use zipalign to align the APK
  5. Upload to Google Play. See @bleege or @tmcw for access.