Skip to content

Commit 3050002

Browse files
committed
feat(deprecation): removing already depreceted methods
This change deprecates all acitivites from com.leanplum.activities
1 parent 56b4346 commit 3050002

15 files changed

+65
-14
lines changed

AndroidSDK/src/com/leanplum/Leanplum.java

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -318,20 +318,6 @@ public static Context getContext() {
318318
return context;
319319
}
320320

321-
/**
322-
* Called when the device needs to be registered in development mode.
323-
*/
324-
@Deprecated
325-
public static void setRegisterDeviceHandler(RegisterDeviceCallback handler,
326-
RegisterDeviceFinishedCallback finishHandler) {
327-
if (handler == null && finishHandler == null) {
328-
Log.w("setRegisterDeviceHandler - Invalid handler parameter provided.");
329-
}
330-
331-
registerDeviceHandler = handler;
332-
registerDeviceFinishedHandler = finishHandler;
333-
}
334-
335321
/**
336322
* Syncs resources between Leanplum and the current app. You should only call this once, and
337323
* before {@link Leanplum#start}. syncResourcesAsync should be used instead unless file variables

AndroidSDK/src/com/leanplum/LeanplumEditorMode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@
2525
* Enum for describing the Editor Mode.
2626
*
2727
* @author Ben Marten
28+
* @deprecated {@link LeanplumEditorMode} will be made private in future releases, since it is not
29+
* intended to be public API.
2830
*/
2931
@Deprecated
3032
public enum LeanplumEditorMode {

AndroidSDK/src/com/leanplum/LeanplumUIEditor.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525

2626
/**
2727
* Describes the API of the visual editor package.
28+
*
29+
* @deprecated {@link LeanplumUIEditor} will be made private in future releases, since it is not
30+
* intended to be public API.
2831
*/
2932
@Deprecated
3033
public interface LeanplumUIEditor {

AndroidSDK/src/com/leanplum/activities/LeanplumAccountAuthenticatorActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
import com.leanplum.Leanplum;
2828
import com.leanplum.LeanplumActivityHelper;
2929

30+
/**
31+
* @deprecated due to rising minimal API to 14. This class will be removed in a
32+
* future major release. Please use {@link LeanplumActivityHelper} to track your activities
33+
* automatically.
34+
*/
3035
@Deprecated
3136
public class LeanplumAccountAuthenticatorActivity extends AccountAuthenticatorActivity {
3237
private LeanplumActivityHelper helper;

AndroidSDK/src/com/leanplum/activities/LeanplumActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
import com.leanplum.Leanplum;
2828
import com.leanplum.LeanplumActivityHelper;
2929

30+
/**
31+
* @deprecated due to rising minimal API to 14. This class will be removed in a
32+
* future major release. Please use {@link LeanplumActivityHelper} to track your activities
33+
* automatically.
34+
*/
3035
@Deprecated
3136
public abstract class LeanplumActivity extends Activity {
3237
private LeanplumActivityHelper helper;

AndroidSDK/src/com/leanplum/activities/LeanplumActivityGroup.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
import com.leanplum.Leanplum;
2828
import com.leanplum.LeanplumActivityHelper;
2929

30+
/**
31+
* @deprecated due to rising minimal API to 14. This class will be removed in a
32+
* future major release. Please use {@link LeanplumActivityHelper} to track your activities
33+
* automatically.
34+
*/
3035
@Deprecated
3136
public class LeanplumActivityGroup extends ActivityGroup {
3237
private LeanplumActivityHelper helper;

AndroidSDK/src/com/leanplum/activities/LeanplumAliasActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
import com.leanplum.Leanplum;
2828
import com.leanplum.LeanplumActivityHelper;
2929

30+
/**
31+
* @deprecated due to rising minimal API to 14. This class will be removed in a
32+
* future major release. Please use {@link LeanplumActivityHelper} to track your activities
33+
* automatically.
34+
*/
3035
@Deprecated
3136
public class LeanplumAliasActivity extends AliasActivity {
3237
private LeanplumActivityHelper helper;

AndroidSDK/src/com/leanplum/activities/LeanplumAppCompatActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
import com.leanplum.Leanplum;
2828
import com.leanplum.LeanplumActivityHelper;
2929

30+
/**
31+
* @deprecated due to rising minimal API to 14. This class will be removed in a
32+
* future major release. Please use {@link LeanplumActivityHelper} to track your activities
33+
* automatically.
34+
*/
3035
@Deprecated
3136
public class LeanplumAppCompatActivity extends AppCompatActivity {
3237
private LeanplumActivityHelper helper;

AndroidSDK/src/com/leanplum/activities/LeanplumExpandableListActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
import com.leanplum.Leanplum;
2828
import com.leanplum.LeanplumActivityHelper;
2929

30+
/**
31+
* @deprecated due to rising minimal API to 14. This class will be removed in a
32+
* future major release. Please use {@link LeanplumActivityHelper} to track your activities
33+
* automatically.
34+
*/
3035
@Deprecated
3136
public class LeanplumExpandableListActivity extends ExpandableListActivity {
3237
private LeanplumActivityHelper helper;

AndroidSDK/src/com/leanplum/activities/LeanplumFragmentActivity.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@
2727
import com.leanplum.Leanplum;
2828
import com.leanplum.LeanplumActivityHelper;
2929

30+
/**
31+
* @deprecated due to rising minimal API to 14. This class will be removed in a
32+
* future major release. Please use {@link LeanplumActivityHelper} to track your activities
33+
* automatically.
34+
*/
3035
@Deprecated
3136
public abstract class LeanplumFragmentActivity extends FragmentActivity {
3237
private LeanplumActivityHelper helper;

0 commit comments

Comments
 (0)