Skip to content

JCenter Deploy

stefanodp91 edited this page Jul 27, 2018 · 1 revision

SETUP ANDROID STUDIO

  1. open the chat21-android-sdk library

  2. open the file /local.properties

  3. add the following statements

bintray.user=XXXXX
bintray.apikey=XXXXX
bintray.gpg.password=XXXXX
bintray.oss.user=XXXXX
bintray.oss.password=XXXXX

NOTE: DO NOT COMMIT the file local.porperties. This file must be a private file for the developer because is contains sensibles data. If these data are distributes, the library the library can be compromised.

DEPLOY TO JCENTER

  1. open the file /chat21/build.gradle

  2. update the lirbary version number within the function computeVersionName() at the begin of the file NOTE: the version number has been passed as a function as it is used in several points in groovy. DO NOT WRITE THE HARDCODED VERSION NUMBER

  3. update the versionCode

  4. un-comment the following statements at the end of the file

apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'
  1. open the android studio terminal and run the statement
gradle bintrayUpload
  1. just wait for the uploading. Once the upload is complete, check if the sdk has been uploaded logging in to
https://bintray.com/frontiere21/maven/chat21
  1. Comment again the following statements within the file /chat21/build.gradle
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/installv1.gradle'
apply from: 'https://raw.githubusercontent.com/nuuneoi/JCenter/master/bintrayv1.gradle'

NOTE: if these statements are not commented the children app created from chat21-android-sdk will have compile-time exceptions

Clone this wiki locally