Skip to content

Commit

Permalink
Restore 5.x compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
morinel committed Nov 10, 2015
1 parent 6277560 commit 908989b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions manifest
Expand Up @@ -2,8 +2,7 @@
# this is your module manifest and used by Titanium
# during compilation, packaging, distribution, etc.
#
version: 1.2
apiversion: 3
version: 1.3
description: Google Cloud Push for Titanium
author: Jeroen van Vianen <jeroen@vanvianen.nl>
license: Apache License, Version 2.0
Expand All @@ -14,5 +13,5 @@ name: Gcm
moduleid: nl.vanvianen.android.gcm
guid: A2371685-B58E-42E4-8403-DF23A877FF0C
platform: android
minsdk: 3.5.1
minsdk: 4.0.0.GA
architectures: armeabi;armeabi-v7a;x86
2 changes: 1 addition & 1 deletion src/nl/vanvianen/android/gcm/GCMIntentService.java
Expand Up @@ -98,7 +98,7 @@ protected void onMessage(Context context, Intent intent) {
}

/* Store data to be retrieved when resuming app as a JSON object, serialized as a String, otherwise
* Ti.App.Properties.getString("com.activate.gcm.last_data") doesn't work. */
* Ti.App.Properties.getString(GCMModule.LAST_DATA) doesn't work. */
JSONObject json = new JSONObject(data);
TiApplication.getInstance().getAppProperties().setString(GCMModule.LAST_DATA, json.toString());

Expand Down
2 changes: 1 addition & 1 deletion timodule.xml
Expand Up @@ -3,7 +3,7 @@
<android xmlns:android="http://schemas.android.com/apk/res/android">
<manifest package="nl.vanvianen.android.gcm" android:versionCode="3" android:versionName="1.2" android:installLocation="internalOnly">
<supports-screens android:anyDensity="true"/>
<uses-sdk android:minSdkVersion="10"/>
<uses-sdk android:minSdkVersion="21"/>

<uses-permission android:name="com.google.android.c2dm.permission.RECEIVE"/>
<permission android:name="${tiapp.properties['id']}.permission.C2D_MESSAGE" android:protectionLevel="signature"/>
Expand Down

0 comments on commit 908989b

Please sign in to comment.