Follow

SearchBox SDK Removal Procedure

View original article on our GitHub

If you are upgrading from the old SearchBox SDK, please perform the following steps:

1 In the manifest, do the following:

a. Remove the following permission:

<uses-permission android:name="android.permission.READ_PHONE_STATE"/>

b. remove the EULA activity from the application node

<activity android:name="com.startapp.android.eula.EULAActivity" 
          android:theme="@android:style/Theme.Translucent" 
          android:configChanges="keyboard|keyboardHidden|orientation" />

2 Within your main activity:

a. Remove all imports which contain the package: com.searchboxsdk.android

b. Remove the call to the following static function from the onCreate method:

StartAppSearch.init(this, "<Your Developer Id>", "<Your App ID>");

c. Remove the call to the following static function from the onCreate method after thesetContentView (only if you had implemented it):

StartAppSearch.showSearchBox(this);

3 Repeat steps 2.a, 2.c for each activity that the SearchBox had been implemented in.

4 If you are using Obfuscation – remove the following proguard configuration:

-optimizations !code/simplification/arithmetic,!field/*,!class/merging/* -keep class com.searchboxsdk.** { 
*; 
} 
-keep class com.startapp.android.eula.** { 
*; 
} 
-dontwarn com.searchboxsdk.android.**

".

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments