Skip to content

Commit 5caee78

Browse files
committed
💎 Bump version to 8.0.6
2 parents d35210d + 1b7bc5b commit 5caee78

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

‎build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def doExtractStringFromManifest(name) {
1111
android {
1212
sourceSets {
1313
main {
14-
manifest.srcFile 'AndroidManifest.xml'
14+
manifest.srcFile 'src/main/AndroidManifest.xml'
1515
}
1616
}
1717

‎package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "instabug-cordova",
3-
"version": "8.0.5",
3+
"version": "8.0.6",
44
"description": "The purpose of this plugin is to simplify the process of integrating the Instabug SDK in a hybrid application, as well as to provide an interface to interfacing with the SDK through JavaScript.",
55
"main": "index.js",
66
"repository": {

‎scripts/android/before_plugin_install.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,20 @@ const getAndroidVersion = () => {
3636
}
3737
};
3838

39-
const isAndroid7 = version => {
39+
const isLessThanAndroid7 = version => {
4040
if (version) {
4141
const major = parseInt(version.split('.')[0]);
42-
return major >= 7;
42+
return major < 7;
4343
}
4444
};
4545

4646
module.exports = function(ctx) {
4747
if (ibgBuildGradleExists) {
4848
let buildGradle = readIbgBuildGradle();
49-
if (isAndroid7(getAndroidVersion())) {
49+
if (isLessThanAndroid7(getAndroidVersion())) {
5050
buildGradle = buildGradle.replace(
51-
"manifest.srcFile 'AndroidManifest.xml'",
52-
"manifest.srcFile 'src/main/AndroidManifest.xml'"
51+
"manifest.srcFile 'src/main/AndroidManifest.xml'",
52+
"manifest.srcFile 'AndroidManifest.xml'"
5353
);
5454
writeIbgBuildGradle(buildGradle);
5555
}

‎src/ios/IBGPlugin.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,6 @@
2424

2525
- (void) setLocale:(CDVInvokedUrlCommand*)command;
2626

27-
@end
27+
- (void) identifyUserWithEmail:(CDVInvokedUrlCommand*)command;
28+
29+
@end

‎src/ios/IBGPlugin.m

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ - (void) startWithToken:(CDVInvokedUrlCommand*)command
114114
[self.commandDelegate sendPluginResult:result callbackId:[command callbackId]];
115115
}
116116

117+
- (void) identifyUserWithEmail:(CDVInvokedUrlCommand*)command {
118+
NSString *email = [command argumentAtIndex:0];
119+
NSString *name = [command argumentAtIndex:1];
120+
[Instabug identifyUserWithEmail:email name:name];
121+
[self sendSuccessResult:command];
122+
}
123+
117124
/**
118125
* Shows the Instabug dialog so user can choose to report a bug, or
119126
* submit feedback. A specific mode of the SDK can be shown if specified.

0 commit comments

Comments
 (0)