diff --git a/AndroidManifest.xml b/AndroidManifest.xml index b93c9af15..9b674c0b0 100644 --- a/AndroidManifest.xml +++ b/AndroidManifest.xml @@ -1,7 +1,7 @@ + android:versionCode="2003" android:installLocation="auto"> diff --git a/Makefile b/Makefile index efd35a7ea..48c0055f4 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,7 @@ NUMCPUS=$(shell grep -c '^processor' /proc/cpuinfo || echo "4" ) TOPDIR=$(shell pwd) PATCH_FFMPEG=$(shell cd submodules/externals/ffmpeg && git status | grep neon) LINPHONE_VERSION=$(shell cd submodules/linphone && git describe) +LINPHONE_ANDROID_DEBUG_VERSION=$(shell git describe) ANDROID_MOST_RECENT_TARGET=$(shell android list target -c | grep android | tail -n1) BUILD_X264=0 @@ -90,10 +91,10 @@ generate-libs: update-project: $(SDK_PATH)/android update project --path . --target $(ANDROID_MOST_RECENT_TARGET) - touch default.properties generate-apk: ant partial-clean + echo "version.name=$(LINPHONE_ANDROID_DEBUG_VERSION)" > default.properties ant debug install-apk: @@ -101,6 +102,9 @@ install-apk: release: update-project ant clean + echo "What is the version name for the release ?"; \ + read version; \ + echo "version.name=$$version" > default.properties ant release run-linphone: diff --git a/custom_rules.xml b/custom_rules.xml index a9b967225..89a640980 100644 --- a/custom_rules.xml +++ b/custom_rules.xml @@ -62,7 +62,7 @@ - + @@ -71,6 +71,8 @@ + + diff --git a/src/org/linphone/LinphoneService.java b/src/org/linphone/LinphoneService.java index 05d0150af..5301b0982 100644 --- a/src/org/linphone/LinphoneService.java +++ b/src/org/linphone/LinphoneService.java @@ -418,7 +418,7 @@ public final class LinphoneService extends Service implements LinphoneServiceLis } catch (NameNotFoundException nnfe) {} if (info != null) { - Log.i("Linphone version is ", info.versionCode); + Log.i("Linphone version is ", info.versionName + " (" + info.versionCode + ")"); } else { Log.i("Linphone version is unknown"); }