Release step can now be done without any user input

This commit is contained in:
Sylvain Berfini 2015-05-04 12:24:04 +02:00
parent 985f9869a4
commit d0fd28803d
5 changed files with 9 additions and 7 deletions

1
.gitignore vendored
View file

@ -37,3 +37,4 @@ submodules/externals/build/openh264/x86
tests/*$py.class tests/*$py.class
tests/build.xml tests/build.xml
tests/project.properties tests/project.properties
ant_password.properties

View file

@ -462,9 +462,6 @@ install-apk:
release: update-project release: update-project
$(ANT) clean $(ANT) clean
echo "What is the version name for the release ?"; \
read version; \
echo "version.name=$$version" > default.properties
patch -p1 < release.patch patch -p1 < release.patch
$(ANT) release $(ANT) release
git checkout HEAD AndroidManifest.xml git checkout HEAD AndroidManifest.xml

9
README
View file

@ -25,9 +25,12 @@ To build liblinphone for Android, you must:
$ make mediastreamer2-sdk $ make mediastreamer2-sdk
7) (Optional) To generate a signed apk to publish on the Google Play, run 7) (Optional) To generate a signed apk to publish on the Google Play, run
$ make release $ make release
It will ask you for the version number that will be displayed in the about page of the app. Make sure you filled the ant.properties values for version.name, key.store and key.alias in order to correctly
Make sure you filled the ant.properties values for key.store and key.alias in order to correctly sign the generated apk.
sign the generated apk (it will ask you the password during the process) You also may want to create a file name ant_password.properties with the following:
key.store.password=[your_password]
key.alias.password=[your_password]
If you don't, the passwords will be asked at the signing phase.
To run the tutorials: To run the tutorials:
-------------------- --------------------

View file

@ -1,3 +1,4 @@
source.dir=src:submodules/linphone/mediastreamer2/java/src:submodules/linphone/java/j2se:submodules/linphone/java/common:submodules/linphone/java/impl:submodules/linphone/coreapi/help/java:submodules/externals/axmlrpc/src/main/java source.dir=src:submodules/linphone/mediastreamer2/java/src:submodules/linphone/java/j2se:submodules/linphone/java/common:submodules/linphone/java/impl:submodules/linphone/coreapi/help/java:submodules/externals/axmlrpc/src/main/java
key.store=bc-android.keystore key.store=bc-android.keystore
key.alias=nw8000 key.alias=nw8000
version.name=2.4.0

View file

@ -27,7 +27,7 @@
--> -->
<property file="ant.properties" /> <property file="ant.properties" />
<property file="default.properties" /> <property file="ant_password.properties" />
<!-- if sdk.dir was not set from one of the property file, then <!-- if sdk.dir was not set from one of the property file, then
get it from the ANDROID_HOME env var. get it from the ANDROID_HOME env var.