From 3610bbf21bb69830189b836c80450f10d08f4204 Mon Sep 17 00:00:00 2001 From: Joe Bowser Date: Wed, 30 Jan 2013 11:31:59 -0800 Subject: [PATCH] CB-2296: Adding deprecation notices for removing the setProperties methods --- framework/src/org/apache/cordova/DroidGap.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/framework/src/org/apache/cordova/DroidGap.java b/framework/src/org/apache/cordova/DroidGap.java index 69a76502..ee21eb87 100755 --- a/framework/src/org/apache/cordova/DroidGap.java +++ b/framework/src/org/apache/cordova/DroidGap.java @@ -591,6 +591,7 @@ public class DroidGap extends Activity implements CordovaInterface { * @param value */ public void setBooleanProperty(String name, boolean value) { + Log.d(TAG, "Setting boolean properties in DroidGap will be deprecated in 3.0 on July 2013, please use config.xml"); this.getIntent().putExtra(name, value); } @@ -601,6 +602,7 @@ public class DroidGap extends Activity implements CordovaInterface { * @param value */ public void setIntegerProperty(String name, int value) { + Log.d(TAG, "Setting integer properties in DroidGap will be deprecated in 3.1 on August 2013, please use config.xml"); this.getIntent().putExtra(name, value); } @@ -611,6 +613,7 @@ public class DroidGap extends Activity implements CordovaInterface { * @param value */ public void setStringProperty(String name, String value) { + Log.d(TAG, "Setting string properties in DroidGap will be deprecated in 3.0 on July 2013, please use config.xml"); this.getIntent().putExtra(name, value); } @@ -621,6 +624,7 @@ public class DroidGap extends Activity implements CordovaInterface { * @param value */ public void setDoubleProperty(String name, double value) { + Log.d(TAG, "Setting double properties in DroidGap will be deprecated in 3.0 on July 2013, please use config.xml"); this.getIntent().putExtra(name, value); }