-
Notifications
You must be signed in to change notification settings - Fork 94
JCenter Deploy
-
open the chat21-android-sdk library
-
open the file /local.properties
-
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.
-
open the file /chat21/build.gradle
-
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
-
update the versionCode
-
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'
- open the android studio terminal and run the statement
gradle bintrayUpload
- 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
- 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