Skip to content

Commit 7bab81a

Browse files
authored
Merge pull request #9 from Instabug/feature/public_apis
Feature/public apis
2 parents 0eb1224 + 3afed84 commit 7bab81a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+3054
-434
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ android {
2121
}
2222

2323
dependencies {
24-
compile 'com.instabug.library:instabug:4.15.1'
24+
compile 'com.instabug.library:instabug:8.0.1'
2525
compile 'com.android.support:multidex:1.0.0'
2626
}

plugin.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@
2828
<js-module src="www/instabug.js" name="Instabug">
2929
<clobbers target="cordova.plugins.instabug"/>
3030
</js-module>
31+
<js-module src="www/bugReporting.js" name="BugReporting">
32+
<clobbers target="cordova.plugins.bugReporting"/>
33+
</js-module>
34+
<js-module src="www/featureRequests.js" name="FeatureRequests">
35+
<clobbers target="cordova.plugins.featureRequests"/>
36+
</js-module>
37+
<js-module src="www/surveys.js" name="Surveys">
38+
<clobbers target="cordova.plugins.surveys"/>
39+
</js-module>
3140

3241
<!-- android -->
3342
<platform name="android">

src/android/IBGPlugin.java

Lines changed: 610 additions & 42 deletions
Large diffs are not rendered by default.

src/android/IBGPluginActivity.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ public void onCreate(Bundle savedInstanceState) {
3434
if(options != null) {
3535
setBuilderOptions(options);
3636
}
37-
3837
// Finish activity (required for no-display theme)
3938
IBGPluginActivity.this.finish();
4039
}
@@ -269,9 +268,9 @@ private void setWelcomeMessageMode(String welcomeMessageMode) {
269268
*/
270269
private void setColorTheme(String theme) {
271270
if ("dark".equals(theme)) {
272-
Instabug.setTheme(InstabugColorTheme.InstabugColorThemeDark);
271+
Instabug.setColorTheme(InstabugColorTheme.InstabugColorThemeDark);
273272
} else if ("light".equals(theme)) {
274-
Instabug.setTheme(InstabugColorTheme.InstabugColorThemeLight);
273+
Instabug.setColorTheme(InstabugColorTheme.InstabugColorThemeLight);
275274
}
276275
}
277276

src/android/MyApplication.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
import android.support.multidex.MultiDex;
66
import android.support.multidex.MultiDexApplication;
77

8+
import com.instabug.bug.BugReporting;
89
import com.instabug.library.Instabug;
910
import com.instabug.library.invocation.InstabugInvocationEvent;
1011
import com.instabug.library.invocation.util.InstabugFloatingButtonEdge;
@@ -18,9 +19,11 @@ public void onCreate()
1819
{
1920
new Instabug.Builder(
2021
this,
21-
"ANDROID_APP_TOKEN",
22-
InstabugInvocationEvent.SHAKE
23-
).setFloatingButtonEdge(InstabugFloatingButtonEdge.LEFT).setFloatingButtonOffsetFromTop(250).build();
22+
"6e9964eddd1a350d6dabf176c6328dac",
23+
InstabugInvocationEvent.FLOATING_BUTTON
24+
).build();
25+
BugReporting.setFloatingButtonEdge(InstabugFloatingButtonEdge.LEFT);
26+
BugReporting.setFloatingButtonOffset(250);
2427
Instabug.setPrimaryColor(Color.parseColor("#1D82DC"));
2528
super.onCreate();
2629
}

0 commit comments

Comments
 (0)