diff --git a/.gitignore b/.gitignore index ddf3c757..14d47386 100644 --- a/.gitignore +++ b/.gitignore @@ -12,6 +12,5 @@ node_modules/ #sample-app sample-app/.idea -sample-app/platforms/ sample-app/hooks/ sample-app/plugins/ diff --git a/sampleApp/package-lock.json b/sampleApp/package-lock.json index 5fcb99c1..53734d84 100644 --- a/sampleApp/package-lock.json +++ b/sampleApp/package-lock.json @@ -281,83 +281,6 @@ "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" }, - "instabug-cordova": { - "version": "file:../instabug-cordova", - "requires": { - "xcode": "^0.9.0" - }, - "dependencies": { - "base64-js": { - "version": "1.1.2", - "bundled": true - }, - "big-integer": { - "version": "1.6.44", - "bundled": true - }, - "bplist-creator": { - "version": "0.0.7", - "bundled": true, - "requires": { - "stream-buffers": "~2.2.0" - } - }, - "bplist-parser": { - "version": "0.1.1", - "bundled": true, - "requires": { - "big-integer": "^1.6.7" - } - }, - "pegjs": { - "version": "0.10.0", - "bundled": true - }, - "plist": { - "version": "2.0.1", - "bundled": true, - "requires": { - "base64-js": "1.1.2", - "xmlbuilder": "8.2.2", - "xmldom": "0.1.x" - } - }, - "simple-plist": { - "version": "0.2.1", - "bundled": true, - "requires": { - "bplist-creator": "0.0.7", - "bplist-parser": "0.1.1", - "plist": "2.0.1" - } - }, - "stream-buffers": { - "version": "2.2.0", - "bundled": true - }, - "uuid": { - "version": "3.0.1", - "bundled": true - }, - "xcode": { - "version": "0.9.3", - "bundled": true, - "requires": { - "pegjs": "^0.10.0", - "simple-plist": "^0.2.1", - "uuid": "3.0.1" - } - }, - "xmlbuilder": { - "version": "8.2.2", - "bundled": true - }, - "xmldom": { - "version": "0.1.27", - "bundled": true - } - } - }, "ios-sim": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/ios-sim/-/ios-sim-8.0.2.tgz", diff --git a/sampleApp/package.json b/sampleApp/package.json index 06d120d7..39aa71d9 100644 --- a/sampleApp/package.json +++ b/sampleApp/package.json @@ -14,16 +14,14 @@ "license": "Apache-2.0", "dependencies": { "cordova-android": "^8.0.0", - "cordova-ios": "^5.0.1", - "instabug-cordova": "file:../project" + "cordova-ios": "^5.0.1" }, "devDependencies": { "cordova-plugin-whitelist": "^1.3.4" }, "cordova": { "plugins": { - "cordova-plugin-whitelist": {}, - "instabug-cordova": {} + "cordova-plugin-whitelist": {} }, "platforms": [ "ios", diff --git a/sampleApp/platforms/android/CordovaLib/build.gradle b/sampleApp/platforms/android/CordovaLib/build.gradle index 19f202b9..a9b91897 100644 --- a/sampleApp/platforms/android/CordovaLib/build.gradle +++ b/sampleApp/platforms/android/CordovaLib/build.gradle @@ -49,8 +49,8 @@ android { buildToolsVersion cdvBuildToolsVersion compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility '1.7' + targetCompatibility '1.7' } sourceSets { diff --git a/sampleApp/platforms/android/android.json b/sampleApp/platforms/android/android.json index 1ae60901..cc18a8c5 100644 --- a/sampleApp/platforms/android/android.json +++ b/sampleApp/platforms/android/android.json @@ -11,84 +11,14 @@ { "xml": "", "count": 1 - }, - { - "xml": "", - "count": 1 } ] } }, "AndroidManifest.xml": { "parents": { - "/manifest/application": [ - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - } - ], - "/manifest": [ - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - }, - { - "xml": "", - "count": 1 - } - ] + "/manifest/application": [], + "/manifest": [] } } } @@ -96,64 +26,11 @@ "installed_plugins": { "cordova-plugin-whitelist": { "PACKAGE_NAME": "io.cordova.hellocordova" - }, - "instabug-cordova": { - "PACKAGE_NAME": "io.cordova.hellocordova" } }, "dependent_plugins": {}, - "modules": [ - { - "id": "instabug-cordova.Instabug", - "file": "plugins/instabug-cordova/www/instabug.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.instabug" - ] - }, - { - "id": "instabug-cordova.BugReporting", - "file": "plugins/instabug-cordova/www/bugReporting.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.bugReporting" - ] - }, - { - "id": "instabug-cordova.FeatureRequests", - "file": "plugins/instabug-cordova/www/featureRequests.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.featureRequests" - ] - }, - { - "id": "instabug-cordova.Surveys", - "file": "plugins/instabug-cordova/www/surveys.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.surveys" - ] - }, - { - "id": "instabug-cordova.Chats", - "file": "plugins/instabug-cordova/www/chats.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.chats" - ] - }, - { - "id": "instabug-cordova.Replies", - "file": "plugins/instabug-cordova/www/replies.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.replies" - ] - } - ], + "modules": [], "plugin_metadata": { - "cordova-plugin-whitelist": "1.3.4", - "instabug-cordova": "8.0.4" + "cordova-plugin-whitelist": "1.3.4" } } diff --git a/sampleApp/platforms/android/app/build.gradle b/sampleApp/platforms/android/app/build.gradle index 3bc23e89..1e7fe12c 100644 --- a/sampleApp/platforms/android/app/build.gradle +++ b/sampleApp/platforms/android/app/build.gradle @@ -90,7 +90,6 @@ ext { } // PLUGIN GRADLE EXTENSIONS START -apply from: "../instabug-cordova/hellocordova-build.gradle" // PLUGIN GRADLE EXTENSIONS END def hasBuildExtras1 = file('build-extras.gradle').exists() @@ -232,8 +231,8 @@ android { } compileOptions { - sourceCompatibility JavaVersion.VERSION_1_8 - targetCompatibility JavaVersion.VERSION_1_8 + sourceCompatibility '1.7' + targetCompatibility '1.7' } if (cdvReleaseSigningPropertiesFile) { diff --git a/sampleApp/platforms/android/app/src/main/AndroidManifest.xml b/sampleApp/platforms/android/app/src/main/AndroidManifest.xml index 93b09911..eff9b993 100644 --- a/sampleApp/platforms/android/app/src/main/AndroidManifest.xml +++ b/sampleApp/platforms/android/app/src/main/AndroidManifest.xml @@ -8,22 +8,6 @@ - - - - - - - - - - - - - - - - diff --git a/sampleApp/platforms/android/app/src/main/assets/www/cordova_plugins.js b/sampleApp/platforms/android/app/src/main/assets/www/cordova_plugins.js index 40541208..c1dd5ded 100644 --- a/sampleApp/platforms/android/app/src/main/assets/www/cordova_plugins.js +++ b/sampleApp/platforms/android/app/src/main/assets/www/cordova_plugins.js @@ -1,56 +1,6 @@ cordova.define('cordova/plugin_list', function(require, exports, module) { - module.exports = [ - { - "id": "instabug-cordova.Instabug", - "file": "plugins/instabug-cordova/www/instabug.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.instabug" - ] - }, - { - "id": "instabug-cordova.BugReporting", - "file": "plugins/instabug-cordova/www/bugReporting.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.bugReporting" - ] - }, - { - "id": "instabug-cordova.FeatureRequests", - "file": "plugins/instabug-cordova/www/featureRequests.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.featureRequests" - ] - }, - { - "id": "instabug-cordova.Surveys", - "file": "plugins/instabug-cordova/www/surveys.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.surveys" - ] - }, - { - "id": "instabug-cordova.Chats", - "file": "plugins/instabug-cordova/www/chats.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.chats" - ] - }, - { - "id": "instabug-cordova.Replies", - "file": "plugins/instabug-cordova/www/replies.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.replies" - ] - } - ]; + module.exports = []; module.exports.metadata = { - "cordova-plugin-whitelist": "1.3.4", - "instabug-cordova": "8.0.4" + "cordova-plugin-whitelist": "1.3.4" }; }); \ No newline at end of file diff --git a/sampleApp/platforms/android/app/src/main/assets/www/js/index.js b/sampleApp/platforms/android/app/src/main/assets/www/js/index.js index cc49caab..c574d223 100644 --- a/sampleApp/platforms/android/app/src/main/assets/www/js/index.js +++ b/sampleApp/platforms/android/app/src/main/assets/www/js/index.js @@ -34,6 +34,7 @@ var app = { }, cordova.plugins.bugReporting.invocationEvents.button, { + floatingButtonEdge: 'left', commentRequired: true, colorTheme: 'light', enableIntroDialog: false diff --git a/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/bugReporting.js b/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/bugReporting.js deleted file mode 100644 index 7931385a..00000000 --- a/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/bugReporting.js +++ /dev/null @@ -1,283 +0,0 @@ -cordova.define("instabug-cordova.BugReporting", function(require, exports, module) { -/* - * Instabug Bug Reporting module. - * @file bugReporting.js - */ - -var exec = require('cordova/exec'); - -/** - * The event used to invoke the feedback form - * @readonly - * @enum {string} InvocationEvent - */ -var getInvocationEvents = function() { - return { - shake: 'shake', - button: 'button', - screenshot: 'screenshot', - swipe: 'swipe', - none: 'none' - }; -}; - -/** - * The options used upon invoking the SDK - * @readonly - * @enum {string} InvocationOption - */ -var getOptions = function() { - return { - emailFieldHidden: 'emailFieldHidden', - emailFieldOptional: 'emailFieldOptional', - commentFieldRequired: 'commentFieldRequired', - disablePostSendingDialog: 'disablePostSendingDialog' - }; -}; - -/** - * The mode used upon invocating the SDK - * @readonly - * @enum {string} InvocationMode - */ -var getInvocationModes = function() { - return { - chat: 'chat', - chats: 'chats', - bug: 'bug', - feedback: 'feedback', - options: 'options' - }; -}; - -/** - * The extended bug report mode. - * @readonly - * @enum {string} ExtendedBugReportMode - */ -var getExtendedBugReportMode = function() { - return { - enabledWithRequiredFields: 'enabledWithRequiredFields', - enabledWithOptionalFields: 'enabledWithOptionalFields', - disabled: 'disabled' - }; -}; - -var getReportType = function() { - return { - bug: 'bug', - feedback: 'feedback', - question: 'question' - }; -}; - -/** - * BugReporting module - * @exports BugReporting - */ -var BugReporting = function() {}; - -BugReporting.invocationEvents = getInvocationEvents(); -/** - * @deprecated - */ -BugReporting.invocationOptions = getOptions(); -BugReporting.option = getOptions(); -BugReporting.invocationModes = getInvocationModes(); -/** - * @deprecated - */ -BugReporting.extendedBugReportMode = getExtendedBugReportMode(); -BugReporting.reportType = getReportType(); - -/** - * Enables or disables all bug reporting functionalities. - * @param {boolean} isEnabled - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setEnabled = function(isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setBugReportingEnabled', [isEnabled]); -}; - -/** - * Sets report type either bug, feedback or both. - * @param {enum} reportType Array of reportType - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setReportTypes = function(reportTypes, success, error) { - var validatedTypes = []; - for (let i = 0; i < reportTypes.length; i++) { - var validatedType = getReportType()[reportTypes[i]]; - if (validatedType) { - validatedTypes.push(validatedType); - } - } - if (validatedTypes !== undefined || validatedTypes.length != 0) { - exec(success, error, 'IBGPlugin', 'setReportTypes', [reportTypes]); - } -}; - -/** - * Shows report view with specified options. - * @param {enum} reportType reportType - * @param {array} options array of Invocation options - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.showWithOptions = function(reportType, options, success, error) { - if (reportType && options) { - exec( - success, - error, - 'IBGPlugin', - 'showBugReportingWithReportTypeAndOptions', - [reportType, options] - ); - } -}; - -/** - * @deprecated use {@link BugReporting.setOptions} - * Sets the invocation options. - * Default is set by `Instabug.startWithToken`. - * @param {enum} options Array of Option - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setInvocationOptions = function(options, success, error) { - var i; - var validatedOptions = []; - for (i = 0; i < options.length; i++) { - var validatedOption = getOptions()[options[i]]; - if (validatedOption) { - validatedOptions.push(validatedOption); - } - } - if (validatedOptions !== undefined || validatedOptions.length != 0) { - exec(success, error, 'IBGPlugin', 'setInvocationOptions', [ - validatedOptions - ]); - } else { - console.log( - 'Could not change invocation option - "' + - validatedOptions + - '" is empty.' - ); - } -}; - -/** - * Sets the invocation options. - * Default is set by `Instabug.startWithToken`. - * @param {enum} options Array of Option - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setOptions = function(options, success, error) { - BugReporting.setInvocationOptions(options, success, error); -} - -/** - * Sets a block of code to be executed just before the SDK's UI is presented. - * This block is executed on the UI thread. Could be used for performing any - * UI changes before the SDK's UI is shown. - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setOnInvokeHandler = function(success, error) { - exec(success, error, 'IBGPlugin', 'setPreInvocationHandler', []); -}; - -/** - * Sets a block of code to be executed right after the SDK's UI is dismissed. - * This block is executed on the UI thread. Could be used for performing any - * UI changes after the SDK's UI is dismissed. - * @param {function(Object):void} success callback on function success; param includes dismissType and reportType - * @param {function(void):void} error callback on function error - */ -BugReporting.setOnDismissHandler = function(success, error) { - exec(success, error, 'IBGPlugin', 'setPostInvocationHandler', []); -}; - -/** - * Sets the events that will invoke the SDK. - * @param {enum} events Array of InvocationEvent - * @param {function(void):void} success callback on function success - * @param {function(string):void} error callback on function error - */ -BugReporting.setInvocationEvents = function(events, success, error) { - var i; - var validatedEvents = []; - for (i = 0; i < events.length; i++) { - var validatedEvent = getInvocationEvents()[events[i]]; - if (validatedEvent) { - validatedEvents.push(validatedEvent); - } - } - if (validatedEvents !== undefined || validatedEvents.length != 0) { - exec(success, error, 'IBGPlugin', 'setInvocationEvents', [validatedEvents]); - } else { - console.log( - 'Could not change invocation event - "' + event + '" is not valid.' - ); - } -}; - -/** - * Sets enabled types of attachments for bug reporting. - * @param {boolean} screenshot - * @param {boolean} extraScreenshot - * @param {boolean} galleryImage - * @param {boolean} screenRecording - * @param {function(void):void} success callback on function success - * @param {function(string):void} error callback on function error - */ -BugReporting.setEnabledAttachmentTypes = function( - screenshot, - extraScreenshot, - galleryImage, - screenRecording, - success, - error -) { - exec(success, error, 'IBGPlugin', 'setAttachmentTypesEnabled', [ - screenshot, - extraScreenshot, - galleryImage, - screenRecording - ]); -}; - -/** - * - * @param {enum} extendedBugReportMode ExtendedBugReportMode - * @param {function} success callback on function success - * @param {function(string):void} error callback on function error - */ -BugReporting.setExtendedBugReportMode = function( - extendedBugReportMode, - success, - error -) { - var validatedExtendedBugReportMode = getExtendedBugReportMode()[ - extendedBugReportMode - ]; - - if (validatedExtendedBugReportMode) { - exec(success, error, 'IBGPlugin', 'setExtendedBugReportMode', [ - validatedExtendedBugReportMode - ]); - } else { - console.log( - 'Could not set extended bug report mode - "' + - validatedExtendedBugReportMode + - '" is not valid.' - ); - } -}; - -module.exports = BugReporting; - -}); diff --git a/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/chats.js b/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/chats.js deleted file mode 100644 index 7b436605..00000000 --- a/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/chats.js +++ /dev/null @@ -1,39 +0,0 @@ -cordova.define("instabug-cordova.Chats", function(require, exports, module) { -/* - * Instabug Chats module. - * @file chats.js - */ - -var exec = require('cordova/exec'); - -/** - * Chats module - * @exports Chats - */ -var Chats = function() {}; - -/** - * @deprecated - * Enables or disables all chats functionalities. - * @param {boolean} isEnabled - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Chats.setEnabled = function(isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setChatsEnabled', [isEnabled]); -}; - -/** - * @deprecated - * Shows chats with the option of chats list or new chat. - * @param {boolean} withChatsList - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Chats.show = function(success, error) { - exec(success, error, 'IBGPlugin', 'showChats'); -} - -module.exports = Chats; - -}); diff --git a/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/featureRequests.js b/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/featureRequests.js deleted file mode 100644 index d3b6f179..00000000 --- a/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/featureRequests.js +++ /dev/null @@ -1,66 +0,0 @@ -cordova.define("instabug-cordova.FeatureRequests", function(require, exports, module) { -/* - * Instabug Feature Requests module. - * @file featureRequests.js - */ - -var exec = require('cordova/exec'); - -/** - * Types of actions on feature requests. - * @readonly - * @enum {string} - */ -var getActionTypes = function () { - return { - requestNewFeature: 'requestNewFeature', - addCommentToFeature: 'addCommentToFeature' - }; -}; - -/** - * FeatureRequests module - * @exports FeatureRequests - */ -var FeatureRequests = function() {}; - -FeatureRequests.actionTypes = getActionTypes(); - -/** - * Shows the UI for feature requests list. - * @param {function(void):void} success - * @param {function(void):void} error - */ -FeatureRequests.show = function (success, error) { - exec(success, error, 'IBGPlugin', 'showFeatureRequests', []); -}; - -/** - * Sets whether users are required to enter an email address or not when - * sending reports. - * Defaults to YES. - * @param {boolean} isRequired indicates if email field is required - * @param {enum} actionTypes array of ActionType - * @param {function(void):void} success - * @param {function(string):void} error - */ -FeatureRequests.setEmailFieldRequired = function (isRequired, actionTypes, success, error) { - var i; - var validatedActionTypes = []; - for (i = 0; i < actionTypes.length; i++) { - var validatedActionType = getActionTypes()[actionTypes[i]]; - if(validatedActionType) { - validatedActionTypes.push(validatedActionType); - } - } - if (validatedActionTypes !== undefined || validatedActionTypes.length != 0) { - exec(success, error, 'IBGPlugin', 'setEmailFieldRequiredForFeatureRequests', [isRequired, validatedActionTypes]); - } else { - console.log('Could not set email field - "' + validatedActionTypes + '" is incorrect.'); - } -}; - - -module.exports = FeatureRequests; - -}); diff --git a/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/instabug.js b/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/instabug.js deleted file mode 100644 index 4f94337c..00000000 --- a/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/instabug.js +++ /dev/null @@ -1,227 +0,0 @@ -cordova.define("instabug-cordova.Instabug", function(require, exports, module) { -var exec = require('cordova/exec'); - -var getInvocationEvents = function () { - return { - shake: 'shake', - button: 'button', - screenshot: 'screenshot', - swipe: 'swipe', - none: 'none' - }; -}; - -var getReproStepsMode = function () { - return { - enabled: 'enabled', - disabled: 'disabled', - enabledWithNoScreenshots: 'enabledWithNoScreenshots' - }; -}; - -var getWelcomeMessageMode = function () { - return { - welcomeMessageModeLive: 'welcomeMessageModeLive', - welcomeMessageModeBeta: 'welcomeMessageModeBeta', - welcomeMessageModeDisabled: 'welcomeMessageModeDisabled' - } - -}; - -var getLocales = function () { - return { - arabic: 'arabic', - chineseSimplified: 'chineseSimplified', - chineseTraditional: 'chineseTraditional', - english: 'english', - french: 'french', - german: 'german', - italian: 'italian', - japanese: 'japanese', - korean: 'korean', - polish: 'polish', - portugueseBrazil: 'portugueseBrazil', - russian: 'russian', - spanish: 'spanish', - swedish: 'swedish', - turkish: 'turkish', - czech: 'czech' - }; -}; - -var Instabug = function () { -}; - -Instabug.activate = function (token, event, options, success, error) { - var validatedEvent = getInvocationEvents()[event]; - - if (validatedEvent) { - console.warn("This method is now deprecated, and will be removed in an upcoming version.") - exec(success, error, 'IBGPlugin', 'activate', [token, event, options]); - } else { - console.log('Could not activate Instabug - invocation event "' + event + '" is not valid.'); - } -}; - -Instabug.show = function (success, error) { - exec(success, error, 'IBGPlugin', 'show'); -} - -Instabug.startWithToken = function (token, events, options, success, error) { - var i; - var validatedEvents = []; - for (i = 0; i < events.length; i++) { - var validatedEvent = getInvocationEvents()[events[i]]; - if(validatedEvent) { - validatedEvents.push(validatedEvent); - } - } - if (validatedEvents !== undefined || validatedEvents.length != 0) { - exec(success, error, 'IBGPlugin', 'startWithToken', [token, validatedEvents, options]); - } else { - console.log('Could not activate Instabug - invocation event is not valid.'); - } -}; - -Instabug.setPrimaryColor = function (colorInteger, success, error) { - exec(success, error, 'IBGPlugin', 'setPrimaryColor', [colorInteger]); -}; - -Instabug.setViewHierarchyEnabled = function (enabled, success, error) { - exec(success, error, 'IBGPlugin', 'setViewHierarchyEnabled', [enabled]); -}; - -Instabug.setAutoScreenRecordingMaxDuration = function (duration, success, error) { - exec(success, error, 'IBGPlugin', 'setAutoScreenRecordingMaxDuration', [duration]); -}; - -Instabug.logUserEventWithName = function (userEvent, success, error) { - exec(success, error, 'IBGPlugin', 'logUserEventWithName', [userEvent]); -}; - -Instabug.setShakingThreshold = function (shakingThreshold, success, error) { - exec(success, error, 'IBGPlugin', 'setShakingThreshold', [shakingThreshold]); -}; - -Instabug.setReproStepsMode = function (reproStepsMode, success, error) { - - var validatedReproStepsMode = getReproStepsMode()[reproStepsMode]; - - if (validatedReproStepsMode) { - exec(success, error, 'IBGPlugin', 'setReproStepsMode', [validatedReproStepsMode]); - } else { - console.log('Could not set user steps mode - "' + validatedReproStepsMode + '" is not valid.'); - } -}; - -Instabug.showWelcomeMessage = function (welcomeMessageMode, success, error) { - - var validatedWelcomeMessageMode = getWelcomeMessageMode()[welcomeMessageMode]; - - if (validatedWelcomeMessageMode) { - exec(success, error, 'IBGPlugin', 'showWelcomeMessage', [validatedWelcomeMessageMode]); - } else { - console.log('Could not set welcome message mode - "' + validatedWelcomeMessageMode + '" is not valid.'); - } - }; - -Instabug.setUserData = function (data, success, error) { - exec(success, error, 'IBGPlugin', 'setUserData', [data]); -}; - -Instabug.addFile = function (filePath, success, error) { - exec(success, error, 'IBGPlugin', 'addFile', [filePath]); -} - -Instabug.addLog = function (content, success, error) { - exec(success, error, 'IBGPlugin', 'addLog', [content]); -}; - -Instabug.clearLog = function (success, error) { - exec(success, error, 'IBGPlugin', 'clearLog', []); -}; - -/** - * @deprecated use {@link Replies.getUnreadRepliesCount} - */ -Instabug.getUnreadMessagesCount = function (success, error) { - exec(success, error, 'IBGPlugin', 'getUnreadRepliesCount', []); -}; - -/** - * @deprecated use {@link Replies.setInAppNotificationEnabled} - */ -Instabug.setChatNotificationEnabled = function (isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setChatNotificationEnabled', [isEnabled]); -}; - -Instabug.setIBGLogPrintsToConsole = function (isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setIBGLogPrintsToConsole', [isEnabled]); -}; - -Instabug.disable = function (success, error) { - exec(success, error, 'IBGPlugin', 'disable', []); -}; - -Instabug.enable = function (success, error) { - exec(success, error, 'IBGPlugin', 'enable', []); -}; - -Instabug.isEnabled = function (success, error) { - exec(success, error, 'IBGPlugin', 'isEnabled', []); -}; - -Instabug.setUserAttribute = function (key, value, success, error) { - exec(success, error, 'IBGPlugin', 'setUserAttribute', [key, value]); -}; - -Instabug.removeUserAttribute = function (key, success, error) { - exec(success, error, 'IBGPlugin', 'removeUserAttribute', [key]); -}; - -Instabug.getAllUserAttributes = function (success, error) { - exec(success, error, 'IBGPlugin', 'getAllUserAttributes', []); -}; - -Instabug.getUserAttribute = function (key, success, error) { - exec(success, error, 'IBGPlugin', 'getUserAttribute', [key]); -}; - -Instabug.identifyUserWithEmail = function (email, name, success, error) { - exec(success, error, 'IBGPlugin', 'identifyUserWithEmail', [email, name]); -}; - -Instabug.setPreSendingHandler = function (success, error) { - exec(success, error, 'IBGPlugin', 'setPreSendingHandler', []); -}; - -Instabug.setVideoRecordingFloatingButtonPosition = function (position, success, error) { - exec(success, error, 'IBGPlugin', 'setVideoRecordingFloatingButtonPosition', [position]); -}; - -Instabug.logOut = function (success, error) { - exec(success, error, 'IBGPlugin', 'logOut', []); -}; - -Instabug.setDebugEnabled = function (isDebugEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setDebugEnabled', [isDebugEnabled]); - if(success) { - console.log("setting debug enabled to " + isDebugEnabled); - } else if(error) { - console.log("setting debug enabled not successful"); - } -}; - -Instabug.setLocale = function (locale, success, error) { - var validatedLocale = getLocales()[locale]; - - if (validatedLocale) { - exec(success, error, 'IBGPlugin', 'setLocale', [validatedLocale]); - } else { - console.log('Could not set locale - "' + locale + '" is not valid.'); - } -}; - -module.exports = Instabug; - -}); diff --git a/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/replies.js b/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/replies.js deleted file mode 100644 index 4331b940..00000000 --- a/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/replies.js +++ /dev/null @@ -1,65 +0,0 @@ -cordova.define("instabug-cordova.Replies", function(require, exports, module) { -/* - * Instabug Replies module. - * @file replies.js - */ - -var exec = require('cordova/exec'); - -/** - * Replies module - * @exports Replies - */ -var Replies = function() {}; - -/** - * Enables or disables all replies functionalities. - * @param {boolean} isEnabled - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.setEnabled = function(isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setRepliesEnabled', [isEnabled]); -}; - -/** - * Shows replies. - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.show = function(success, error) { - exec(success, error, 'IBGPlugin', 'showReplies'); -} - -/** - * Calls success callback if chats exist. - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.hasChats = function(success, error) { - exec(success, error, 'IBGPlugin', 'hasChats'); -} - -/** - * Returns the number of unread replies for the user. - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.getUnreadRepliesCount = function(success, error) { - exec(success, error, 'IBGPlugin', 'getUnreadRepliesCount'); -} - -/** - * Enables in app notifications for any new reply received. - * @param {boolean} isEnabled - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.setInAppNotificationEnabled = function (isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setChatNotificationEnabled', [isEnabled]); -}; - - - -module.exports = Replies; -}); diff --git a/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/surveys.js b/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/surveys.js deleted file mode 100644 index 79e12173..00000000 --- a/sampleApp/platforms/android/app/src/main/assets/www/plugins/instabug-cordova/www/surveys.js +++ /dev/null @@ -1,135 +0,0 @@ -cordova.define("instabug-cordova.Surveys", function(require, exports, module) { -/* - * Instabug Surveys module. - * @file surveys.js - */ - -var exec = require('cordova/exec'); - - -/** - * Surveys module - * @exports Surveys - */ -var Surveys = function() {}; - -/** - * Sets whether auto surveys showing are enabled or not. - * @param {boolean} autoShowingSurveysEnabled A boolean for whether to auto show a survey - * @param {function():void} success - * @param {function(string)} error - */ -Surveys.setAutoShowingEnabled = function (autoShowingSurveysEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setAutoShowingSurveysEnabled', [autoShowingSurveysEnabled]); -}; - -/** - * @summary Sets whether surveys are enabled or not. - * If you disable surveys on the SDK but still have active surveys on your Instabug dashboard, - * those surveys are still going to be sent to the device, but are not going to be - * shown automatically. - * To manually display any available surveys, call `Instabug.showSurveyIfAvailable()`. - * Defaults to `true`. - * @param {boolean} isEnabled - * @param {function():void} success - * @param {function(string):void} error - */ -Surveys.setEnabled = function (isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setSurveysEnabled', [isEnabled]); -}; - -/** - * @summary Shows one of the surveys that were not shown before, that also have conditions - * that match the current device/user. - * Does nothing if there are no available surveys or if a survey has already been shown - * in the current session. - * @param {function():void} success - * @param {function():void} error - */ -Surveys.showSurveyIfAvailable = function (success, error) { - exec(success, error, 'IBGPlugin', 'showSurveyIfAvailable', []); -}; - -/** - * @summary Sets a block of code to be executed just before the survey's UI is presented. - * This block is executed on the UI thread. Could be used for performing any UI changes before - * the survey's UI is shown. - * @param {function():void} success - * @param {function():void} error - */ -Surveys.setOnShowHandler = function (success, error) { - exec(success, error, 'IBGPlugin', 'willShowSurveyHandler', []); -}; - -/** - * @summary Sets a block of code to be executed right after the survey's UI is dismissed. - * This block is executed on the UI thread. Could be used for performing any UI - * changes after the survey's UI is dismissed. - * @param {function():void} success - * @param {function():void} error - */ -Surveys.setOnDismissHandler = function (success, error) { - exec(success, error, 'IBGPlugin', 'didDismissSurveyHandler', []); -}; - -/** - * Shows survey with a specific token. - * Does nothing if there are no available surveys with that specific token. - * Answered and cancelled surveys won't show up again. - * @param {string} surveyToken A String with a survey token. - * @param {function():void} success - * @param {function(string):void} error - */ -Surveys.showSurveyWithToken = function (surveyToken, success, error) { - exec(success, error, 'IBGPlugin', 'showSurveyWithToken', [surveyToken]); -}; - -/** - * Sets a threshold for numbers of sessions and another for number of days - * required before a survey, that has been dismissed once, would show again. - * @param {number} sessionsCount Number of sessions required to be - * initialized before a dismissed survey can be shown again. - * @param {number} daysCount Number of days required to pass before a - * dismissed survey can be shown again. - * @param {function():void} success - * @param {function(string):void} error - */ -Surveys.setThresholdForReshowingSurveyAfterDismiss = function (sessionsCount, daysCount, success, error) { - exec(success, error, 'IBGPlugin', 'setThresholdForReshowingSurveyAfterDismiss', [sessionsCount, daysCount]); -}; - -/** - * Returns true if the survey with a specific token was answered before. - * Will return false if the token does not exist or if the survey was not answered before. - * @param {string} surveyToken a string with a survey token. - * @param {function(boolean):void} success - * @param {function(string):void} error - */ -Surveys.hasRespondedToSurveyWithToken = function (surveyToken, success, error) { - exec(success, error, 'IBGPlugin', 'hasRespondedToSurveyWithToken', [surveyToken]); -}; - -/** - * Returns an array containing the available surveys. - * @param {function(Object):void} success - * @param {function():void} error - */ -Surveys.getAvailableSurveys = function (success, error) { - exec(success, error, 'IBGPlugin', 'getAvailableSurveys', []); -}; - -/** - * Setting an option for all the surveys to show a welcome screen before - * the user starts taking the survey. - * @param {boolean} shouldShowWelcomeScreen A boolean for setting whether the - * welcome screen should show. - * @param {function():void} success - * @param {function(string):void} error - */ -Surveys.setShouldShowSurveysWelcomeScreen = function (shouldShowWelcomeScreen, success, error) { - exec(success, error, 'IBGPlugin', 'setShouldShowSurveysWelcomeScreen', [shouldShowWelcomeScreen]); -}; - -module.exports = Surveys; - -}); diff --git a/sampleApp/platforms/android/app/src/main/java/com/instabug/cordova/plugin/IBGPlugin.java b/sampleApp/platforms/android/app/src/main/java/com/instabug/cordova/plugin/IBGPlugin.java deleted file mode 100644 index e1597e8f..00000000 --- a/sampleApp/platforms/android/app/src/main/java/com/instabug/cordova/plugin/IBGPlugin.java +++ /dev/null @@ -1,1382 +0,0 @@ -package com.instabug.cordova.plugin; - -import android.content.Intent; -import android.graphics.Color; -import android.net.Uri; -import android.os.Handler; -import android.os.Looper; -import android.util.Log; - -import com.instabug.bug.BugReporting; -import com.instabug.bug.invocation.InvocationOption; -import com.instabug.bug.invocation.Option; -import com.instabug.chat.Chats; -import com.instabug.chat.Replies; -import com.instabug.cordova.plugin.util.Util; -import com.instabug.featuresrequest.ActionType; -import com.instabug.featuresrequest.FeatureRequests; -import com.instabug.library.Feature; -import com.instabug.library.Instabug; -import com.instabug.library.OnSdkDismissCallback; -import com.instabug.library.extendedbugreport.ExtendedBugReport; -import com.instabug.library.invocation.InstabugInvocationEvent; -import com.instabug.bug.invocation.InvocationMode; -import com.instabug.library.invocation.OnInvokeCallback; -import com.instabug.library.invocation.util.InstabugVideoRecordingButtonPosition; -import com.instabug.library.logging.InstabugLog; -import com.instabug.library.model.Report; -import com.instabug.library.ui.onboarding.WelcomeMessage; -import com.instabug.library.visualusersteps.State; -import com.instabug.survey.OnDismissCallback; -import com.instabug.survey.OnShowCallback; -import com.instabug.survey.Survey; -import com.instabug.survey.Surveys; - -import org.apache.cordova.CallbackContext; -import org.apache.cordova.CordovaInterface; -import org.apache.cordova.CordovaPlugin; -import org.apache.cordova.CordovaWebView; -import org.apache.cordova.PluginResult.Status; -import org.apache.cordova.PluginResult; -import org.json.JSONArray; -import org.json.JSONException; -import org.json.JSONObject; - -import java.io.File; -import java.lang.Integer; -import java.lang.reflect.InvocationTargetException; -import java.lang.reflect.Method; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.Iterator; -import java.util.List; - -/** - * This plugin initializes Instabug. - */ -public class IBGPlugin extends CordovaPlugin { - - // Reference to intent that start activity - // to initialize Instabug - private Intent activationIntent; - - // Initialization options - private JSONObject options; - - // All possible option keys - private final String[] optionKeys = { "emailRequired", "commentRequired", - "shakingThresholdAndroid", "floatingButtonEdge", "colorTheme", - "floatingButtonOffset", "enableDebug", "enableConsoleLogs", - "enableInstabugLogs", "enableTrackingUserSteps", "enableUserData", - "enableCrashReporting", "enableInAppMessaging", "enableIntroDialog", - "enableConversationSounds", "enablePushNotifications", - "enableSessionProfiler", "welcomeMessageMode" }; - - // Generic error message - private final String errorMsg = "Instabug object must first be activated."; - - /** - * Called after plugin construction and fields have been initialized. - */ - @Override - public void initialize(CordovaInterface cordova, CordovaWebView webView) { - super.initialize(cordova, webView); - - // Initialize intent so that extras can be attached subsequently - activationIntent = new Intent(cordova.getActivity(), com.instabug.cordova.plugin.IBGPluginActivity.class); - - options = new JSONObject(); - } - - /** - * Executes the request sent from JavaScript. - * - * @param action The action to execute. - * @param args The exec() arguments in JSON form. - * @param callbackContext The callback context used when calling back into - * JavaScript. - * @return Whether the action was valid. - */ - @Override - public boolean execute(final String action, JSONArray args, final CallbackContext callbackContext) - throws JSONException { - - if ("activate".equals(action)) { - activate(callbackContext, args); - - } if ("startWithToken".equals(action)) { - activate(callbackContext, args); - - } else if ("setPrimaryColor".equals(action)) { - setPrimaryColor(callbackContext, args.optString(0)); - - } else if ("setUserData".equals(action)) { - setUserData(callbackContext, args.optString(0)); - - } else if ("addFile".equals(action)) { - addFile(callbackContext, args); - - } else if ("addLog".equals(action)) { - addLog(callbackContext, args.optString(0)); - - } else if ("clearLog".equals(action)) { - clearLog(callbackContext); - - } else if ("setInvocationEvents".equals(action)) { - setInvocationEvents(callbackContext, args.optJSONArray(0)); - - } else if ("disable".equals(action)) { - disable(callbackContext); - - } else if ("enable".equals(action)) { - enable(callbackContext); - - } else if ("isEnabled".equals(action)) { - getIsEnabled(callbackContext); - - } else if ("setUserAttribute".equals(action)) { - setUserAttribute(callbackContext, args.optString(0), args.optString(1)); - - } else if ("setDebugEnabled".equals(action)) { - setDebugEnabled(callbackContext, args.optBoolean(0)); - - } else if ("removeUserAttribute".equals(action)) { - removeUserAttribute(callbackContext, args.optString(0)); - - } else if ("setPreInvocationHandler".equals(action)) { - setPreInvocationHandler(callbackContext); - - } else if ("setPreSendingHandler".equals(action)) { - setPreSendingHandler(callbackContext); - - } else if ("setPostInvocationHandler".equals(action)) { - setPostInvocationHandler(callbackContext); - - } else if ("didDismissSurveyHandler".equals(action)) { - didDismissSurveyHandler(callbackContext); - - } else if ("willShowSurveyHandler".equals(action)) { - willShowSurveyHandler(callbackContext); - - } else if ("identifyUserWithEmail".equals(action)) { - identifyUserWithEmail(callbackContext, args.optString(0), args.optString(1)); - - } else if ("logOut".equals(action)) { - logOut(callbackContext); - - } else if ("getAllUserAttributes".equals(action)) { - getAllUserAttributes(callbackContext); - - } else if ("getUserAttribute".equals(action)) { - getUserAttribute(callbackContext, args.optString(0)); - - } else if ("showSurveyWithToken".equals(action)) { - showSurveyWithToken(callbackContext, args.optString(0)); - - } else if ("hasRespondedToSurveyWithToken".equals(action)) { - hasRespondedToSurveyWithToken(callbackContext, args.optString(0)); - - } else if ("setVideoRecordingFloatingButtonPosition".equals(action)) { - setVideoRecordingFloatingButtonPosition(callbackContext, args.optString(0)); - - } else if ("setViewHierarchyEnabled".equals(action)) { - setViewHierarchyEnabled(callbackContext, args.optBoolean(0)); - - } else if ("setAutoScreenRecordingMaxDuration".equals(action)) { - setAutoScreenRecordingMaxDuration(callbackContext, args.optInt(0)); - - } else if ("setExtendedBugReportMode".equals(action)) { - setExtendedBugReportMode(callbackContext, args.optString(0)); - - } else if ("setReproStepsMode".equals(action)) { - setReproStepsMode(callbackContext, args.optString(0)); - - } else if ("setThresholdForReshowingSurveyAfterDismiss".equals(action)) { - setThresholdForReshowingSurveyAfterDismiss(callbackContext, args.optInt(0), args.optInt(1)); - - } else if ("showFeatureRequests".equals(action)) { - showFeatureRequests(callbackContext); - - } else if ("setShouldShowSurveysWelcomeScreen".equals(action)) { - setShouldShowSurveysWelcomeScreen(callbackContext, args.optBoolean(0)); - - } else if ("setInvocationOptions".equals(action)) { - setInvocationOptions(callbackContext, args.optJSONArray(0)); - - } else if ("showSurveyIfAvailable".equals(action)) { - showSurveyIfAvailable(callbackContext); - - } else if ("getAvailableSurveys".equals(action)) { - getAvailableSurveys(callbackContext); - - } else if ("setAutoShowingSurveysEnabled".equals(action)) { - setAutoShowingSurveysEnabled(callbackContext, args.optBoolean(0)); - - } else if ("setShakingThreshold".equals(action)) { - setShakingThreshold(callbackContext, args.optInt(0)); - - } else if ("setEmailFieldRequiredForFeatureRequests".equals(action)) { - setEmailFieldRequiredForFeatureRequests(callbackContext, args.optBoolean(0), args.optJSONArray(1)); - } else if ("showWelcomeMessage".equals(action)) { - showWelcomeMessage(callbackContext, args.optString(0)); - } else if ("show".equals(action)) { - show(callbackContext); - } else if ("setReportTypes".equals(action)) { - setReportTypes(callbackContext, args.optJSONArray(0)); - } else if ("showBugReportingWithReportTypeAndOptions".equals(action)) { - showBugReportingWithReportTypeAndOptions(callbackContext, args.getString(0), args.optJSONArray(1)); - } else if ("setBugReportingEnabled".equals(action)) { - setBugReportingEnabled(callbackContext, args.getBoolean(0)); - } else if ("setChatsEnabled".equals(action)) { - setChatsEnabled(callbackContext, args.getBoolean(0)); - } else if ("setRepliesEnabled".equals(action)) { - setRepliesEnabled(callbackContext, args.getBoolean(0)); - } else if ("showChats".equals(action)) { - showChats(callbackContext); - } else if ("showReplies".equals(action)) { - showReplies(callbackContext); - } else if ("hasChats".equals(action)) { - hasChats(callbackContext); - } else if ("getUnreadRepliesCount".equals(action)) { - getUnreadRepliesCount(callbackContext); - } else { - // Method not found. - return false; - } - return true; - } - - private final void show(final CallbackContext callbackContext) { - try { - Instabug.show(); - callbackContext.success(); - } catch (Exception e) { - callbackContext.error(e.getMessage()); - } - } - - private void getUnreadRepliesCount(CallbackContext callbackContext) { - callbackContext.success(Replies.getUnreadRepliesCount()); - } - - private final void setBugReportingEnabled(CallbackContext callbackContext, boolean isEnabled) { - if (isEnabled) { - BugReporting.setState(Feature.State.ENABLED); - } else { - BugReporting.setState(Feature.State.DISABLED); - } - callbackContext.success(); - } - - private final void setChatsEnabled(CallbackContext callbackContext, boolean isEnabled) { - if (isEnabled) { - Chats.setState(Feature.State.ENABLED); - } else { - Chats.setState(Feature.State.DISABLED); - } - callbackContext.success(); - } - - private final void setRepliesEnabled(CallbackContext callbackContext, boolean isEnabled) { - if (isEnabled) { - Replies.setState(Feature.State.ENABLED); - } else { - Replies.setState(Feature.State.DISABLED); - } - callbackContext.success(); - } - - private final void showChats(CallbackContext callbackContext) { - Chats.show(); - callbackContext.success(); - } - - private final void showReplies(CallbackContext callbackContext) { - Replies.show(); - callbackContext.success(); - } - - private final void hasChats(CallbackContext callbackContext) { - if (Replies.hasChats()) { - callbackContext.success(); - } - } - - private final void setReportTypes(final CallbackContext callbackContext, final JSONArray types) { - final String[] stringArrayOfReportTypes = toStringArray(types); - if (stringArrayOfReportTypes.length != 0) { - new Handler(Looper.getMainLooper()).post(new Runnable() { - @Override - public void run() { - try { - BugReporting.setReportTypes(Util.parseReportTypes(stringArrayOfReportTypes)); - callbackContext.success(); - } catch (Exception e) { - callbackContext.error(e.getMessage()); - } - } - }); - } - } - - private final void showBugReportingWithReportTypeAndOptions(CallbackContext callbackContext, String reportType, JSONArray options) { - boolean error = false; - if (reportType.equals("bug")) { - BugReporting.show(BugReporting.ReportType.BUG); - } else if (reportType.equals("feedback")) { - BugReporting.show(BugReporting.ReportType.FEEDBACK); - } else if (reportType.equals("question")) { - BugReporting.show(BugReporting.ReportType.QUESTION); - } else { - error = true; - callbackContext.error("Invalid report type " + reportType); - } - if (!error) { - if (options.length() > 0) { - setInvocationOptions(callbackContext, options); - } else { - callbackContext.success(); - } - } - - } - - /** - * Creates intent to initialize Instabug. - * - * @param callbackContext Used when calling back into JavaScript - */ - private void activate(final CallbackContext callbackContext, JSONArray args) { - try { - activationIntent.putExtra("token", args.optJSONObject(0).getString("token")); - } catch (JSONException e) { - callbackContext.error("An application token must be provided."); - return; - } - - try { - activationIntent.putExtra("invocation", args.getString(1)); - } catch (JSONException e) { - callbackContext.error("An invocation event must be provided."); - return; - } - - this.options = args.optJSONObject(2); - if (options != null) { - // Attach extras - applyOptions(); - } - try { - Method method = Util.getMethod(Class.forName("com.instabug.library.util.InstabugDeprecationLogger"), "setBaseUrl", String.class); - if (method != null) { - method.invoke(null, "https://docs.instabug.com/docs/cordova-sdk-migration-guide"); - } - } catch (ClassNotFoundException e) { - e.printStackTrace(); - } catch (IllegalAccessException e) { - e.printStackTrace(); - } catch (InvocationTargetException e) { - e.printStackTrace(); - } - cordova.getActivity().startActivity(activationIntent); - - callbackContext.success(); - } - - /** - * Sets the invocation options used when invoke Instabug SDK - * - * @param options the invocation options array - */ - public void setInvocationOptions(final CallbackContext callbackContext, JSONArray options) { - String[] stringArrayOfInvocationOptions = toStringArray(options); - if(stringArrayOfInvocationOptions.length != 0) { - try { - ArrayList invocationOptions = parseInvocationOptions(stringArrayOfInvocationOptions); - BugReporting.setOptions(convertIntegers(invocationOptions)); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } else callbackContext.error("A valid prompt option type must be provided."); - } - - /** - * Sets whether users are required to enter an email address or not when doing a certain action `IBGAction`. - * - * @param isRequired A boolean to indicate whether email field is required or not. - * - * @param actionTypes Action types values - */ - public void setEmailFieldRequiredForFeatureRequests(final CallbackContext callbackContext, boolean isRequired, JSONArray actionTypes) { - String[] stringArrayOfActionTypes = toStringArray(actionTypes); - if(stringArrayOfActionTypes.length != 0) { - try { - ArrayList actionTypesArray = parseActionTypes(stringArrayOfActionTypes); - FeatureRequests.setEmailFieldRequired(isRequired, convertIntegers(actionTypesArray)); - - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } else callbackContext.error("A valid action type must be provided."); - } - - - /** - * Sets a block of code to be executed just before the SDK's UI is presented. - * - * @param callbackContext - * Used when calling back into JavaScript - */ - private void setPreInvocationHandler(final CallbackContext callbackContext) { - try { - BugReporting.setOnInvokeCallback(new OnInvokeCallback() { - @Override - public void onInvoke() { - PluginResult result = new PluginResult(PluginResult.Status.OK); - result.setKeepCallback(true); - callbackContext.sendPluginResult(result); - } - }); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } - - /** - * Sets a block of code to be executed just before the SDK's UI is presented. - * - * @param callbackContext - * Used when calling back into JavaScript - */ - private void setPreSendingHandler(final CallbackContext callbackContext) { - try { - Instabug.onReportSubmitHandler(new Report.OnReportCreatedListener() { - @Override - public void onReportCreated(Report report) { - JSONObject reportParam = new JSONObject(); - try { - reportParam.put("tagsArray", report.getTags()); - reportParam.put("consoleLogs", report.getConsoleLog()); - reportParam.put("userData", report.getUserData()); - reportParam.put("userAttributes", report.getUserAttributes()); - reportParam.put("fileAttachments", report.getFileAttachments()); - } catch (JSONException e) { - e.printStackTrace(); - } - PluginResult result = new PluginResult(PluginResult.Status.OK, reportParam); - result.setKeepCallback(true); - callbackContext.sendPluginResult(result); - } - }); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } - - /** - * Sets a block of code to be executed just before the survey's UI is presented. - * - * @param callbackContext - * Used when calling back into JavaScript - */ - private void willShowSurveyHandler(final CallbackContext callbackContext) { - try { - Surveys.setOnShowCallback(new OnShowCallback() { - @Override - public void onShow() { - PluginResult result = new PluginResult(PluginResult.Status.OK); - result.setKeepCallback(true); - callbackContext.sendPluginResult(result); - } - }); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } - - /** - * Sets a block of code to be executed right after the survey's UI is dismissed. - * - * @param callbackContext - * Used when calling back into JavaScript - */ - private void didDismissSurveyHandler(final CallbackContext callbackContext) { - try { - Surveys.setOnDismissCallback(new OnDismissCallback() { - @Override - public void onDismiss() { - PluginResult result = new PluginResult(PluginResult.Status.OK); - result.setKeepCallback(true); - callbackContext.sendPluginResult(result); - } - }); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } - - /** - * Sets a block of code to be executed right after the SDK's UI is dismissed. - * - * @param callbackContext - * Used when calling back into JavaScript - */ - private void setPostInvocationHandler(final CallbackContext callbackContext) { - try { - BugReporting.setOnDismissCallback(new OnSdkDismissCallback() { - @Override - public void call(DismissType dismissType, ReportType reportType) { - JSONObject parameters = new JSONObject(); - try { - parameters.put("dismissType", dismissType.toString()); - parameters.put("reportType", reportType.toString()); - } catch (JSONException e) { - e.printStackTrace(); - } - PluginResult result = new PluginResult(PluginResult.Status.OK, parameters); - result.setKeepCallback(true); - callbackContext.sendPluginResult(result); - } - }); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } - - /** - * Sets a block of code to be executed right after the SDK's UI is dismissed. - * - * @param callbackContext - * Used when calling back into JavaScript - */ - private void getAvailableSurveys(final CallbackContext callbackContext) { - try { - JSONArray surveysArray = toJson(Surveys.getAvailableSurveys()); - PluginResult result = new PluginResult(Status.OK, surveysArray); - callbackContext.sendPluginResult(result); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } - - /** - * Set the primary color that the SDK will use to tint certain UI - * elements in the SDK. - * Set the primary color that the SDK will use to tint certain UI elements in - * the SDK. - * - * @param callbackContext Used when calling back into JavaScript - * @param colorString The value of the primary color - */ - private void setPrimaryColor(final CallbackContext callbackContext, final String colorString) { - - if (colorString != null) { - try { - final int colorInt = Color.parseColor(colorString); - new Handler(Looper.getMainLooper()).post(new Runnable() { - @Override - public void run() { - Instabug.setPrimaryColor(colorInt); - } - }); - - - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - - } else - callbackContext.error("A colorInt must be provided."); - } - - /** - * Sets the threshold value of the shake gesture on the device - * - * @param callbackContext - * Used when calling back into JavaScript - * @param shakingThreshold - * The value of the primary color - */ - private void setShakingThreshold(final CallbackContext callbackContext, int shakingThreshold) { - try { - BugReporting.setShakingThreshold(shakingThreshold); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } - - /** - * Set the user identity. - * Instabug will pre-fill the user email in reports. - * Set the user identity. Instabug will pre-fill the user email in reports. - * - * @param callbackContext Used when calling back into JavaScript - * @param email User's default email - * @param name Username - * - */ - private void identifyUserWithEmail(final CallbackContext callbackContext, String email, String name) { - if (name != null && name.length() > 0 && email != null && email.length() > 0) { - try { - Instabug.identifyUser(name, email); - callbackContext.success(); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } else - callbackContext.error("A name and email must be provided."); - } - - /** - * Logout User - * - * @param callbackContext Used when calling back into JavaScript - */ - private void logOut(final CallbackContext callbackContext) { - try { - Instabug.logoutUser(); - callbackContext.success(); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } - - /** - * Adds specific user data that you need to reports. - * - * @param callbackContext Used when calling back into JavaScript - * @param data String representing user data. - */ - private void setUserData(final CallbackContext callbackContext, String data) { - if (data != null && data.length() > 0) { - try { - Instabug.setUserData(data); - callbackContext.success(); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } else - callbackContext.error("User data must be provided."); - } - - /** - * Shows survey with a specific token. Does nothing if there are no available - * surveys with that specific token. Answered and cancelled surveys won't show - * up again. - * - * @param surveyToken - A String with a survey token. - * - */ - private void showSurveyWithToken(final CallbackContext callbackContext, String surveyToken) { - if (surveyToken != null && surveyToken.length() > 0) { - try { - Surveys.showSurvey(surveyToken); - callbackContext.success(); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } else - callbackContext.error("Survey token must be provided."); - } - - /** - * Uploads the specified file along with upcoming reports. - * - * @param callbackContext Used when calling back into JavaScript - * @param args URI of desired file to be uploaded - */ - private void addFile(final CallbackContext callbackContext, JSONArray args) { - String fileUri = null; - - String sFileUri = args.optString(0); - if (sFileUri != null && sFileUri.length() > 0) { - fileUri = sFileUri; - } else { - // File location may be different across platforms - // and can be specified as such - JSONObject fileUrisForPlatforms = args.optJSONObject(0); - - if (fileUrisForPlatforms != null) { - fileUri = fileUrisForPlatforms.optString("android"); - } - } - - if (fileUri != null && fileUri.length() > 0) { - - Uri uri = Uri.parse(fileUri); - File file = new File(uri.getPath()); - - if (file.exists()) { - // If the file doesn't exist at the path specified, - // we won't be able to notify the containing app when - // Instabug API call fails, so we check ourselves. - try { - - Instabug.addFileAttachment(uri, file.getName()); - callbackContext.success(); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } else - callbackContext.error("File " + fileUri + " does not exist."); - - } else - callbackContext.error("A local file URI must be provided."); - } - - /** - * Appends a log message to the Instabug internal log that is then sent along - * the next uploaded report. All log messages are timestamped. Logs aren't - * cleared per single application run. If you wish to reset the logs, use - * clearLog(). - * - * @param callbackContext Used when calling back into JavaScript - * @param log Log message - */ - private void addLog(final CallbackContext callbackContext, String log) { - if (log != null && log.length() > 0) { - try { - InstabugLog.d(log); - callbackContext.success(); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } else - callbackContext.error("A log must be provided."); - } - - /** - * Clears Instabug internal log. - * - * @param callbackContext Used when calling back into JavaScript - */ - private void clearLog(final CallbackContext callbackContext) { - try { - InstabugLog.clearLogs(); - callbackContext.success(); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } - - /** - * Change the event used to invoke Instabug SDK. - * - * @param callbackContext - * Used when calling back into JavaScript - * @param events - * Event to be used to invoke SDK. - */ - private void setInvocationEvents(final CallbackContext callbackContext, JSONArray events) { - String[] stringArrayOfEvents = toStringArray(events); - ArrayList invocationEvents = new ArrayList(); - if(stringArrayOfEvents.length != 0) { - try { - for (String event : stringArrayOfEvents) { - InstabugInvocationEvent iEvent = parseInvocationEvent(event); - if(iEvent != null) { - switch (iEvent) { - case SHAKE: - invocationEvents.add(InstabugInvocationEvent.SHAKE); - break; - case FLOATING_BUTTON: - invocationEvents.add(InstabugInvocationEvent.FLOATING_BUTTON); - break; - case TWO_FINGER_SWIPE_LEFT: - invocationEvents.add(InstabugInvocationEvent.TWO_FINGER_SWIPE_LEFT); - break; - case SCREENSHOT: - invocationEvents.add(InstabugInvocationEvent.SCREENSHOT); - break; - case NONE: - invocationEvents.add(InstabugInvocationEvent.NONE); - break; - default: - invocationEvents.add(InstabugInvocationEvent.SHAKE); - break; - } - } else { - callbackContext.error("A valid event type must be provided."); - } - } - BugReporting.setInvocationEvents(invocationEvents.toArray(new InstabugInvocationEvent[0])); - } catch (IllegalStateException e) { - callbackContext.error(errorMsg); - } - } else callbackContext.error("A valid event type must be provided."); - } - - /** - * Convenience method to parse string array of invocation options into an Arraylist of integers - * - * @param invocationOptionsStringArray - * string array of invocation options - */ - private ArrayList parseInvocationOptions(String[] invocationOptionsStringArray) { - ArrayList invocationOptions = new ArrayList(); - if(invocationOptionsStringArray.length != 0) { - for (String option : invocationOptionsStringArray) { - int iOption = parseInvocationOption(option); - if (iOption != -1) { - invocationOptions.add(iOption); - } - } - } - return invocationOptions; - } - - /** - * Convenience method to parse string array of invocation options into an Arraylist of integers - * - * @param actionTypesStringArray - * string array of invocation options - */ - private ArrayList parseActionTypes(String[] actionTypesStringArray) { - ArrayList actionTypes = new ArrayList(); - if(actionTypesStringArray.length != 0) { - for (String actionType : actionTypesStringArray) { - int aType = parseActionType(actionType); - if (aType != -1) { - actionTypes.add(aType); - } - } - } - return actionTypes; - } - - /** - * Convenience method to convert from JSON array to string array. - * - * @param array - * JSONArray to be converted to string. - */ - private static String[] toStringArray(JSONArray array) { - if(array==null) - return null; - - String[] arr=new String[array.length()]; - for(int i=0; i 0) { - activationIntent.putExtra(key, val); - } - } - - /** - * Convenience method for converting string to InstabugInvocationEvent. - * - * @param event String shortcode for event - */ - public static InstabugInvocationEvent parseInvocationEvent(String event) { - if ("shake".equals(event)) { - return InstabugInvocationEvent.SHAKE; - } else if ("button".equals(event)) { - return InstabugInvocationEvent.FLOATING_BUTTON; - } else if ("swipe".equals(event)) { - return InstabugInvocationEvent.TWO_FINGER_SWIPE_LEFT; - } else if ("screenshot".equals(event)) { - return InstabugInvocationEvent.SCREENSHOT; - } else if ("none".equals(event)) { - return InstabugInvocationEvent.NONE; - } else - return null; - } - - /** - * Convenience method for converting string to InvocationOption. - * - * @param invocationOption - * String shortcode for prompt option - */ - public static int parseInvocationOption(String invocationOption) { - if ("emailFieldHidden".equals(invocationOption)) { - return Option.EMAIL_FIELD_HIDDEN; - } else if ("emailFieldOptional".equals(invocationOption)) { - return Option.EMAIL_FIELD_OPTIONAL; - } else if ("commentFieldRequired".equals(invocationOption)) { - return Option.COMMENT_FIELD_REQUIRED; - } else if ("disablePostSendingDialog".equals(invocationOption)) { - return Option.DISABLE_POST_SENDING_DIALOG; - } else return -1; - } - - /** - * Convenience method for converting string to InvocationOption. - * - * @param actionType - * String shortcode for prompt option - */ - public static int parseActionType(String actionType) { - if ("requestNewFeature".equals(actionType)) { - return ActionType.REQUEST_NEW_FEATURE; - } else if ("addCommentToFeature".equals(actionType)) { - return ActionType.ADD_COMMENT_TO_FEATURE; - } else return -1; - } - - /** - * Convenience method for converting string to InstabugInvocationMode. - * - * @param mode String shortcode for mode - */ - public static InvocationMode parseInvocationMode(String mode) { - if ("chat".equals(mode)) { - return InvocationMode.NEW_CHAT; - } else if ("chats".equals(mode)) { - return InvocationMode.CHATS_LIST; - } else if ("bug".equals(mode)) { - return InvocationMode.NEW_BUG; - } else if ("feedback".equals(mode)) { - return InvocationMode.NEW_FEEDBACK; - } else if ("options".equals(mode)) { - return InvocationMode.PROMPT_OPTION; - } else return null; - } - - /** - * Convenience method for converting string to - * InstabugVideoRecordingButtonCorner. - * - * @param position String shortcode for position - */ - public static InstabugVideoRecordingButtonPosition parseInstabugVideoRecordingButtonCorner(String position) { - if ("topLeft".equals(position)) { - return InstabugVideoRecordingButtonPosition.TOP_LEFT; - } else if ("topRight".equals(position)) { - return InstabugVideoRecordingButtonPosition.TOP_RIGHT; - } else if ("bottomLeft".equals(position)) { - return InstabugVideoRecordingButtonPosition.BOTTOM_LEFT; - } else if ("bottomRight".equals(position)) { - return InstabugVideoRecordingButtonPosition.BOTTOM_RIGHT; - } else return null; - } - - - /** - * Convenience method to convert a list of integers into an int array - * - * @param integers - * list of integers to be converted - */ - public static int[] convertIntegers(List integers) - { - int[] ret = new int[integers.size()]; - Iterator iterator = integers.iterator(); - for (int i = 0; i < ret.length; i++) - { - ret[i] = iterator.next().intValue(); - } - return ret; - } - - /** - * Convenience method to convert from a list of Surveys to a JSON array - * - * @param list - * List of Surveys to be converted to JSON array - */ - public static JSONArray toJson(List list) { - JSONArray jsonArray = new JSONArray(); - try{ - for (Survey obj : list) { - JSONObject object = new JSONObject(); - object.put("title", obj.getTitle()); - jsonArray.put(object); - } - } catch (JSONException e) { - e.printStackTrace(); - } - return jsonArray; - } -} diff --git a/sampleApp/platforms/android/app/src/main/java/com/instabug/cordova/plugin/IBGPluginActivity.java b/sampleApp/platforms/android/app/src/main/java/com/instabug/cordova/plugin/IBGPluginActivity.java deleted file mode 100644 index 7ab6b63b..00000000 --- a/sampleApp/platforms/android/app/src/main/java/com/instabug/cordova/plugin/IBGPluginActivity.java +++ /dev/null @@ -1,270 +0,0 @@ -package com.instabug.cordova.plugin; - -import android.os.Bundle; -import android.util.Log; -import android.os.Handler; -import android.os.Looper; - -import com.instabug.bug.BugReporting; -import com.instabug.library.Feature; -import com.instabug.library.Instabug; -import com.instabug.library.InstabugColorTheme; -import com.instabug.library.bugreporting.model.Bug; -import com.instabug.library.invocation.InstabugInvocationEvent; -import com.instabug.library.invocation.util.InstabugFloatingButtonEdge; -import com.instabug.library.ui.onboarding.WelcomeMessage; - -import org.apache.cordova.CordovaActivity; - -import static com.instabug.cordova.plugin.IBGPlugin.parseInvocationEvent; -import static com.instabug.library.invocation.InstabugInvocationEvent.FLOATING_BUTTON; -import static com.instabug.library.invocation.InstabugInvocationEvent.NONE; -import static com.instabug.library.invocation.InstabugInvocationEvent.SCREENSHOT; -import static com.instabug.library.invocation.InstabugInvocationEvent.SHAKE; -import static com.instabug.library.invocation.InstabugInvocationEvent.TWO_FINGER_SWIPE_LEFT; - -public class IBGPluginActivity extends CordovaActivity -{ - // Reference to builder - private Instabug.Builder builder; - - /** - * Called when activity starts. Initializes Instabug. - * - * @param savedInstanceState - * Saved instance state - */ - @Override - public void onCreate(Bundle savedInstanceState) { - super.onCreate(savedInstanceState); - - // Retrieve initialization options - Bundle options = getIntent().getExtras(); - - InstabugInvocationEvent invocationEvent = SHAKE; - String token = options.getString("token"); - invocationEvent = parseInvocationEvent(options.getString("invocation")); - - - new Instabug.Builder( - this.getApplication(), - token).build(); - - if (invocationEvent != null) - BugReporting.setInvocationEvents(invocationEvent); - - - // Apply initialization options - if(options != null) { - setBuilderOptions(options); - } - // Finish activity (required for no-display theme) - IBGPluginActivity.this.finish(); - } - - /** - * Convenience method for parsing and setting the - * edge on which to float the button. - * @param edge - * String representation of edge - */ - private void setFloatingButtonEdge(final String edge) { - new Handler(Looper.getMainLooper()).post(new Runnable() { - @Override - public void run() { - if (edge != null && edge.equals("left")) - BugReporting.setFloatingButtonEdge(InstabugFloatingButtonEdge.LEFT); - else - BugReporting.setFloatingButtonEdge(InstabugFloatingButtonEdge.RIGHT); - } - }); - } - - /** - * Convenience method for parsing and setting the - * offset from the top for the floating button. - * @param offset - * String representation of int offset - */ - private void setFloatingButtonOffset(final String offset) { - new Handler(Looper.getMainLooper()).post(new Runnable() { - @Override - public void run() { - if (offset != null) - BugReporting.setFloatingButtonOffset(Integer.parseInt(offset)); - } - }); - } - - /** - * Convenience method for parsing and setting - * whether the debug logs from the Instabug SDK - * are should be printed to LogCat. - * - * @param enabled - * String representation of boolean enabled - */ - private void setDebugEnabled(String enabled) { - if (enabled != null && enabled.length() > 0) { - Instabug.setDebugEnabled(Boolean.parseBoolean(enabled)); - } - } - - /** - * Convenience method for parsing and setting - * whether the console logs should be added to - * reports. - * - * @param enabled - * String representation of boolean enabled - */ - private void setConsoleLogsEnabled(String enabled) { - - } - - /** - * Convenience method for parsing and setting - * whether the debug logs from the Instabug SDK - * should be added to reports. - * - * @param enabled - * String representation of boolean enabled - */ - private void setInstabugLogsEnabled(String enabled) { - - } - - /** - * Convenience method for parsing and setting - * whether tracking user steps should be enabled - * by the SDK. - * - * @param enabled - * String representation of boolean enabled - */ - private void setTrackingUserStepsEnabled(String enabled) { - - } - - /** - * Convenience method for parsing and setting - * whether crash reporting should be enabled - * by the SDK. - * - * @param enabled - * String representation of boolean enabled - */ - private void setCrashReportingEnabled(String enabled) { - - } - - /** - * Convenience method for parsing and setting - * whether in-app messaging should be enabled - * by the SDK. - * - * @param enabled - * String representation of boolean enabled - */ - private void setInAppMessagingEnabled(String enabled) { - - } - - /** - * Convenience method for parsing and setting - * whether push notifications should be enabled - * by the SDK. - * - * @param enabled - * String representation of boolean enabled - */ - private void setPushNotificationsEnabled(String enabled) { - - } - - /** - * Convenience method for parsing and setting - * whether user data should be added to reports. - * - * @param enabled - * String representation of boolean enabled - */ - private void setUserDataEnabled(String enabled) { - - } - - /** - * Convenience method for parsing and setting - * whether session profiler should be enabled or not. - * - * @param enabled - * String representation of boolean enabled - */ - private void setSessionProfilerEnabled(String enabled) { - if (enabled != null && enabled.length() > 0) { - if(Boolean.parseBoolean(enabled)) { - Instabug.setSessionProfilerState(Feature.State.ENABLED); - } else { - Instabug.setSessionProfilerState(Feature.State.DISABLED); - } - } - } - - /** - * Convenience method for parsing and setting the welcome message mode - * - * @param welcomeMessageMode - * String representation of welcomeMessageMode - */ - private void setWelcomeMessageMode(String welcomeMessageMode) { - if (welcomeMessageMode != null && welcomeMessageMode.length() > 0) { - if (welcomeMessageMode.equals("welcomeMessageModeLive")) { - Instabug.setWelcomeMessageState(WelcomeMessage.State.LIVE); - } else if (welcomeMessageMode.equals("welcomeMessageModeBeta")) { - Instabug.setWelcomeMessageState(WelcomeMessage.State.BETA); - } else if (welcomeMessageMode.equals("welcomeMessageModeDisabled")) { - Instabug.setWelcomeMessageState(WelcomeMessage.State.DISABLED); - } else { - Instabug.setWelcomeMessageState(WelcomeMessage.State.LIVE); - } - } - } - - /** - * Convenience method for parsing and setting - * whether the desired color theme for the SDK - * invocation. - * - * @param theme - * String representation of InstabugColorTheme - */ - private void setColorTheme(String theme) { - if ("dark".equals(theme)) { - Instabug.setColorTheme(InstabugColorTheme.InstabugColorThemeDark); - } else if ("light".equals(theme)) { - Instabug.setColorTheme(InstabugColorTheme.InstabugColorThemeLight); - } - } - - /** - * Wrapper method for parsing and setting all - * provided options. - * - * @param opts - * JSONObject representation of options - */ - private void setBuilderOptions(Bundle opts) { - setFloatingButtonEdge(opts.getString("floatingButtonEdge")); - setFloatingButtonOffset(opts.getString("floatingButtonOffset")); - setConsoleLogsEnabled(opts.getString("enableConsoleLogs")); - setInstabugLogsEnabled(opts.getString("enableInstabugLogs")); - setTrackingUserStepsEnabled(opts.getString("enableTrackingUserSteps")); - setCrashReportingEnabled(opts.getString("enableCrashReporting")); - setInAppMessagingEnabled(opts.getString("enableInAppMessaging")); - setPushNotificationsEnabled(opts.getString("enablePushNotifications")); - setUserDataEnabled(opts.getString("enableUserData")); - setColorTheme(opts.getString("colorTheme")); - setSessionProfilerEnabled(opts.getString("enableSessionProfiler")); - setWelcomeMessageMode(opts.getString("welcomeMessageMode")); - } -} diff --git a/sampleApp/platforms/android/app/src/main/java/com/instabug/cordova/plugin/util/Util.java b/sampleApp/platforms/android/app/src/main/java/com/instabug/cordova/plugin/util/Util.java deleted file mode 100644 index dc7e6748..00000000 --- a/sampleApp/platforms/android/app/src/main/java/com/instabug/cordova/plugin/util/Util.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.instabug.cordova.plugin.util; - - -import com.instabug.bug.BugReporting; - -import java.lang.reflect.Method; - -public class Util { - - public static int[] parseReportTypes(String[] stringTypeArray) throws Exception{ - int [] parsedArray = new int[stringTypeArray.length]; - for (int i = 0; i < stringTypeArray.length; i++) { - String type = stringTypeArray[i]; - if (type.equals("bug")) { - parsedArray[i] = (int) BugReporting.ReportType.BUG; - } else if (type.equals("feedback")) { - parsedArray[i] = BugReporting.ReportType.FEEDBACK; - } else { - throw new Exception("Invalid report type " + type); - } - } - - return parsedArray; - } - - public static Method getMethod(Class clazz, String methodName, Class... parameterType) { - final Method[] methods = clazz.getDeclaredMethods(); - - for (Method method : methods) { - if (method.getName().equals(methodName) && method.getParameterTypes().length == - parameterType.length) { - for (int i = 0; i < 2; i++) { - if (method.getParameterTypes()[i] == parameterType[i]) { - if (i == method.getParameterTypes().length - 1) { - method.setAccessible(true); - return method; - } - } else { - break; - } - } - } - } - return null; - } -} diff --git a/sampleApp/platforms/android/app/src/main/res/xml/config.xml b/sampleApp/platforms/android/app/src/main/res/xml/config.xml index 592046e3..85163faa 100644 --- a/sampleApp/platforms/android/app/src/main/res/xml/config.xml +++ b/sampleApp/platforms/android/app/src/main/res/xml/config.xml @@ -4,10 +4,6 @@ - - - - HelloCordova A sample Apache Cordova application that responds to the deviceready event. diff --git a/sampleApp/platforms/android/build.gradle b/sampleApp/platforms/android/build.gradle index abfb666a..ff74e188 100644 --- a/sampleApp/platforms/android/build.gradle +++ b/sampleApp/platforms/android/build.gradle @@ -37,6 +37,7 @@ allprojects { google() jcenter() + maven { url "https://sdks.instabug.com/nexus/repository/instabug-cp" } diff --git a/sampleApp/platforms/android/gradle/wrapper/gradle-wrapper.jar b/sampleApp/platforms/android/gradle/wrapper/gradle-wrapper.jar deleted file mode 100644 index 5c2d1cf0..00000000 Binary files a/sampleApp/platforms/android/gradle/wrapper/gradle-wrapper.jar and /dev/null differ diff --git a/sampleApp/platforms/android/gradle/wrapper/gradle-wrapper.properties b/sampleApp/platforms/android/gradle/wrapper/gradle-wrapper.properties deleted file mode 100644 index b37a6e7c..00000000 --- a/sampleApp/platforms/android/gradle/wrapper/gradle-wrapper.properties +++ /dev/null @@ -1,6 +0,0 @@ -#Fri Sep 06 19:18:41 EET 2019 -distributionBase=GRADLE_USER_HOME -distributionPath=wrapper/dists -zipStoreBase=GRADLE_USER_HOME -zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.3-all.zip diff --git a/sampleApp/platforms/android/gradlew b/sampleApp/platforms/android/gradlew deleted file mode 100644 index b0d6d0ab..00000000 --- a/sampleApp/platforms/android/gradlew +++ /dev/null @@ -1,188 +0,0 @@ -#!/usr/bin/env sh - -# -# Copyright 2015 the original author or authors. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >/dev/null -APP_HOME="`pwd -P`" -cd "$SAVED" >/dev/null - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn () { - echo "$*" -} - -die () { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -nonstop=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; - NONSTOP* ) - nonstop=true - ;; -esac - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. - -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin, switch paths to Windows format before running java -if $cygwin ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - JAVACMD=`cygpath --unix "$JAVACMD"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=$((i+1)) - done - case $i in - (0) set -- ;; - (1) set -- "$args0" ;; - (2) set -- "$args0" "$args1" ;; - (3) set -- "$args0" "$args1" "$args2" ;; - (4) set -- "$args0" "$args1" "$args2" "$args3" ;; - (5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - (6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - (7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - (8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - (9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Escape application args -save () { - for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done - echo " " -} -APP_ARGS=$(save "$@") - -# Collect all arguments for the java command, following the shell quoting and substitution rules -eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" - -# by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong -if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then - cd "$(dirname "$0")" -fi - -exec "$JAVACMD" "$@" diff --git a/sampleApp/platforms/android/gradlew.bat b/sampleApp/platforms/android/gradlew.bat deleted file mode 100644 index 15e1ee37..00000000 --- a/sampleApp/platforms/android/gradlew.bat +++ /dev/null @@ -1,100 +0,0 @@ -@rem -@rem Copyright 2015 the original author or authors. -@rem -@rem Licensed under the Apache License, Version 2.0 (the "License"); -@rem you may not use this file except in compliance with the License. -@rem You may obtain a copy of the License at -@rem -@rem http://www.apache.org/licenses/LICENSE-2.0 -@rem -@rem Unless required by applicable law or agreed to in writing, software -@rem distributed under the License is distributed on an "AS IS" BASIS, -@rem WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -@rem See the License for the specific language governing permissions and -@rem limitations under the License. -@rem - -@if "%DEBUG%" == "" @echo off -@rem ########################################################################## -@rem -@rem Gradle startup script for Windows -@rem -@rem ########################################################################## - -@rem Set local scope for the variables with windows NT shell -if "%OS%"=="Windows_NT" setlocal - -set DIRNAME=%~dp0 -if "%DIRNAME%" == "" set DIRNAME=. -set APP_BASE_NAME=%~n0 -set APP_HOME=%DIRNAME% - -@rem Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -set DEFAULT_JVM_OPTS="-Xmx64m" "-Xms64m" - -@rem Find java.exe -if defined JAVA_HOME goto findJavaFromJavaHome - -set JAVA_EXE=java.exe -%JAVA_EXE% -version >NUL 2>&1 -if "%ERRORLEVEL%" == "0" goto init - -echo. -echo ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:findJavaFromJavaHome -set JAVA_HOME=%JAVA_HOME:"=% -set JAVA_EXE=%JAVA_HOME%/bin/java.exe - -if exist "%JAVA_EXE%" goto init - -echo. -echo ERROR: JAVA_HOME is set to an invalid directory: %JAVA_HOME% -echo. -echo Please set the JAVA_HOME variable in your environment to match the -echo location of your Java installation. - -goto fail - -:init -@rem Get command-line arguments, handling Windows variants - -if not "%OS%" == "Windows_NT" goto win9xME_args - -:win9xME_args -@rem Slurp the command line arguments. -set CMD_LINE_ARGS= -set _SKIP=2 - -:win9xME_args_slurp -if "x%~1" == "x" goto execute - -set CMD_LINE_ARGS=%* - -:execute -@rem Setup the command line - -set CLASSPATH=%APP_HOME%\gradle\wrapper\gradle-wrapper.jar - -@rem Execute Gradle -"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% %GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" -classpath "%CLASSPATH%" org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% - -:end -@rem End local scope for the variables with windows NT shell -if "%ERRORLEVEL%"=="0" goto mainEnd - -:fail -rem Set variable GRADLE_EXIT_CONSOLE if you need the _script_ return code instead of -rem the _cmd.exe /c_ return code! -if not "" == "%GRADLE_EXIT_CONSOLE%" exit 1 -exit /b 1 - -:mainEnd -if "%OS%"=="Windows_NT" endlocal - -:omega diff --git a/sampleApp/platforms/android/instabug-cordova/hellocordova-build.gradle b/sampleApp/platforms/android/instabug-cordova/hellocordova-build.gradle deleted file mode 100644 index 1c31d42d..00000000 --- a/sampleApp/platforms/android/instabug-cordova/hellocordova-build.gradle +++ /dev/null @@ -1,26 +0,0 @@ -import java.util.regex.Pattern - -def doExtractStringFromManifest(name) { - def manifestFile = file(android.sourceSets.main.manifest.srcFile) - def pattern = Pattern.compile(name + "=\"(.*?)\"") - def matcher = pattern.matcher(manifestFile.getText()) - matcher.find() - return matcher.group(1) -} - -android { - sourceSets { - main { - manifest.srcFile 'src/main/AndroidManifest.xml' - } - } - - defaultConfig { - applicationId = doExtractStringFromManifest("package") - } -} - -dependencies { - implementation 'com.instabug.library:instabug:8.6.3.0' - implementation 'com.android.support:multidex:1.0.0' -} diff --git a/sampleApp/platforms/android/project.properties b/sampleApp/platforms/android/project.properties index 72b57c6a..5791a08f 100644 --- a/sampleApp/platforms/android/project.properties +++ b/sampleApp/platforms/android/project.properties @@ -11,4 +11,3 @@ target=android-28 android.library.reference.1=CordovaLib android.library.reference.2=app -cordova.gradle.include.1=instabug-cordova/hellocordova-build.gradle \ No newline at end of file diff --git a/sampleApp/platforms/ios/HelloCordova.xcodeproj/project.pbxproj b/sampleApp/platforms/ios/HelloCordova.xcodeproj/project.pbxproj index e3063e5a..6b71c607 100755 --- a/sampleApp/platforms/ios/HelloCordova.xcodeproj/project.pbxproj +++ b/sampleApp/platforms/ios/HelloCordova.xcodeproj/project.pbxproj @@ -15,9 +15,6 @@ 6AFF5BF91D6E424B00AB3073 /* CDVLaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 6AFF5BF81D6E424B00AB3073 /* CDVLaunchScreen.storyboard */; }; A0637B572322C51F00D5BDA3 /* HelloCordovaUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0637B562322C51F00D5BDA3 /* HelloCordovaUITests.swift */; }; A0637B662322C5C400D5BDA3 /* HelloCordovaUITest.m in Sources */ = {isa = PBXBuildFile; fileRef = A0637B652322C5C400D5BDA3 /* HelloCordovaUITest.m */; }; - D113BB5A014D47A2B73D1025 /* IBGPlugin.m in Sources */ = {isa = PBXBuildFile; fileRef = CD3062A6E9FF489F9619A585 /* IBGPlugin.m */; }; - 84E63B1CCA404943A2F87398 /* Instabug.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 3ECDB0971F5A4B27B8CC202E /* Instabug.framework */; }; - 7F03AB0D2D8A4A4F93A277F0 /* Instabug.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 3ECDB0971F5A4B27B8CC202E /* Instabug.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -67,6 +64,7 @@ files = ( D0E5A41C7B5748E58EEED802 /* Instabug.framework in Embed Frameworks */, 7F03AB0D2D8A4A4F93A277F0 /* Instabug.framework in Embed Frameworks */, + CA77A2CAC74C426D9AFF8650 /* Instabug.framework in Embed Frameworks */, ); name = "Embed Frameworks"; runOnlyForDeploymentPostprocessing = 0; @@ -100,9 +98,6 @@ EB87FDF41871DAF40020F90C /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = config.xml; path = ../../config.xml; sourceTree = ""; }; ED33DF2A687741AEAF9F8254 /* Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "Bridging-Header.h"; sourceTree = ""; }; F840E1F0165FE0F500CFE078 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; name = config.xml; path = HelloCordova/config.xml; sourceTree = ""; }; - CD3062A6E9FF489F9619A585 /* IBGPlugin.m */ = {isa = PBXFileReference; name = "IBGPlugin.m"; path = "instabug-cordova/IBGPlugin.m"; sourceTree = ""; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; explicitFileType = undefined; includeInIndex = 0; }; - A3EBA9909A584F25924501DA /* IBGPlugin.h */ = {isa = PBXFileReference; name = "IBGPlugin.h"; path = "instabug-cordova/IBGPlugin.h"; sourceTree = ""; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; explicitFileType = undefined; includeInIndex = 0; }; - 3ECDB0971F5A4B27B8CC202E /* Instabug.framework */ = {isa = PBXFileReference; name = "Instabug.framework"; path = "HelloCordova/Plugins/instabug-cordova/Instabug.framework"; sourceTree = ""; fileEncoding = undefined; lastKnownFileType = wrapper.framework; explicitFileType = undefined; includeInIndex = 0; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -199,7 +194,6 @@ 29B97323FDCFA39411CA2CEA /* Frameworks */ = { isa = PBXGroup; children = ( - 3ECDB0971F5A4B27B8CC202E /* Instabug.framework */, ); name = Frameworks; sourceTree = ""; @@ -226,8 +220,6 @@ 307C750510C5A3420062BCA9 /* Plugins */ = { isa = PBXGroup; children = ( - CD3062A6E9FF489F9619A585 /* IBGPlugin.m */, - A3EBA9909A584F25924501DA /* IBGPlugin.h */, ); name = Plugins; path = HelloCordova/Plugins; @@ -274,6 +266,7 @@ 6969D0C6BFDD45318A4C3FF7 /* Embed Frameworks */, FD80B8FE5F434FE098361D7A /* StripFrameworkScript */, 92C402A4ADBD41ECA6623F9A /* StripFrameworkScript */, + 89B6C1C3E17046628E7EF9F6 /* StripFrameworkScript */, ); buildRules = ( ); @@ -457,6 +450,20 @@ shellPath = /bin/sh; shellScript = "bash \"${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Instabug.framework/strip-frameworks.sh\""; }; + 89B6C1C3E17046628E7EF9F6 /* StripFrameworkScript */ = { + isa = PBXShellScriptBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + name = "StripFrameworkScript"; + inputPaths = ( + ); + outputPaths = ( + ); + shellPath = /bin/sh; + shellScript = "bash \"${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}/Instabug.framework/strip-frameworks.sh\""; + }; /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ @@ -467,7 +474,6 @@ 1D60589B0D05DD56006BFB54 /* main.m in Sources */, 1D3623260D0F684500981E51 /* AppDelegate.m in Sources */, 302D95F114D2391D003F00A1 /* MainViewController.m in Sources */, - D113BB5A014D47A2B73D1025 /* IBGPlugin.m in Sources */, ); runOnlyForDeploymentPostprocessing = 0; }; @@ -522,6 +528,7 @@ "$(inherited)", "\"HelloCordova/Plugins/instabug-cordova\"", "\"HelloCordova/Plugins/instabug-cordova\"", + "\"HelloCordova/Plugins/instabug-cordova\"", ); GCC_DYNAMIC_NO_PIC = NO; GCC_OPTIMIZATION_LEVEL = 0; @@ -552,6 +559,7 @@ "$(inherited)", "\"HelloCordova/Plugins/instabug-cordova\"", "\"HelloCordova/Plugins/instabug-cordova\"", + "\"HelloCordova/Plugins/instabug-cordova\"", ); GCC_PRECOMPILE_PREFIX_HEADER = YES; GCC_PREFIX_HEADER = "HelloCordova/HelloCordova-Prefix.pch"; @@ -607,6 +615,7 @@ FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"HelloCordova/Plugins/instabug-cordova\"", + "\"HelloCordova/Plugins/instabug-cordova\"", ); }; name = Debug; @@ -647,6 +656,7 @@ FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"HelloCordova/Plugins/instabug-cordova\"", + "\"HelloCordova/Plugins/instabug-cordova\"", ); }; name = Release; @@ -689,6 +699,7 @@ FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"HelloCordova/Plugins/instabug-cordova\"", + "\"HelloCordova/Plugins/instabug-cordova\"", ); }; name = Debug; @@ -727,6 +738,7 @@ FRAMEWORK_SEARCH_PATHS = ( "$(inherited)", "\"HelloCordova/Plugins/instabug-cordova\"", + "\"HelloCordova/Plugins/instabug-cordova\"", ); }; name = Release; diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/IBGPlugin.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/IBGPlugin.h deleted file mode 100644 index 8d5b0a7d..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/IBGPlugin.h +++ /dev/null @@ -1,39 +0,0 @@ -#import - -@interface IBGPlugin : CDVPlugin - -- (void) activate:(CDVInvokedUrlCommand*)command; - -- (void) setPrimaryColor:(CDVInvokedUrlCommand*)command; - -- (void) setUserData:(CDVInvokedUrlCommand*)command; - -- (void) addFile:(CDVInvokedUrlCommand*)command; - -- (void) addLog:(CDVInvokedUrlCommand*)command; - -- (void) changeInvocationEvent:(CDVInvokedUrlCommand*)command; - -- (void) setLocale:(CDVInvokedUrlCommand*)command; - -- (void) setReportTypes:(CDVInvokedUrlCommand*)command; - -- (void) show:(CDVInvokedUrlCommand*)command; - -- (void) showBugReportingWithReportTypeAndOptions:(CDVInvokedUrlCommand*)command; - -- (void) setBugReportingEnabled:(CDVInvokedUrlCommand*)command; - -- (void) setChatsEnabled:(CDVInvokedUrlCommand*)command; - -- (void) setRepliesEnabled:(CDVInvokedUrlCommand*)command; - -- (void) showChats:(CDVInvokedUrlCommand*)command; - -- (void) hasChats:(CDVInvokedUrlCommand*)command; - -- (void) showReplies:(CDVInvokedUrlCommand*)command; - -- (void) identifyUserWithEmail:(CDVInvokedUrlCommand*)command; - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/IBGPlugin.m b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/IBGPlugin.m deleted file mode 100644 index 793088dc..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/IBGPlugin.m +++ /dev/null @@ -1,1550 +0,0 @@ -#import "IBGPlugin.h" -#import -#import -#import -#import -#import - -/** - * This plugin initializes Instabug. - */ -@implementation IBGPlugin - -/** - * Intializes Instabug and sets provided options. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) activate:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - NSDictionary* tokensForPlatforms = [command argumentAtIndex:0]; - - if (tokensForPlatforms) { - NSString* token = [tokensForPlatforms objectForKey:@"ios"]; - if (![token length] > 0) { - token = [tokensForPlatforms objectForKey:@"token"]; - } - if ([token length] > 0) { - id invEvent = [command argumentAtIndex:1]; - IBGInvocationEvent invocationEvent = 0; - - if ([invEvent isKindOfClass:[NSString class]]) { - invocationEvent = [self parseInvocationEvent:invEvent]; - } else if ([invEvent isKindOfClass:[NSDictionary class]]) { - // Desired invocation event may be different across platforms - // and can be specified as such - invocationEvent = [self parseInvocationEvent: [invEvent objectForKey:@"ios"]]; - } - - if (!invocationEvent) { - // Instabug iOS SDK requires invocation event for initialization - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"An invocation event must be provided."]; - } else { - // Initialize Instabug - [Instabug startWithToken:token invocationEvents:invocationEvent]; - [self setBaseUrlForDeprecationLogs]; - - // Apply provided options - [self applyOptions:[command argumentAtIndex:2]]; - - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } - } else { - // Without a token, Instabug cannot be initialized. - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"An application token must be provided."]; - } - } else { - // Without a token, Instabug cannot be initialized. - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"An application token must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Intializes Instabug and sets provided options. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) startWithToken:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - NSDictionary* tokensForPlatforms = [command argumentAtIndex:0]; - - if (tokensForPlatforms) { - NSString* token = [tokensForPlatforms objectForKey:@"ios"]; - - if ([token length] > 0) { - NSArray* invEvents = [command argumentAtIndex:1]; - IBGInvocationEvent invocationEvents = 0; - - for (NSString *invEvent in invEvents) { - IBGInvocationEvent invocationEvent = [self parseInvocationEvent:invEvent]; - invocationEvents |= invocationEvent; - } - if (invocationEvents == 0) { - // Instabug iOS SDK requires invocation event for initialization - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"An invocation event must be provided."]; - } else { - // Initialize Instabug - [Instabug startWithToken:token invocationEvents:invocationEvents]; - [self setBaseUrlForDeprecationLogs]; - - // Apply provided options - [self applyOptions:[command argumentAtIndex:2]]; - - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } - } else { - // Without a token, Instabug cannot be initialized. - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"An application token must be provided."]; - } - } else { - // Without a token, Instabug cannot be initialized. - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"An application token must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -- (void) identifyUserWithEmail:(CDVInvokedUrlCommand*)command { - NSString *email = [command argumentAtIndex:0]; - NSString *name = [command argumentAtIndex:1]; - [Instabug identifyUserWithEmail:email name:name]; - [self sendSuccessResult:command]; -} - -/** - * Sets whether users are required to enter an email address or not when doing a certain action `IBGAction`. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setEmailFieldRequiredForFeatureRequests:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - BOOL isEnabled = [command argumentAtIndex:0]; - NSArray* aTypes = [command argumentAtIndex:1]; - - IBGAction actionTypes = 0; - - for (NSString *aType in aTypes) { - IBGAction actionType = [self parseActionType:aType]; - actionTypes |= actionType; - } - - if (isEnabled && actionTypes != 0) { - [IBGFeatureRequests setEmailFieldRequired:[[command argumentAtIndex:0] boolValue] forAction:actionTypes]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A valid action type must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Sets the primary color of the SDK user interface, mostly - * indicating interactivity or call to action. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setPrimaryColor:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - NSMutableString* color = [command argumentAtIndex:0]; - - if ([color length] > 0) { - BOOL valid = NO; - - if ([color length] == 6) { - valid = YES; - } else if ([color length] == 7 && [color rangeOfString:@"#"].location == 0) { - valid = YES; - // '#' char must be removed before parsing - color = [NSMutableString stringWithString:[color substringFromIndex:1]]; - } - - if (valid) { - UIColor* uiColor = [self colorFromHexString:color]; - Instabug.tintColor = uiColor; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:[NSString stringWithFormat: - @"%@ is not a valid hex color.", - [command argumentAtIndex:0]]]; - } - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A hex color must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Logs a user event that happens through the lifecycle of the application. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) logUserEventWithName:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - NSString* userEvent = [command argumentAtIndex:0]; - - if ([userEvent length] > 0) { - [Instabug logUserEventWithName:userEvent]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A name must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Sets a block of code to be executed just before the SDK's UI is presented. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setPreInvocationHandler:(CDVInvokedUrlCommand*)command -{ - IBGBugReporting.willInvokeHandler = ^{ - CDVPluginResult* result; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - [result setKeepCallbackAsBool:true]; - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - }; -} - -/** - * Sets a block of code to be executed right after the SDK's UI is dismissed. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setPostInvocationHandler:(CDVInvokedUrlCommand*)command -{ - IBGBugReporting.didDismissHandler = ^(IBGDismissType dismissType, IBGReportType reportType){ - CDVPluginResult* result; - NSString *dismissTypeString = [self parseDismissType:dismissType]; - NSString *reportTypeString = [self parseReportType:reportType]; - NSDictionary *dict = @{ @"dismissType" : dismissTypeString, @"reportType" : reportTypeString}; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK - messageAsDictionary:dict]; - [result setKeepCallbackAsBool:true]; - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - }; -} - -/** - * Sets a block of code to be executed right after the SDK's UI is dismissed. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setPreSendingHandler:(CDVInvokedUrlCommand*)command -{ - Instabug.willSendReportHandler = ^(IBGReport* report){ - CDVPluginResult* result; - NSArray *tagsArray = report.tags; - NSArray *instabugLogs= report.instabugLogs; - NSArray *consoleLogs= report.consoleLogs; - NSDictionary *userAttributes= report.userAttributes; - NSArray *fileAttachments= report.fileLocations; - - NSDictionary *dict = @{ @"tagsArray" : tagsArray, @"instabugLogs" : instabugLogs, @"consoleLogs" : consoleLogs, @"userAttributes" : userAttributes, @"fileAttachments" : fileAttachments}; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK - messageAsDictionary:dict]; - [result setKeepCallbackAsBool:true]; - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - return report; - }; -} - -/** - * Sets a block of code to be executed just before the survey's UI is presented. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) willShowSurveyHandler:(CDVInvokedUrlCommand*)command -{ - IBGSurveys.willShowSurveyHandler = ^ { - CDVPluginResult* result; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - [result setKeepCallbackAsBool:true]; - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - }; -} - -/** - * Sets a block of code to be executed right after the survey's UI is dismissed. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) didDismissSurveyHandler:(CDVInvokedUrlCommand*)command -{ - IBGSurveys.didDismissSurveyHandler = ^ { - CDVPluginResult* result; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - [result setKeepCallbackAsBool:true]; - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - }; -} - -/** - * Shows survey with a specific token. - * Does nothing if there are no available surveys with that specific token. - * Answered and cancelled surveys won't show up again. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) showSurveyWithToken:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - NSString* surveyToken = [command argumentAtIndex:0]; - - if ([surveyToken length] > 0) { - [IBGSurveys showSurveyWithToken:surveyToken]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A survey token must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Returns true if the survey with a specific token was answered before. - * Will return false if the token does not exist or if the survey was not answered before. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) hasRespondedToSurveyWithToken:(CDVInvokedUrlCommand*)command - { - CDVPluginResult* result; - NSString *surveyToken = [command argumentAtIndex:0]; - - if (surveyToken.length > 0) { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK - messageAsBool:[IBGSurveys hasRespondedToSurveyWithToken:surveyToken]]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A non-empty survey token must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - } - - /** - * Returns true if the survey with a specific token was answered before. - * Will return false if the token does not exist or if the survey was not answered before. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) getAvailableSurveys:(CDVInvokedUrlCommand*)command - { - CDVPluginResult* result; - NSArray* surveys = [IBGSurveys availableSurveys]; - NSMutableArray *surveysArray = [[NSMutableArray alloc] init]; - - for (IBGSurvey *survey in surveys) { - NSDictionary *surveyObject = @{ @"title" : survey.title}; - [surveysArray addObject:surveyObject]; - } - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK - messageAsArray:surveysArray]; - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - } - -/** - * Sets the user data that’s attached with each bug report sent. - * Maximum size of the string is 1000 characters. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setUserData:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - NSString* data = [command argumentAtIndex:0]; - - if ([data length] > 0) { - [Instabug setUserData:data]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"User data must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Sets whether attachments in bug reporting and in-app messaging are enabled. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setAttachmentTypesEnabled:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - id screenshot = [command argumentAtIndex:0]; - id extraScreenshot = [command argumentAtIndex:1]; - id galleryImage = [command argumentAtIndex:2]; - id screenRecording = [command argumentAtIndex:3]; - IBGAttachmentType attachmentTypes = 0; - if (screenshot && extraScreenshot && galleryImage && screenRecording) { - if([screenshot boolValue]) { - attachmentTypes = IBGAttachmentTypeScreenShot; - } - if([extraScreenshot boolValue]) { - attachmentTypes |= IBGAttachmentTypeExtraScreenShot; - } - if([galleryImage boolValue]) { - attachmentTypes |= IBGAttachmentTypeGalleryImage; - } - if([screenRecording boolValue]) { - attachmentTypes |= IBGAttachmentTypeScreenRecording; - } - - IBGBugReporting.enabledAttachmentTypes = attachmentTypes; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"Attachment types must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Sets the default position at which the Instabug screen recording button will be shown. - * Different orientations are already handled. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setVideoRecordingFloatingButtonPosition:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - IBGPosition position = [self parseIBGPosition:[command argumentAtIndex:0]]; - - if (position) { -// IBGBugReporting.videoRecordingFloatingButtonPosition = position; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A position must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Attaches a new copy of this file with each bug report sent - * with a maximum size of 1 MB. Calling this method several - * times overrides the file to be attached. The file has to - * be stored locally at the location provided. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) addFile:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - id file = [command argumentAtIndex:0]; - NSString* filePath; - - if ([file isKindOfClass:[NSString class]]) { - filePath = file; - } else if ([file isKindOfClass:[NSDictionary class]]) { - // File location may be different across platforms - // and can be specified as such - filePath = [file objectForKey:@"ios"]; - } - - if ([filePath length] > 0) { - NSFileManager* fileManager = [NSFileManager defaultManager]; - - if ([fileManager fileExistsAtPath:filePath]) { - // If the file doesn't exist at the path specified, - // we won't be able to notify the containing app when - // Instabug API call fails, so we check ourselves. - NSURL* url = [NSURL URLWithString:filePath]; - [Instabug addFileAttachmentWithURL:url]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:[NSString stringWithFormat: - @"File %@ does not exist.", - filePath]]; - } - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A local file URI must be provided."]; - } - - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Adds custom logs that will be sent with each report. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) addLog:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - NSString* log = [command argumentAtIndex:0]; - - if ([log length] > 0) { - [IBGLog log:log]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A log must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Sets the event that invokes the feedback form. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) changeInvocationEvent:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - IBGInvocationEvent iEvent = [self parseInvocationEvent:[command argumentAtIndex:0]]; - - if (iEvent) { - IBGBugReporting.invocationEvents = iEvent; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A valid event type must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Sets the event that invokes the feedback form. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setInvocationEvents:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - NSArray* invEvents = [command argumentAtIndex:0]; - IBGInvocationEvent invocationEvents = 0; - - for (NSString *invEvent in invEvents) { - IBGInvocationEvent invocationEvent = [self parseInvocationEvent:invEvent]; - invocationEvents |= invocationEvent; - } - - if (invocationEvents != 0) { - IBGBugReporting.invocationEvents = invocationEvents; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A valid event type must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Sets the invocation options used when invoke Instabug SDK - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setInvocationOptions:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - NSArray* invOptions = [command argumentAtIndex:0]; - IBGBugReportingOption invocationOptions = 0; - - for (NSString *invOption in invOptions) { - IBGBugReportingOption invocationOption = [self parseInvocationOption:invOption]; - invocationOptions |= invocationOption; - } - - if (invocationOptions != 0) { - IBGBugReporting.bugReportingOptions = invocationOptions; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A valid invocation option must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Set supported report types bug, feedback or both. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setReportTypes:(CDVInvokedUrlCommand*)command { - CDVPluginResult* result; - NSArray* types = [command argumentAtIndex:0]; - IBGBugReportingReportType parsedTypes = 0; - - for (NSString* type in types) { - IBGBugReportingReportType parsedType = [self parseBugReportingReportType:type]; - if (parsedType == 0) { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A valid report type must be provided."]; - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - return; - } - parsedTypes |= parsedType; - } - [IBGBugReporting setPromptOptionsEnabledReportTypes:parsedTypes]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Show new report either bug or feedback with given options. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) showBugReportingWithReportTypeAndOptions:(CDVInvokedUrlCommand*)command { - CDVPluginResult* result; - NSString* type = [command argumentAtIndex:0]; - NSArray* options = [command argumentAtIndex:1]; - - IBGBugReportingReportType parsedType = [self parseBugReportingReportType:type]; - if (parsedType == 0) { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A valid report type must be provided."]; - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - return; - } - - IBGBugReportingOption parsedOptions = 0; - - for (NSString* option in options) { - IBGBugReportingOption parsedOption = [self parseInvocationOption:option]; - if (parsedOption == 0) { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A valid bug reporting option must be provided."]; - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - return; - } - parsedOptions |= parsedOption; - } - [IBGBugReporting showWithReportType:parsedType options:parsedOptions]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Show default Instabug prompt. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) show:(CDVInvokedUrlCommand*)command { - [Instabug show]; - [self sendSuccessResult:command]; -} - -/** - * Enable or disable anything that has to do with bug reporting. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setBugReportingEnabled:(CDVInvokedUrlCommand*)command { - BOOL isEnabled = [[command argumentAtIndex:0] boolValue]; - IBGBugReporting.enabled = isEnabled; - [self sendSuccessResult:command]; -} - -/** - * Enable or disable anything that has to do with chats. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setChatsEnabled:(CDVInvokedUrlCommand*)command { - BOOL isEnabled = [[command argumentAtIndex:0] boolValue]; - IBGChats.enabled = isEnabled; - [self sendSuccessResult:command]; -} - -/** - * Enable or disable anything that has to do with replies. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setRepliesEnabled:(CDVInvokedUrlCommand*)command { - BOOL isEnabled = [[command argumentAtIndex:0] boolValue]; - IBGReplies.enabled = isEnabled; - [self sendSuccessResult:command]; -} - -/** - * Show chats view as a list or new message. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) showChats:(CDVInvokedUrlCommand*)command { - [IBGChats show]; - [self sendSuccessResult:command]; -} - -/** - * See if user has chats. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) hasChats:(CDVInvokedUrlCommand*)command { - BOOL hasChats = [IBGReplies hasChats]; - if (hasChats) { - [self sendSuccessResult:command]; - } -} - -/** - * Show replies to user. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) showReplies:(CDVInvokedUrlCommand*)command { - [IBGReplies show]; - [self sendSuccessResult:command]; -} - -/** - * Sets the locale used to display the strings in the - * correct language. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setLocale:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - IBGLocale iLocale = [self parseLocale:[command argumentAtIndex:0]]; - - if (iLocale) { - [Instabug setLocale:iLocale]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A valid locale must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Sets whether user steps tracking is visual, non visual or disabled. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setReproStepsMode:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - IBGUserStepsMode reproStepsMode = [self parseReproStepsMode:[command argumentAtIndex:0]]; - - if (reproStepsMode) { - Instabug.reproStepsMode = reproStepsMode; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A valid user steps mode must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Shows the welcome message in a specific mode. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) showWelcomeMessage:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - IBGWelcomeMessageMode welcomeMessageMode = [self parseWelcomeMessageMode:[command argumentAtIndex:0]]; - - if (welcomeMessageMode) { - [Instabug showWelcomeMessageWithMode:welcomeMessageMode]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A valid welcome message mode must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Sets whether the extended bug report mode should be disabled, enabled with - * required fields or enabled with optional fields. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) setExtendedBugReportMode:(CDVInvokedUrlCommand*)command -{ - CDVPluginResult* result; - - IBGExtendedBugReportMode extendedBugReportMode = [self parseExtendedBugReportMode:[command argumentAtIndex:0]]; - - if (extendedBugReportMode != -1) { - IBGBugReporting.extendedBugReportMode = extendedBugReportMode; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A valid extended bug report mode must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; -} - -/** - * Enable/Disable view hierarchy from Instabug SDK - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) setViewHierarchyEnabled:(CDVInvokedUrlCommand*)command - { - CDVPluginResult* result; - - BOOL isEnabled = [command argumentAtIndex:0]; - - if (isEnabled) { - Instabug.shouldCaptureViewHierarchy = [[command argumentAtIndex:0] boolValue]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A boolean value must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - } - - /** - * Enables/disables showing in-app notifications when the user receives a new - * message. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) setChatNotificationEnabled:(CDVInvokedUrlCommand*)command - { - CDVPluginResult* result; - - BOOL isEnabled = [command argumentAtIndex:0]; - - if (isEnabled) { - IBGReplies.inAppNotificationsEnabled = [[command argumentAtIndex:0] boolValue]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A boolean value must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - } - - /** - * Sets whether IBGLog should also print to Xcode's console log or not. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) setIBGLogPrintsToConsole:(CDVInvokedUrlCommand*)command - { - CDVPluginResult* result; - - BOOL isEnabled = [command argumentAtIndex:0]; - - if (isEnabled) { - IBGLog.printsToConsole = [[command argumentAtIndex:0] boolValue]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A boolean value must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - } - - /** - * Sets maximum auto screen recording video duration. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) setAutoScreenRecordingMaxDuration:(CDVInvokedUrlCommand*)command - { - CDVPluginResult* result; - - CGFloat duration = [[command argumentAtIndex:0] floatValue]; - - if (duration) { - Instabug.autoScreenRecordingDuration = duration; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A duration must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - } - - /** - * Returns the number of unread messages the user currently has. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) getUnreadRepliesCount:(CDVInvokedUrlCommand*)command - { - CDVPluginResult* result; - - NSInteger messageCount = IBGReplies.unreadRepliesCount; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK messageAsInt: messageCount]; - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - } - -/** - * Convenience method for setting the threshold value - * of the shake gesture for iPhone/iPod touch and iPad. - * - * @param {NSString*} iPhoneThreshold - * NSString representation of double iPhone threshold - * @param {NSString*} - * NSString representation of double iPad threshold - */ -- (void) setShakingThresholdForIPhone:(NSString*)iPhoneThreshold forIPad:(NSString*)iPadThreshold -{ - double iPhone = [iPhoneThreshold doubleValue]; - double iPad = [iPadThreshold doubleValue]; - - if (iPhone && iPad) { - IBGBugReporting.shakingThresholdForiPhone = iPhone; - IBGBugReporting.shakingThresholdForiPad = iPad; - } -} - -/** - * Convenience method for setting the default edge on - * which the floating button will be shown and its - * offset from the top. - * - * @param {NSString*} edge - * NSString representation of edge - * @param {NSString*} offset - * NSString representation of double offset - */ -- (void) setFloatingButtonEdge:(NSString*)edge withOffset:(NSNumber* )offset -{ - double offsetFromTop = [offset doubleValue]; - - if (offset) { - IBGBugReporting.floatingButtonTopOffset = offsetFromTop; - } - if ([edge isEqualToString:@"left"]) { - IBGBugReporting.floatingButtonEdge = CGRectMinXEdge; - } else if ([edge isEqualToString:@"right"]) { - IBGBugReporting.floatingButtonEdge = CGRectMaxXEdge; - } -} - -/** - * Convenience method for setting whether to track - * the user’s steps while using the app or not. - * - * @param {NSString*} enabled - * NSString representation of boolean enabled - */ -- (void) setTrackingUserStepsEnabled:(NSString*)enabled -{ - if ([enabled length] > 0) { - Instabug.trackUserSteps = [enabled boolValue]; - } -} - -/** - * Convenience method for setting whether to allow - * the SDK to use push notifications or not. - * - * @param {NSString*} enabled - * NSString representation of boolean enabled - */ -- (void) setPushNotificationsEnabled:(NSString*)enabled -{ - if ([enabled length] > 0) { - [IBGReplies setPushNotificationsEnabled:[enabled boolValue]]; - } -} - -/** - * Convenience method for setting whether to enable the - * session profiler or not. - * - * @param {NSString*} enabled - * NSString representation of boolean enabled - */ -- (void) setSessionProfilerEnabled:(NSString*)enabled -{ - if ([enabled length] > 0) { - [Instabug setSessionProfilerEnabled:[enabled boolValue]]; - } -} - -/** - * Convenience method for parsing and setting the welcome message mode - * - * @param {NSString*} enabled - * NSString representation of welcomeMessageMode - */ -- (void) setWelcomeMessageMode:(NSString*)welcomeMessageMode -{ - if ([welcomeMessageMode length] > 0) { - IBGWelcomeMessageMode welcomeMessageModeEnum = [self parseWelcomeMessageMode:welcomeMessageMode]; - [Instabug setWelcomeMessageMode:welcomeMessageModeEnum]; - } -} - -/** - * Convenience method for setting the color theme of - * the SDK invocation. - * - * @param {NSString*} theme - * NSString representation of color theme - */ -- (void) setColorTheme:(NSString*)theme -{ - if ([theme isEqualToString:@"dark"]) { - [Instabug setColorTheme:IBGColorThemeDark]; - } else if ([theme isEqualToString:@"light"]) { - [Instabug setColorTheme:IBGColorThemeLight]; - } -} - -/** - * Sets a threshold for numbers of sessions and another for number of days - * required before a survey, that has been dismissed once, would show again. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) setThresholdForReshowingSurveyAfterDismiss:(CDVInvokedUrlCommand*)command - { - CDVPluginResult* result; - - NSInteger sessionsCount = [[command argumentAtIndex:0] integerValue]; - NSInteger daysCount = [[command argumentAtIndex:1] integerValue]; - - if (sessionsCount && daysCount) { - [IBGSurveys setThresholdForReshowingSurveyAfterDismiss:sessionsCount daysCount:daysCount]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A sessions count and days count must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - } - - /** - * Sets a threshold for numbers of sessions and another for number of days - * required before a survey, that has been dismissed once, would show again. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) setAutoShowingSurveysEnabled:(CDVInvokedUrlCommand*)command - { - CDVPluginResult* result; - - BOOL autoShowingSurveysEnabled = [command argumentAtIndex:0]; - - if (autoShowingSurveysEnabled) { - IBGSurveys.autoShowingEnabled = [[command argumentAtIndex:0] boolValue]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A boolean value must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - } - - /** - * Sets whether surveys are enabled or not. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) setSurveysEnabled:(CDVInvokedUrlCommand*)command - { - CDVPluginResult* result; - - BOOL isEnabled = [command argumentAtIndex:0]; - - if (isEnabled) { - IBGSurveys.enabled = [[command argumentAtIndex:0] boolValue]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A boolean value must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - } - - /** - * Shows the UI for feature requests list - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) showFeatureRequests:(CDVInvokedUrlCommand*)command - { - [IBGFeatureRequests show]; - [self sendSuccessResult:command]; - } - - /** - * Resets the value of the user's email and name, previously set. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) logOut:(CDVInvokedUrlCommand*)command - { - [Instabug logOut]; - [self sendSuccessResult:command]; - } - - /** - * Dismisses any Instabug views that are currently being shown. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) dismiss:(CDVInvokedUrlCommand*)command - { - [IBGBugReporting dismiss]; - [self sendSuccessResult:command]; - } - - /** - * Shows one of the surveys that were not shown before, that also have - * conditions that match the current device/user. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) showSurveyIfAvailable:(CDVInvokedUrlCommand*)command - { - [IBGSurveys showSurveyIfAvailable]; - [self sendSuccessResult:command]; - } - - /** - * Sets a threshold for numbers of sessions and another for number of days - * required before a survey, that has been dismissed once, would show again. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ - - (void) setShouldShowSurveysWelcomeScreen:(CDVInvokedUrlCommand*)command - { - CDVPluginResult* result; - - BOOL shouldShowWelcomeScreen = [command argumentAtIndex:0]; - - if (shouldShowWelcomeScreen) { - IBGSurveys.shouldShowWelcomeScreen = [[command argumentAtIndex:0] boolValue]; - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_OK]; - } else { - result = [CDVPluginResult resultWithStatus:CDVCommandStatus_ERROR - messageAsString:@"A boolean value must be provided."]; - } - - [self.commandDelegate sendPluginResult:result callbackId:[command callbackId]]; - } - -/** - * Wrapper method for applying all provided options. - * - * @param {NSDictionary*} options - * Provided options - */ -- (void) applyOptions:(NSDictionary*)options -{ - [self setShakingThresholdForIPhone:[options objectForKey:@"shakingThresholdIPhone"] - forIPad:[options objectForKey:@"shakingThresholdIPad"]]; - [self setFloatingButtonEdge:[options objectForKey:@"floatingButtonEdge"] - withOffset:[options objectForKey:@"floatingButtonOffset"]]; - [self setTrackingUserStepsEnabled:[[options objectForKey:@"enableTrackingUserSteps"] stringValue]]; - [self setPushNotificationsEnabled:[[options objectForKey:@"enablePushNotifications"] stringValue]]; - [self setSessionProfilerEnabled:[[options objectForKey:@"enableSessionProfiler"] stringValue]]; - [self setColorTheme:[options objectForKey:@"colorTheme"]]; - [self setWelcomeMessageMode:[options objectForKey:@"welcomeMessageMode"]]; -} - -/** - * Convenience method for converting NSString to - * IBGInvocationEvent. - * - * @param {NSString*} event - * NSString shortcode for IBGInvocationEvent - */ -- (IBGInvocationEvent) parseInvocationEvent:(NSString*)event -{ - if ([event isEqualToString:@"shake"]) { - return IBGInvocationEventShake; - } else if ([event isEqualToString:@"button"]) { - return IBGInvocationEventFloatingButton; - } else if ([event isEqualToString:@"screenshot"]) { - return IBGInvocationEventScreenshot; - } else if ([event isEqualToString:@"swipe"]) { - return IBGInvocationEventTwoFingersSwipeLeft; - } else if ([event isEqualToString:@"pan"]) { - return IBGInvocationEventRightEdgePan; - } else if ([event isEqualToString:@"none"]) { - return IBGInvocationEventNone; - } else return 0; -} - -/** - * Convenience method for converting NSString to - * IBGAction. - * - * @param {NSString*} actionType - * NSString shortcode for IBGAction - */ -- (IBGAction) parseActionType:(NSString*)actionType -{ - if ([actionType isEqualToString:@"requestNewFeature"]) { - return IBGActionRequestNewFeature; - } else if ([actionType isEqualToString:@"addCommentToFeature"]) { - return IBGActionAddCommentToFeature; - } else return 0; -} - -/** - * Convenience method for converting NSString to - * IBGBugReportingInvocationOption. - * - * @param {NSString*} option - * NSString shortcode for IBGBugReportingInvocationOption - */ -- (IBGBugReportingOption) parseInvocationOption:(NSString*)option -{ - if ([option isEqualToString:@"emailFieldHidden"]) { - return IBGBugReportingOptionEmailFieldHidden; - } else if ([option isEqualToString:@"emailFieldOptional"]) { - return IBGBugReportingOptionEmailFieldOptional; - } else if ([option isEqualToString:@"commentFieldRequired"]) { - return IBGBugReportingOptionCommentFieldRequired; - } else if ([option isEqualToString:@"disablePostSendingDialog"]) { - return IBGBugReportingOptionDisablePostSendingDialog; - } else return 0; -} - -- (IBGBugReportingReportType) parseBugReportingReportType:(NSString*)type { - if ([type isEqualToString:@"bug"]) { - return IBGBugReportingReportTypeBug; - } else if ([type isEqualToString:@"feedback"]) { - return IBGBugReportingReportTypeFeedback; - } else if ([type isEqualToString:@"question"]) { - return IBGBugReportingReportTypeQuestion; - } else return 0; -} - -/** - * Convenience method for converting NSString to - * IBGInvocationMode. - * - * @param {NSString*} - * NSString shortcode for IBGInvocationMode - */ -- (IBGInvocationMode) parseInvocationMode:(NSString*)mode -{ - if ([mode isEqualToString:@"bug"]) { - return IBGInvocationModeNewBug; - } else if ([mode isEqualToString:@"feedback"]) { - return IBGInvocationModeNewFeedback; - } else if ([mode isEqualToString:@"chat"]) { - return IBGInvocationModeNewChat; - } else if ([mode isEqualToString:@"chatList"]) { - return IBGInvocationModeChatsList; - } else if ([mode isEqualToString:@"na"]) { - return IBGInvocationModeNA; - } else return 0; -} - -/** - * Convenience method for converting NSString to - * IBGPosition. - * - * @param {NSString*} position - * NSString shortcode for IBGPosition - */ -- (IBGPosition) parseIBGPosition:(NSString*)position -{ - if ([position isEqualToString:@"topRight"]) { - return IBGPositionTopRight; - } else if ([position isEqualToString:@"bottomLeft"]) { - return IBGPositionBottomLeft; - } else if ([position isEqualToString:@"topLeft"]) { - return IBGPositionTopLeft; - } else if ([position isEqualToString:@"bottomRight"]) { - return IBGPositionBottomRight; - } else return 0; -} - - -/** - * Convenience method for converting NSString to - * IBGUserStepsMode. - * - * @param {NSString*} mode - * NSString shortcode for IBGUserStepsMode - */ -- (IBGUserStepsMode) parseReproStepsMode:(NSString*)mode -{ - if ([mode isEqualToString:@"enabled"]) { - return IBGUserStepsModeEnable; - } else if ([mode isEqualToString:@"disabled"]) { - return IBGUserStepsModeDisable; - } else if ([mode isEqualToString:@"enabledWithNoScreenshots"]) { - return IBGUserStepsModeEnabledWithNoScreenshots; - } else return 0; -} - -/** - * Convenience method for converting NSString to - * IBGWelcomeMessageMode. - * - * @param {NSString*} mode - * NSString shortcode for IBGWelcomeMessageMode - */ -- (IBGWelcomeMessageMode) parseWelcomeMessageMode:(NSString*)mode -{ - if ([mode isEqualToString:@"welcomeMessageModeLive"]) { - return IBGWelcomeMessageModeLive; - } else if ([mode isEqualToString:@"welcomeMessageModeBeta"]) { - return IBGWelcomeMessageModeBeta; - } else if ([mode isEqualToString:@"welcomeMessageModeDisabled"]) { - return IBGWelcomeMessageModeDisabled; - } else return 0; -} - -/** - * Convenience method for converting NSString to - * IBGExtendedBugReportMode. - * - * @param {NSString*} mode - * NSString shortcode for IBGExtendedBugReportMode - */ -- (IBGExtendedBugReportMode) parseExtendedBugReportMode:(NSString*)mode -{ - if ([mode isEqualToString:@"enabledWithRequiredFields"]) { - return IBGExtendedBugReportModeEnabledWithRequiredFields; - } else if ([mode isEqualToString:@"enabledWithOptionalFields"]) { - return IBGExtendedBugReportModeEnabledWithOptionalFields; - } else if ([mode isEqualToString:@"disabled"]) { - return IBGExtendedBugReportModeDisabled; - } else return -1; -} - - /** - * Convenience method for converting NSString to - * IBGDismissType. - * - * @param {NSString*} dismissType - * NSString shortcode for IBGDismissType - */ -- (NSString*) parseDismissType:(IBGDismissType)dismissType - { - if (dismissType == IBGDismissTypeSubmit) { - return @"submit"; - } else if (dismissType == IBGDismissTypeCancel) { - return @"cancel"; - } else if (dismissType == IBGDismissTypeAddAttachment) { - return @"add attachment"; - } else return @""; - } - -/** - * Convenience method for converting NSString to - * IBGReportType. - * - * @param {NSString*} reportType - * NSString shortcode for IBGReportType - */ -- (NSString*) parseReportType:(IBGReportType)reportType -{ - if (reportType == IBGReportTypeBug) { - return @"bug"; - } else if (reportType == IBGReportTypeFeedback) { - return @"feedback"; - } else if (reportType == IBGReportTypeQuestion) { - return @"question"; - } else return @""; -} - -/** - * Convenience method for converting NSString to - * IBGLocale. - * - * @param {NSString*} locale - * NSString shortcode for IBGLocale - */ -- (IBGLocale) parseLocale:(NSString*)locale -{ - if ([locale isEqualToString:@"arabic"]) { - return IBGLocaleArabic; - } else if ([locale isEqualToString:@"chineseTaiwan"]) { - return IBGLocaleChineseTaiwan; - } else if ([locale isEqualToString:@"chineseSimplified"]) { - return IBGLocaleChineseSimplified; - } else if ([locale isEqualToString:@"chineseTraditional"]) { - return IBGLocaleChineseTraditional; - } else if ([locale isEqualToString:@"czesh"]) { - return IBGLocaleEnglish; - } else if ([locale isEqualToString:@"danish"]) { - return IBGLocaleDanish; - } else if ([locale isEqualToString:@"english"]) { - return IBGLocaleEnglish; - } else if ([locale isEqualToString:@"french"]) { - return IBGLocaleFrench; - } else if ([locale isEqualToString:@"german"]) { - return IBGLocaleGerman; - } else if ([locale isEqualToString:@"italian"]) { - return IBGLocaleItalian; - } else if ([locale isEqualToString:@"japanese"]) { - return IBGLocaleJapanese; - } else if ([locale isEqualToString:@"korean"]) { - return IBGLocaleKorean; - } else if ([locale isEqualToString:@"polish"]) { - return IBGLocalePolish; - } else if ([locale isEqualToString:@"portuguese"]) { - return IBGLocalePortugese; - } else if ([locale isEqualToString:@"portugueseBrazil"]) { - return IBGLocalePortugueseBrazil; - } else if ([locale isEqualToString:@"russian"]) { - return IBGLocaleRussian; - } else if ([locale isEqualToString:@"solvak"]) { - return IBGLocaleSlovak; - } else if ([locale isEqualToString:@"spanish"]) { - return IBGLocaleSpanish; - } else if ([locale isEqualToString:@"swedish"]) { - return IBGLocaleSwedish; - } else if ([locale isEqualToString:@"turkish"]) { - return IBGLocaleTurkish; - } else return 0; -} - -/** - * Util method for parsing hex string to UIColor. - * - * @param {NSString *} hexString - * NSString representation of hex color - */ -- (UIColor *)colorFromHexString:(NSString *)hexString { - unsigned rgbValue = 0; - NSScanner* scanner = [NSScanner scannerWithString:hexString]; - [scanner scanHexInt:&rgbValue]; - return [UIColor colorWithRed:((rgbValue & 0xFF0000) >> 16)/255.0 - green:((rgbValue & 0xFF00) >> 8)/255.0 - blue:(rgbValue & 0xFF)/255.0 alpha:1.0]; -} - -/** - * Convenience method for sending successful plugin - * result in methods that cannot fail. - * - * @param {CDVInvokedUrlCommand*} command - * The command sent from JavaScript - */ -- (void) sendSuccessResult:(CDVInvokedUrlCommand*)command -{ - [self.commandDelegate - sendPluginResult:[CDVPluginResult resultWithStatus:CDVCommandStatus_OK] - callbackId:[command callbackId]]; -} - -- (void) setBaseUrlForDeprecationLogs { - SEL setCurrentPlatformSEL = NSSelectorFromString(@"setCurrentPlatform:"); - if([[Instabug class] respondsToSelector:setCurrentPlatformSEL]) { - NSInvocation *inv = [NSInvocation invocationWithMethodSignature:[[Instabug class] methodSignatureForSelector:setCurrentPlatformSEL]]; - [inv setSelector:setCurrentPlatformSEL]; - [inv setTarget:[Instabug class]]; - IBGPlatform platform = IBGPlatformCordova; - [inv setArgument:&(platform) atIndex:2]; - - [inv invoke]; - } -} - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGBugReporting.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGBugReporting.h deleted file mode 100644 index 9c30a648..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGBugReporting.h +++ /dev/null @@ -1,188 +0,0 @@ -/* - File: Instabug/IBGBugReporting.h - - Contains: API for using Instabug's SDK. - - Copyright: (c) 2013-2019 by Instabug, Inc., all rights reserved. - - Version: 8.6.2 - */ - -#import -#import "IBGTypes.h" - -NS_SWIFT_NAME(BugReporting) -@interface IBGBugReporting : NSObject - -/** - @brief Acts as master switch for the Bug Reporting. - - @discussion It's enabled by default. When disabled, both "Report a bug" and "Suggest an improvement" will be removed from Instabug Prompt Options. In addition, when disabled +showWithReportType:options: won’t have an effect. - */ -@property (class, atomic, assign) BOOL enabled; - -/** - @brief Sets a block of code to be executed just before the SDK's UI is presented. - - @discussion This block is executed on the UI thread. Could be used for performing any UI changes before the SDK's UI - is shown. - */ -@property(class, atomic, strong) void(^willInvokeHandler)(void); - -/** - @brief Sets a block of code to be executed right after the SDK's UI is dismissed. - - @discussion This block is executed on the UI thread. Could be used for performing any UI changes after the SDK's UI - is dismissed. - - The block has the following parameters: - - - dismissType: How the SDK was dismissed. - - reportType: Type of report that has been sent. Will be set to IBGReportTypeBug in case the SDK has been dismissed - without selecting a report type, so you might need to check dismissType before reportType. - - @see IBGReportType, IBGDismissType - */ -@property(class, atomic, strong) void(^didDismissHandler)(IBGDismissType dismissType, IBGReportType reportType); - -/** - @brief Sets a block of code to be executed when a prompt option is selected - - @param didSelectPromptOptionHandler A block of code that gets executed when a prompt option is selected. - - The block has the following parameters: - - prompOption: The option selected in prompt. - */ -@property(class, atomic, strong) void(^didSelectPromptOptionHandler)(IBGPromptOption promptOption); - -/** - @brief Sets the events that invoke the feedback form. - - @discussion Default is set by `startWithToken:invocationEvent:`. - - @see IBGInvocationEvent - */ -@property(class, atomic, assign) IBGInvocationEvent invocationEvents; - -/** - @brief Sets the threshold value of the shake gesture for iPhone/iPod Touch. - - @discussion Default for iPhone is 2.5. The lower the threshold, the easier it will be to invoke Instabug with the - shake gesture. A threshold which is too low will cause Instabug to be invoked unintentionally. - */ -@property(class, atomic, assign) CGFloat shakingThresholdForiPhone; - -/** - @brief Sets the threshold value of the shake gesture for iPad. - - @discussion Default for iPad is 0.6. The lower the threshold, the easier it will be to invoke Instabug with the - shake gesture. A threshold which is too low will cause Instabug to be invoked unintentionally. - */ -@property(class, atomic, assign) CGFloat shakingThresholdForiPad; - -/** - @brief Sets the default edge at which the floating button will be shown. Different orientations are already handled. - - @discussion Default for `floatingButtonEdge` is `CGRectMaxXEdge`. - */ -@property(class, atomic, assign) CGRectEdge floatingButtonEdge; - -/** - @brief Sets the default offset from the top at which the floating button will be shown. - - @discussion Default for `floatingButtonOffsetFromTop` is 50 - */ -@property(class, atomic, assign) CGFloat floatingButtonTopOffset; - -/** - @brief Sets whether attachments in bug reporting and in-app messaging are enabled. - */ -@property(class, atomic, assign) IBGAttachmentType enabledAttachmentTypes; - -/** - @brief Controls if Instabug Prompt Options should contain "Report a problem” and/or "Suggest an improvement" or not. - - @discussion By default, both options are enabled. - */ -@property(class, atomic, assign) IBGBugReportingReportType promptOptionsEnabledReportTypes; - -/** - @brief Sets whether the extended bug report mode should be disabled, enabled with required fields or enabled with optional fields. - - @discussion This feature is disabled by default. When enabled, it adds more fields for your reporters to fill in. You can set whether the extra fields are required or optional. - 1. Expected Results. - 2. Actual Results. - 3. Steps to Reproduce. - - An enum to disable the extended bug report mode, enable it with required or with optional fields. - */ -@property(class, atomic, assign) IBGExtendedBugReportMode extendedBugReportMode; - -/** - @brief Use to specify different options that would affect how Instabug is shown and other aspects about the reporting experience. - - @discussion See IBGInvocationOptions. - */ -@property(class, atomic, assign) IBGBugReportingOption bugReportingOptions; - -/** - @brief Sets the default position at which the Instabug screen recording button will be shown. Different orientations are already handled. - - @discussion Default for `position` is `bottomRight`. - */ -@property(class, atomic, assign) IBGPosition videoRecordingFloatingButtonPosition; - -/** - @method +showWithReportType:options: - @brief Shows the compose view of a bug report or a feedback. - - @see IBGBugReportingReportType - @see IBGBugReportingOption - */ -+ (void)showWithReportType:(IBGBugReportingReportType)reportType - options:(IBGBugReportingOption)options; - -/** - @brief Dismisses any Instabug views that are currently being shown. - */ -+ (void)dismiss; - -/** - @brief Enables/disables inspect view hierarchy when reporting a bug/feedback. - */ -@property (class, atomic, assign) BOOL shouldCaptureViewHierarchy; - -/** - @brief Sets whether the SDK is recording the screen or not. - - @discussion Enabling auto screen recording would give you an insight on the scenario a user has performed before encountering a bug. screen recording is attached with each bug being sent. - - Auto screen recording is disabled by default. - */ -@property (class, atomic, assign) BOOL autoScreenRecordingEnabled; - -/** - @brief Sets maximum auto screen recording video duration. - - @discussion sets maximum auto screen recording video duration with max value 30 seconds and min value greater than 1 sec. - */ -@property (class, atomic, assign) CGFloat autoScreenRecordingDuration; - -/* - +------------------------------------------------------------------------+ - | Deprecated APIs | - +------------------------------------------------------------------------+ - | The following section includes all deprecated APIs. | - | | - | We've made a few changes to our APIs starting from version 8.0 to make | - | them more intuitive and easily reachable. | - | | - | While the APIs below still function, they will be completely removed | - | in a future release. | - | | - | To adopt the new changes, please refer to our migration guide at: | - | https://docs.instabug.com/docs/ios-sdk-8-1-migration-guide | - +------------------------------------------------------------------------+ - */ - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGChats.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGChats.h deleted file mode 100644 index 53c53067..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGChats.h +++ /dev/null @@ -1,52 +0,0 @@ -/* - File: Instabug/IBGChats.h - - Contains: API for using Instabug's SDK. - - Copyright: (c) 2013-2019 by Instabug, Inc., all rights reserved. - - Version: 8.6.2 - */ - -#import - - -/* - +--------------------------------------------------------------------------+ - | Deprecated APIs | - +--------------------------------------------------------------------------+ - | In this release, we’re improving the in-app communication experience. | - | Now, your end user will have a unified experience while sending you | - | a report independently from its type. Whether it is a bug, improvement, | - | or question, they’ll see the same experience. | - | | - | The Chats class and its methods have been deprecated, and while they | - | still function, they will be completely removed in a future release. | - | For more details about this API’s replacement, check the | - | docs here: | - | https://docs.instabug.com/v8.6/docs/ios-sdk-8-6-migration-guide. | - | | - | If you have any questions please reach out to us through | - | contactus@instabug.com. | - +--------------------------------------------------------------------------+ - */ - -NS_SWIFT_NAME(Chats) -@interface IBGChats : NSObject - -/** - @brief Acts as master switch for the In-app Chats. - - @discussion It's enabled by default. When disabled, the user can't start a new chat from the SDK, the “Ask a question” option is removed from Instabug Prompt Options, and the compose button is removed from the chats list. In addition, when disabled +showWithChatsList: won’t have an effect. -*/ -@property (class, atomic, assign) BOOL enabled DEPRECATED_MSG_ATTRIBUTE("See https://docs.instabug.com/docs/ios-sdk-8-6-migration-guide#section-enabled for instructions on migrating to SDK v8.6 APIs."); - -/** - @method +show: - @brief Shows the compose new chat view. - - @discussion In order to show the chats list, [IBGReplies show] should be used. - */ -+ (void)show DEPRECATED_MSG_ATTRIBUTE("See https://docs.instabug.com/docs/ios-sdk-8-6-migration-guide#section-show for instructions on migrating to SDK v8.6 APIs."); - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGCrashReporting.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGCrashReporting.h deleted file mode 100644 index 92617489..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGCrashReporting.h +++ /dev/null @@ -1,32 +0,0 @@ -/* - File: Instabug/IBGCrashReporting.h - - Contains: API for using Instabug's SDK. - - Copyright: (c) 2013-2019 by Instabug, Inc., all rights reserved. - - Version: 8.6.2 - */ - -#import - -NS_SWIFT_NAME(CrashReporting) -@interface IBGCrashReporting : NSObject - -@property (class, atomic, assign) BOOL enabled; - -/** - @brief Report an exception manually. - - @param exception Exception to be reported. - */ -+ (void)reportException:(NSException *)exception; - -/** - @brief Report an error manually. - - @param error error to be reported. - */ -+ (void)reportError:(NSError *)error; - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGFeatureRequests.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGFeatureRequests.h deleted file mode 100644 index 3b3bf148..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGFeatureRequests.h +++ /dev/null @@ -1,40 +0,0 @@ -/* - File: Instabug/IBGFeatureRequests.h - - Contains: API for using Instabug's SDK. - - Copyright: (c) 2013-2019 by Instabug, Inc., all rights reserved. - - Version: 8.6.2 - */ - - -#import -#import "IBGTypes.h" - -NS_SWIFT_NAME(FeatureRequests) -@interface IBGFeatureRequests : NSObject - -/** - @brief Acts as a master switch for the Feature Requests. - - @discussion It's enabled by default. When disabled, all the functionalities related to the Feature Requests is disabled. - */ -@property (class, atomic, assign) BOOL enabled; - -/** - @brief Sets whether users are required to enter an email address or not when doing a certain action `IBGAction`. - - @discussion Defaults to YES. - - @param isEmailFieldRequired A boolean to indicate whether email field is required or not. - @param actionType An enum that indicates which action types will have the isEmailFieldRequired. - */ -+ (void)setEmailFieldRequired:(BOOL)isEmailFieldRequired forAction:(IBGAction)actionType; - -/** - @brief Shows the UI for feature requests list - */ -+ (void)show; - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGLog.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGLog.h deleted file mode 100644 index 912217e0..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGLog.h +++ /dev/null @@ -1,150 +0,0 @@ -/* - File: Instabug/IBGLog.h - - Contains: API for using Instabug's SDK. - - Copyright: (c) 2013-2019 by Instabug, Inc., all rights reserved. - - Version: 8.6.2 - */ - -#import -#import "InstabugCore.h" - -@interface IBGLog : NSObject - -@property (class, atomic, assign) BOOL printsToConsole; - -/** - @brief Adds custom logs that will be sent with each report. Logs are added with the debug log level. - - @param log Message to be logged. - */ -+ (void)log:(NSString *)log; - -/** - @brief Adds custom logs with the verbose log level. Logs will be sent with each report. - - @param log Message to be logged. - */ -+ (void)logVerbose:(NSString *)log; - -/** - @brief Adds custom logs with the debug log level. Logs will be sent with each report. - - @param log Message to be logged. - */ -+ (void)logDebug:(NSString *)log; - -/** - @brief Adds custom logs with the info log level. Logs will be sent with each report. - - @param log Message to be logged. - */ -+ (void)logInfo:(NSString *)log; - -/** - @brief Adds custom logs with the warn log level. Logs will be sent with each report. - - @param log Message to be logged. - */ -+ (void)logWarn:(NSString *)log; - -/** - @brief Adds custom logs with the error log level. Logs will be sent with each report. - - @param log Message to be logged. - */ -+ (void)logError:(NSString *)log; - -/** - @brief Clear all Logs. - - @discussion Clear all Instabug logs, console logs, network logs and user steps. - - */ -+ (void)clearAllLogs; - -/** - @brief Adds custom logs that will be sent with each report. - - @discussion Can be used in a similar fashion to NSLog. Logs are added with the debug log level. - For usage in Swift, see `Instabug.ibgLog()`. - - @param format Format string. - @param ... Optional varargs arguments. - */ -OBJC_EXTERN void InstabugLog(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2); - -/** - @brief Adds custom logs with the verbose log level. Logs will be sent with each report. - - @discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logVerbose()`. - - @param format Format string. - @param ... Optional varargs arguments. - */ -OBJC_EXTERN void IBGLogVerbose(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2); - -/** - @brief Adds custom logs with the debug log level. Logs will be sent with each report. - - @discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logDebug()`. - - @param format Format string. - @param ... Optional varargs arguments. - */ -OBJC_EXTERN void IBGLogDebug(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2); - -/** - @brief Adds custom logs with the info log level. Logs will be sent with each report. - - @discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logInfo()`. - - @param format Format string. - @param ... Optional varargs arguments. - */ -OBJC_EXTERN void IBGLogInfo(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2); - -/** - @brief Adds custom logs with the warn log level. Logs will be sent with each report. - - @discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logWarn()`. - - @param format Format string. - @param ... Optional varargs arguments. - */ -OBJC_EXTERN void IBGLogWarn(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2); - -/** - @brief Adds custom logs with the error log level. Logs will be sent with each report. - - @discussion Can be used in a similar fashion to NSLog. For usage in Swift, see `Instabug.logError()`. - - @param format Format string. - @param ... Optional varargs arguments. - */ -OBJC_EXTERN void IBGLogError(NSString *format, ...) NS_FORMAT_FUNCTION(1, 2) ; - -/** - @brief Used to reroute all your NSLogs to Instabug to be able to automatically include them with reports. - - @discussion For details on how to reroute your NSLogs to Instabug, see https://docs.instabug.com/docs/ios-logging - - @param format Format string. - @param args Arguments list. - */ -OBJC_EXTERN void IBGNSLog(NSString *format, va_list args); - -/** - @brief Used to reroute all your NSLogs to Instabug with their log level to be able to automatically include them with reports. - - @discussion For details on how to reroute your NSLogs to Instabug, see https://docs.instabug.com/docs/ios-logging - - @param format Format string. - @param args Arguments list. - @param logLevel log level. - */ -OBJC_EXTERN void IBGNSLogWithLevel(NSString *format, va_list args, IBGLogLevel logLevel); - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGNetworkLogger.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGNetworkLogger.h deleted file mode 100644 index d425e182..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGNetworkLogger.h +++ /dev/null @@ -1,115 +0,0 @@ -/* - File: Instabug/IBGNetworkLogger.h - - Contains: API for using Instabug's SDK. - - Copyright: (c) 2013-2019 by Instabug, Inc., all rights reserved. - - Version: 8.6.2 - */ - -#import -#import "IBGTypes.h" - -NS_SWIFT_NAME(NetworkLogger) -@interface IBGNetworkLogger : NSObject - -@property (class, atomic, assign) BOOL enabled; - -/** - @brief Enable logging for network requests and responses on a custom NSURLSessionConfiguration. - - @discussion Logging for network requests and responses may not work if you're using a custom `NSURLSession` object. - If this is the case, call this method passing in your custom NSURLSessions's configuration to enable logging for it. - - @param URLSessionConfiguration The NSURLSessionConfiguration of your custom NSURLSession. - */ -+ (void)enableLoggingForURLSessionConfiguration:(NSURLSessionConfiguration *_Nonnull)URLSessionConfiguration; - - -/** - @brief Use to obfuscate a request that's going to be included in network logs. - - @discussion Use this method if you want to make any modifications to requests before it is added to the network log. - This won't be applied to already filtered requests - - Note that thsese changes doesn't affect the actual request. - - The provided block will be called for every request. You should do whatever processing you need to do on the request inside - that block, then return a request to be included in network logs. - - This method usage overrides modifications made by `setNetworkLoggingURLObfuscationHandler:`. - - @param obfuscationHandler A block that takes a request and returns a new modified one to be logged.. - */ -+ (void)setRequestObfuscationHandler:(nonnull NSURLRequest * _Nonnull (^)(NSURLRequest * _Nonnull request))obfuscationHandler; - -/** - @brief Use to obfuscate a request's response that's going to be included in network logs. - - @discussion Use this method if you want to make any modifications to a request's respone and its data before it's - added to network logs. - - The provided block will be called for every response. You should do whatever processing you need to do on the response - and data inside that block, then return response and data to be included in network logs. Changes you make to the - response and its data only affect network logs, not the actual response. - - @param obfuscationHandler A block that takes the original response, its data and a return block as parameters. The - return block should be called with the modified data and response. - */ -+ (void)setResponseObfuscationHandler:(void (^_Nonnull)(NSData * _Nullable responseData, NSURLResponse * _Nonnull response, NetworkObfuscationCompletionBlock _Nonnull returnBlock))obfuscationHandler; - -/** - @brief Use to get callbacks about progress of sending body content of a particular request when networking logging is - enabled. - - @discussion The provided block will get periodical callbacks about the progress of sending the body content of a request. - - @param URL URL which will be attached with requestProgressHandler. - @param requestProgressHandler A block that will be called for the requestURL when SDK intercept that request. - - */ -+ (void)setProgressHandlerForRequestURL:(nonnull NSURL *)URL - progressHandler:(nonnull void (^)(NSURLSessionTask * _Nonnull task, int64_t bytesSent, int64_t totalBytesSent, int64_t totalBytesExpectedToSend))requestProgressHandler; - - -/** - @brief Used to ask whether your app is prepared to handle a particular authentication challenge. Can be called on any thread. - - @discussion Set this block if your app implements SSL pinning and you have network logging enabled. - - @param protectionSpaceHandler A block that takes the protection space for the authentication challenge and should return - true or false. - */ -+ (void)setCanAuthenticateAgainstProtectionSpaceHandler:(BOOL(^_Nonnull)(NSURLProtectionSpace * _Nonnull protectionSpace))protectionSpaceHandler; - - -/** - @brief Used to process an authentication challenge and return an NSURLCredential object. - - @discussion Set this block if your app implements SSL pinning and you have network logging enabled. - - @param reciveChallengeHandler A block that takes the authentication challenge and returns NSURLCredential. - */ -+ (void)setDidReceiveAuthenticationChallengeHandler:(NSURLCredential* _Nonnull (^_Nonnull)(NSURLAuthenticationChallenge * _Nonnull challenge))reciveChallengeHandler; - - -/** - @brief Specify NSPredicates to be used to omit certain network requests from being logged based on their request or - response objects. - - @discussion `requestFilterPredicate` will be matched against an `NSURLRequest`. It can be used to filter out requests - to a specific domain for example. - - `responseFilterPredicate` will be matched against an `NSHTTPURLResponse`. It can be used to filter out responses that - match specific status codes. - - If both predicates are specified, `requestFilterPredicate` is evaluated first, if it matches, the request is omitted - from logging without evaluating `responseFilterPredicate`. - - @param requestFilterPredicate An NSPredicate to match against an NSURLRequest. Matching requests will be omitted. - @param responseFilterPredicate An NSPredicate to match against an NSHTTPURLResponse. Matching responses will be omitted. - */ -+ (void)setNetworkLoggingRequestFilterPredicate:(nullable NSPredicate *)requestFilterPredicate responseFilterPredicate:(nullable NSPredicate *)responseFilterPredicate; - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGReplies.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGReplies.h deleted file mode 100644 index 13fcd4b2..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGReplies.h +++ /dev/null @@ -1,95 +0,0 @@ -/* - File: Instabug/IBGReplies.h - - Contains: API for using Instabug's SDK. - - Copyright: (c) 2013-2019 by Instabug, Inc., all rights reserved. - - Version: 8.6.2 - */ - -#import - -NS_SWIFT_NAME(Replies) -@interface IBGReplies : NSObject - -/** - @brief Acts as a master switch for the In-app Replies. - - @discussion It's enabled by default. When disabled, the user can’t reach the chats history from the SDK. The chats list button is removed from Instabug Prompt Options. In addition, when disabled the in-app notification as well as the push notifications are disabled. And, +show won’t have an effect. - */ -@property (class, atomic, assign) BOOL enabled; - -/** - @brief Sets a block of code that gets executed when a new message is received. - */ -@property (class, atomic, strong) void (^didReceiveReplyHandler)(void); - -/** - @brief Enables/disables showing in-app notifications when the user receives a new message. - */ -@property (class, atomic, assign) BOOL inAppNotificationsEnabled; - -/** - @brief Enables/disables the use of push notifications in the SDK. - - @discussion In order to enable push notifications, implement - `-[UIApplicationDelegate application:didRegisterForRemoteNotificationsWithDeviceToken:]` and either - `-[UIApplicationDelegate application:didReceiveRemoteNotification]` or - `-[UIApplicationDelegate application:didReceiveRemoteNotification:fetchCompletionHandler:]`. - - Defaults to YES. - */ -@property (class, atomic, assign) BOOL pushNotificationsEnabled; - -/** - @brief Returns the number of unread messages the user currently has. - - @discussion Use this method to get the number of unread messages the user has, then possibly notify them about it with - your own UI. - - @return Notifications count, or -1 incase the SDK has not been initialized. - */ -@property (class, atomic, assign, readonly) NSInteger unreadRepliesCount; - -/** - @method +show - @brief Shows the chats list. - - @discussion It shows the chats list only if the user has a chats history. Use +hasChats to know if a user has chats history or not. */ -+ (void)show; - -/** - @method +hasChats - @brief To know if a user already has a chats history or not. - - @discussion Use it before calling show. - */ -+ (BOOL)hasChats; - -/** - @brief Call this method and pass the notification's userInfo dictionary to allow Instabug to handle its remote notifications. - - @discussion Instabug will check if notification is from Instabug's servers and only handle it if it is. - You should call this method in -[UIApplicationDelegate application:didReceiveRemoteNotification:] and pass received userInfo - dictionary, or `-[UIApplicationDelegate application:didFinishLaunchingWithOptions:]` and pass - `[launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]`. - - @param userInfo userInfo dictionary from `-[UIApplicationDelegate application:didReceiveRemoteNotification:]` or - `[launchOptions objectForKey:UIApplicationLaunchOptionsRemoteNotificationKey]` from - `-[UIApplicationDelegate application:didFinishLaunchingWithOptions:]`. - */ -+ (BOOL)didReceiveRemoteNotification:(NSDictionary *)userInfo; - -/** - @brief Use this method to set Apple Push Notification token to enable receiving Instabug push notifications. - - @discussion You should call this method after receiving token in - `-[UIApplicationDelegate didRegisterForRemoteNotificationsWithDeviceToken:]` and pass received token. - - @param deviceToken Device token received in `-[UIApplicationDelegate didRegisterForRemoteNotificationsWithDeviceToken:]` - */ -+ (void)didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken; - - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGReport.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGReport.h deleted file mode 100644 index f3046852..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGReport.h +++ /dev/null @@ -1,31 +0,0 @@ -// -// IBGReport.h -// InstabugCore -// -// Created by khaled mohamed el morabea on 1/21/18. -// Copyright © 2018 Instabug. All rights reserved. -// - -#import - -@interface IBGReport : NSObject - -@property (nonatomic, copy, readonly) NSArray *tags; -@property (nonatomic, copy, readonly) NSArray *instabugLogs; -@property (nonatomic, copy, readonly) NSArray *consoleLogs; -@property (nonatomic, copy, readonly) NSDictionary *userAttributes; -@property (nonatomic, copy, readonly) NSArray *fileLocations; -@property (nonatomic, copy) NSString *userData; - -- (void)appendTag:(NSString *)tag; -- (void)logVerbose:(NSString *)log; -- (void)logDebug:(NSString *)log; -- (void)logInfo:(NSString *)log; -- (void)logWarn:(NSString *)log; -- (void)logError:(NSString *)log; -- (void)appendToConsoleLogs:(NSString *)log; -- (void)setUserAttribute:(NSString *)userAttribute withKey:(NSString *)key; -- (void)addFileAttachmentWithURL:(NSURL *)url; -- (void)addFileAttachmentWithData:(NSData *)data; - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGSurvey.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGSurvey.h deleted file mode 100644 index 5b6301ad..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGSurvey.h +++ /dev/null @@ -1,19 +0,0 @@ -/* - File: Instabug/IBGSurvey.h - - Contains: API for using Instabug's SDK. - - Copyright: (c) 2013-2019 by Instabug, Inc., all rights reserved. - - Version: 8.6.2 - */ - -#import - -@interface IBGSurvey : NSObject - -@property (nonatomic, readonly) NSString *title; - -- (void)show; - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGSurveys.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGSurveys.h deleted file mode 100644 index 24775a21..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGSurveys.h +++ /dev/null @@ -1,98 +0,0 @@ -/* - File: Instabug/IBGSurveys.h - - Contains: API for using Instabug's SDK. - - Copyright: (c) 2013-2019 by Instabug, Inc., all rights reserved. - - Version: 8.6.2 - */ - -#import -#import "IBGSurvey.h" - -NS_SWIFT_NAME(Surveys) -@interface IBGSurveys : NSObject - -@property (class, atomic, assign) BOOL enabled; -/** - @brief Sets whether auto surveys showing are enabled or not. - - @discussion If you disable surveys auto showing on the SDK but still have active surveys on your Instabug dashboard, those surveys are still going to be sent to the device, but are not going to be shown automatically. - - To manually display any available surveys, call `+ [Instabug showSurveyIfAvailable]`. - - Defaults to YES. - */ -@property (class, atomic, assign) BOOL autoShowingEnabled; - -/** - @brief Returns array of available surveys that match the current device/user. - */ -@property (class, atomic, readonly, strong) NSArray *availableSurveys; - -/** - @brief Sets a block of code to be executed just before the survey's UI is presented. - - @discussion This block is executed on the UI thread. Could be used for performing any UI changes before the survey's UI - is shown. - */ -@property (class, atomic, strong) void(^willShowSurveyHandler)(void); - -/** - @brief Sets a block of code to be executed right after the survey's UI is dismissed. - - @discussion This block is executed on the UI thread. Could be used for performing any UI changes after the survey's UI - is dismissed. - */ -@property (class, atomic, strong) void(^didDismissSurveyHandler)(void); - -/** - @brief Setting an option for all the surveys to show a welcome screen before the user starts taking the survey. - - @discussion By enabling this option, any survey that appears to the user will have a welcome screen with a title, subtitle - and a button that if clicked, will take the user to the survey. All the strings in the welcome screen have a default value - and localized. They can also be modified using the strings API. The default value of this option is false. - */ -@property (class, atomic, assign) BOOL shouldShowWelcomeScreen; - -/** - @brief Shows one of the surveys that were not shown before, that also have conditions that match the current device/user. - - @discussion Does nothing if there are no available surveys. - */ -+ (void)showSurveyIfAvailable; - -/** - @brief Shows Survey with a specific token. - - @discussion Does nothing if there are no available surveys with that specific token. Answered and canceled surveys won't show up again. - - @param surveyToken A String with a survey token. - */ -+ (void)showSurveyWithToken:(NSString *)surveyToken; - - -/** - @brief Sets a threshold for numbers of sessions and another for number of days required before a survey, that has been dismissed once, would show again. - - @discussion When a survey that has been shown to the user gets dismissed once, it will not reappear to the user unless a certain number of sessions have started AND a certain number of days have passed since the user first dismissed the survey. Note that if a survey is dismissed for a second time, it will not show again, in other words, it will be set to `canceled`. This applies to both surveys with and without tokens. - - Please note that this overrides the dashboard configuration for reshowing if called. - - @param sessionCount : Number of sessions required to be initialized before a dismissed survey can be shown again. - @param daysCount : Number of days required to pass before a dismissed survey can be shown again. - */ -+ (void)setThresholdForReshowingSurveyAfterDismiss:(NSInteger)sessionCount daysCount:(NSInteger)daysCount DEPRECATED_MSG_ATTRIBUTE("Reshowing the survey can now be controlled from the dashboard for any new survey you create."); - -/** - @brief Returns true if the survey with a specific token was answered before . - - @discussion Will return false if the token does not exist or if the survey was not answered before. - - @param surveyToken A String with a survey token. - */ -+ (BOOL)hasRespondedToSurveyWithToken:(NSString *)surveyToken; - - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGTypes.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGTypes.h deleted file mode 100644 index 31a0ecff..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/IBGTypes.h +++ /dev/null @@ -1,397 +0,0 @@ -/* - File: InstabugCore/IBGTypes.h - - Contains: Enums and Constants for using Instabug's SDK. - - Copyright: (c) 2013-2018 by Instabug, Inc., all rights reserved. - - Version: 8.6.2 - */ - -#import - -/// ------------------------------ -/// @name User-facing Strings Keys -/// ------------------------------ - -// Predefined keys to be used to override any of the user-facing strings in the SDK. See + [Instabug setValue:forStringWithKey] - -extern NSString * const kIBGStartAlertTextStringName; -extern NSString * const kIBGShakeStartAlertTextStringName; -extern NSString * const kIBGTwoFingerSwipeStartAlertTextStringName; -extern NSString * const kIBGEdgeSwipeStartAlertTextStringName; -extern NSString * const kIBGScreenshotStartAlertTextStringName; -extern NSString * const kIBGFloatingButtonStartAlertTextStringName; -extern NSString * const kIBGBetaWelcomeMessageWelcomeStepTitle; -extern NSString * const kIBGBetaWelcomeMessageWelcomeStepContent; -extern NSString * const kIBGBetaWelcomeMessageHowToReportStepTitle; -extern NSString * const kIBGBetaWelcomeMessageHowToReportStepContent; -extern NSString * const kIBGBetaWelcomeMessageFinishStepTitle; -extern NSString * const kIBGBetaWelcomeMessageFinishStepContent; -extern NSString * const kIBGBetaWelcomeDoneButtonTitle; -extern NSString * const kIBGLiveWelcomeMessageTitle; -extern NSString * const kIBGLiveWelcomeMessageContent; -extern NSString * const kIBGInvalidEmailMessageStringName; -extern NSString * const kIBGInvalidEmailTitleStringName; -extern NSString * const kIBGInvalidCommentMessageStringName; -extern NSString * const kIBGInvalidCommentTitleStringName; -extern NSString * const kIBGInvocationTitleStringName; -extern NSString * const kIBGFeatureRequetsPromptName; -extern NSString * const kIBGAskAQuestionStringName; -extern NSString * const kIBGReportBugStringName; -extern NSString * const kIBGReportFeedbackStringName; -extern NSString * const kIBGPhotoPickerTitle; -extern NSString * const kIBGProgressViewTitle; -extern NSString * const kIBGGalleryPermissionDeniedAlertTitle; -extern NSString * const kIBGGalleryPermissionDeniedAlertMessage; -extern NSString * const kIBGMaximumSizeExceededAlertTitle; -extern NSString * const kIBGMaximumSizeExceededAlertMessage; -extern NSString * const kIBGiCloudImportErrorAlertTitle; -extern NSString * const kIBGiCloudImportErrorAlertMessage; -extern NSString * const kIBGEmailFieldPlaceholderStringName; -extern NSString * const kIBGCommentFieldPlaceholderForBugReportStringName; -extern NSString * const kIBGCommentFieldPlaceholderForFeedbackStringName; -extern NSString * const kIBGCommentFieldPlaceholderForQuestionStringName; -extern NSString * const kIBGChatReplyFieldPlaceholderStringName; -extern NSString * const kIBGAddScreenRecordingMessageStringName; -extern NSString * const kIBGAddVoiceMessageStringName; -extern NSString * const kIBGAddImageFromGalleryStringName; -extern NSString * const kIBGAddExtraScreenshotStringName; -extern NSString * const kIBGAudioRecordingPermissionDeniedTitleStringName; -extern NSString * const kIBGAudioRecordingPermissionDeniedMessageStringName; -extern NSString * const kIBGScreenRecordingPermissionDeniedMessageStringName; -extern NSString * const kIBGMicrophonePermissionAlertSettingsButtonTitleStringName; -extern NSString * const kIBGMicrophonePermissionAlertLaterButtonTitleStringName; -extern NSString * const kIBGChatsTitleStringName; -extern NSString * const kIBGTeamStringName; -extern NSString * const kIBGRecordingMessageToHoldTextStringName; -extern NSString * const kIBGRecordingMessageToReleaseTextStringName; -extern NSString * const kIBGMessagesNotificationTitleSingleMessageStringName; -extern NSString * const kIBGMessagesNotificationTitleMultipleMessagesStringName; -extern NSString * const kIBGScreenshotTitleStringName; -extern NSString * const kIBGOkButtonTitleStringName; -extern NSString * const kIBGSendButtonTitleStringName; -extern NSString * const kIBGCancelButtonTitleStringName; -extern NSString * const kIBGThankYouAlertTitleStringName; -extern NSString * const kIBGThankYouAlertMessageStringName; -extern NSString * const kIBGAudioStringName; -extern NSString * const kIBGScreenRecordingStringName; -extern NSString * const kIBGImageStringName; -extern NSString * const kIBGReachedMaximimNumberOfAttachmentsTitleStringName; -extern NSString * const kIBGReachedMaximimNumberOfAttachmentsMessageStringName; -extern NSString * const kIBGVideoRecordingFailureMessageStringName; -extern NSString * const kIBGSurveyEnterYourAnswerTextPlaceholder; -extern NSString * const kIBGSurveyNoAnswerTitle; -extern NSString * const kIBGSurveyNoAnswerMessage; -extern NSString * const kIBGVideoPressRecordTitle; -extern NSString * const kIBGCollectingDataText; -extern NSString * const kIBGLowDiskStorageTitle; -extern NSString * const kIBGLowDiskStorageMessage; -extern NSString * const kIBGInboundByLineMessage; -extern NSString * const kIBGExtraFieldIsRequiredText; -extern NSString * const kIBGExtraFieldMissingDataText; -extern NSString * const kIBGFeatureRequestsTitle; -extern NSString * const kIBGFeatureDetailsTitle; -extern NSString * const kIBGStringFeatureRequestsRefreshText; -extern NSString * const kIBGFeatureRequestErrorStateTitleLabel; -extern NSString * const kIBGFeatureRequestErrorStateDescriptionLabel; -extern NSString * const kIBGFeatureRequestSortingByRecentlyUpdatedText; -extern NSString * const kIBGFeatureRequestSortingByTopVotesText; -extern NSString * const kIBGStringFeatureRequestAllFeaturesText; -extern NSString * const kIBGAddNewFeatureRequestText; -extern NSString * const kIBGAddNewFeatureRequestToastText; -extern NSString * const kIBGAddNewFeatureRequestErrorToastText; -extern NSString * const kIBGAddNewFeatureRequestLoadingHUDTitle; -extern NSString * const kIBGAddNewFeatureRequestSuccessHUDTitle; -extern NSString * const kIBGAddNewFeatureRequestSuccessHUDMessage; -extern NSString * const kIBGAddNewFeatureRequestTryAgainText; -extern NSString * const kIBGAddNewFeatureRequestCancelPromptTitle; -extern NSString * const kIBGAddNewFeatureRequestCancelPromptYesAction; -extern NSString * const kIBGFeatureRequestInvalidEmailText; -extern NSString * const kIBGFeatureRequestTimelineEmptyText; -extern NSString * const kIBGFeatureRequestTimelineErrorDescriptionLabel; -extern NSString * const kIBGFeatureRequestStatusChangeText; -extern NSString * const kIBGFeatureRequestAddButtonText; -extern NSString * const kIBGFeatureRequestVoteWithCountText; -extern NSString * const kIBGFeatureRequestVoteText; -extern NSString * const kIBGFeatureRequestPostButtonText; -extern NSString * const kIBGFeatureRequestCommentsText; -extern NSString * const kIBGFeatureRequestAuthorText; -extern NSString * const kIBGFeatureRequestEmptyViewTitle; -extern NSString * const kIBGFeatureRequestAddYourIdeaText; -extern NSString * const kIBGFeatureRequestAnonymousText; -extern NSString * const kIBGFeatureRequestStatusPosted; -extern NSString * const kIBGFeatureRequestStatusPlanned; -extern NSString * const kIBGFeatureRequestStatusStarted; -extern NSString * const kIBGFeatureRequestStatusCompleted; -extern NSString * const kIBGFeatureRequestStatusMaybeLater; -extern NSString * const kIBGFeatureRequestStatusMoreText; -extern NSString * const kIBGFeatureRequestStatusLessText; -extern NSString * const kIBGFeatureRequestAddYourThoughtsText; -extern NSString * const kIBGEmailRequiredText; -extern NSString * const kIBGNameText; -extern NSString * const kIBGEmailText; -extern NSString * const kIBGTitleText; -extern NSString * const kIBGDescriptionText; -extern NSString * const kIBGStringFeatureRequestMyFeaturesText; -extern NSString * const kIBGSurveyIntroTitleText; -extern NSString * const kIBGSurveyIntroDescriptionText; -extern NSString * const kIBGSurveyIntroTakeSurveyButtonText; -extern NSString * const kIBGSurveyIntroDismissButtonText; -extern NSString * const kIBGSurveyThankYouTitleText DEPRECATED_MSG_ATTRIBUTE("kIBGSurveyThankYouTitleText is deprecated. You can edit this string from the dashboard, and use kIBGCustomSurveyThankYouTitleText for Custom surveys."); -extern NSString * const kIBGSurveyThankYouDescriptionText DEPRECATED_MSG_ATTRIBUTE("kIBGSurveyThankYouDescriptionText is deprecated. You can edit this string from the dashboard, and use kIBGCustomSurveyThankYouDescriptionText for Custom surveys."); -extern NSString * const kIBGStoreRatingThankYouTitleText; -extern NSString * const kIBGStoreRatingThankYouDescriptionText; -extern NSString * const kIBGCustomSurveyThankYouTitleText DEPRECATED_MSG_ATTRIBUTE("This key kIBGCustomSurveyThankYouTitleText and will be deprecated with the next release. You will be able to edit this message from the dashboard from this point on."); -extern NSString * const kIBGCustomSurveyThankYouDescriptionText DEPRECATED_MSG_ATTRIBUTE("This key kIBGCustomSurveyThankYouDescriptionText and will be deprecated with the next release. You will be able to edit this message from the dashboard from this point on."); -extern NSString * const kIBGSurveysNPSLeastLikelyStringName; -extern NSString * const kIBGSurveysNPSMostLikelyStringName; -extern NSString * const kIBGSurveyNextButtonTitle; -extern NSString * const kIBGSurveySubmitButtonTitle; -extern NSString * const kIBGSurveyAppStoreThankYouTitle; -extern NSString * const kIBGSurveyAppStoreButtonTitle; -extern NSString * const kIBGExpectedResultsStringName; -extern NSString * const kIBGActualResultsStringName; -extern NSString * const kIBGStepsToReproduceStringName; -extern NSString * const kIBGReplyButtonTitleStringName; -extern NSString * const kIBGAddAttachmentButtonTitleStringName; -extern NSString * const kIBGDiscardAlertTitle; -extern NSString * const kIBGDiscardAlertMessage; -extern NSString * const kIBGDiscardAlertAction; -extern NSString * const kIBGDiscardAlertCancel; -extern NSString * const kIBGVideoGalleryErrorMessageStringName; -extern NSString * const kIBGVideoDurationErrorTitle; -extern NSString * const kIBGVideoDurationErrorMessage; -extern NSString * const kIBGAutoScreenRecordingAlertAllowText; -extern NSString * const kIBGAutoScreenRecordingAlertAlwaysAllowText; -extern NSString * const kIBGAutoScreenRecordingAlertDenyText; -extern NSString * const kIBGAutoScreenRecordingAlertTitleText; -extern NSString * const kIBGAutoScreenRecordingAlertBodyText; -extern NSString * const kIBGReproStepsDisclaimerBody; -extern NSString * const kIBGReproStepsDisclaimerLink; -extern NSString * const kIBGReproStepsListHeader; -extern NSString * const kIBGReproStepsListEmptyStateLabel; -extern NSString * const kIBGReproStepsListTitle; -extern NSString * const kIBGReproStepsListItemName; - -/// ----------- -/// @name Enums -/// ----------- - -/** - The event used to invoke the feedback form. - */ -typedef NS_OPTIONS(NSInteger, IBGInvocationEvent) { - /** Shaking the device while in any screen to show the feedback form. */ - IBGInvocationEventShake = 1 << 0, - /** Taking a screenshot using the Home+Lock buttons while in any screen to show the feedback form. */ - IBGInvocationEventScreenshot = 1 << 1, - /** Swiping two fingers left while in any screen to show the feedback form. */ - IBGInvocationEventTwoFingersSwipeLeft = 1 << 2, - /** Swiping one finger left from the right edge of the screen to show the feedback form, substituted with IBGInvocationEventTwoFingersSwipeLeft on iOS 6.1.3 and earlier. */ - IBGInvocationEventRightEdgePan = 1 << 3, - /** Shows a floating button on top of all views, when pressed it takes a screenshot. */ - IBGInvocationEventFloatingButton = 1 << 4, - /** No event will be registered to show the feedback form, you'll need to code your own and call the method showFeedbackForm. */ - IBGInvocationEventNone = 1 << 5, -}; - -/** - The color theme of the different UI elements. - */ -typedef NS_ENUM(NSInteger, IBGColorTheme) { - IBGColorThemeLight, - IBGColorThemeDark -}; - -/** - The mode used upon invocating the SDK. - */ -typedef NS_ENUM(NSInteger, IBGInvocationMode) { - IBGInvocationModeNA, - IBGInvocationModeNewBug, - IBGInvocationModeNewFeedback, - IBGInvocationModeNewQuestion, - IBGInvocationModeNewChat, - IBGInvocationModeChatsList, - IBGInvocationModeNewQuestionManually //Only when you call Chats.show() -}; - -/** - Deprecated, should use IBGBugReportingOption instead. - */ -__attribute__((deprecated)) -typedef NS_OPTIONS(NSInteger, IBGBugReportingInvocationOption) { - IBGBugReportingInvocationOptionEmailFieldHidden = 1 << 0, - IBGBugReportingInvocationOptionEmailFieldOptional = 1 << 1, - IBGBugReportingInvocationOptionCommentFieldRequired = 1 << 2, - IBGBugReportingInvocationOptionDisablePostSendingDialog = 1 << 3, - IBGBugReportingInvocationOptionNone = 1 << 4, -}; - -/** - Type of report to be submitted. - */ -typedef NS_OPTIONS(NSInteger, IBGBugReportingReportType) { - IBGBugReportingReportTypeBug = 1 << 0, - IBGBugReportingReportTypeFeedback = 1 << 1, - IBGBugReportingReportTypeQuestion = 1 << 2, -}; - - -typedef NS_OPTIONS(NSInteger, IBGBugReportingOption) { - IBGBugReportingOptionEmailFieldHidden = 1 << 0, - IBGBugReportingOptionEmailFieldOptional = 1 << 1, - IBGBugReportingOptionCommentFieldRequired = 1 << 2, - IBGBugReportingOptionDisablePostSendingDialog = 1 << 3, - IBGBugReportingOptionNone = 1 << 4, -}; - -typedef NS_ENUM(NSInteger, IBGReportType) { - IBGReportTypeBug, - IBGReportTypeFeedback, - IBGReportTypeQuestion -}; - -/** - Type of SDK dismiss. - */ -typedef NS_ENUM(NSInteger, IBGDismissType) { - /** Dismissed after report submit */ - IBGDismissTypeSubmit, - /** Dismissed via cancel */ - IBGDismissTypeCancel, - /** Dismissed while taking screenshot */ - IBGDismissTypeAddAttachment -}; - -/** - Supported locales. - */ -typedef NS_ENUM(NSInteger, IBGLocale) { - IBGLocaleArabic, - IBGLocaleChineseSimplified, - IBGLocaleChineseTaiwan, - IBGLocaleChineseTraditional, - IBGLocaleCzech, - IBGLocaleDanish, - IBGLocaleDutch, - IBGLocaleEnglish, - IBGLocaleFrench, - IBGLocaleGerman, - IBGLocaleItalian, - IBGLocaleJapanese, - IBGLocaleKorean, - IBGLocaleNorwegian, - IBGLocalePolish, - IBGLocalePortugese DEPRECATED_MSG_ATTRIBUTE("Please use IBGLocalePortuguese"), // Fixing typo https://instabug.atlassian.net/browse/INSD-2731 - IBGLocalePortuguese, - IBGLocalePortugueseBrazil, - IBGLocaleRussian, - IBGLocaleSlovak, - IBGLocaleSpanish, - IBGLocaleSwedish, - IBGLocaleTurkish, - IBGLocaleHungarian -}; - -/** - Verbosity level of the SDK debug logs. This has nothing to do with IBGLog, and only affect the logs used to debug the - SDK itself. - - Defaults to IBGSDKDebugLogsLevelError. Make sure you only use IBGSDKDebugLogsLevelError or IBGSDKDebugLogsLevelNone in - production builds. - */ -typedef NS_ENUM(NSInteger, IBGSDKDebugLogsLevel) { - IBGSDKDebugLogsLevelVerbose, - IBGSDKDebugLogsLevelDebug, - IBGSDKDebugLogsLevelError, - IBGSDKDebugLogsLevelNone -}; - -/** - The prompt option selected in Instabug prompt. - */ -typedef NS_OPTIONS(NSInteger, IBGPromptOption) { - IBGPromptOptionChat = 1 << 0, - IBGPromptOptionBug = 1 << 1, - IBGPromptOptionFeedback = 1 << 2, - IBGPromptOptionNone = 1 << 3, -}; - -/** - Instabug floating buttons positions. - */ -typedef NS_ENUM(NSInteger, IBGPosition) { - IBGPositionBottomRight, - IBGPositionTopRight, - IBGPositionBottomLeft, - IBGPositionTopLeft -}; - -/** - The Conosle Log Level. - */ -typedef NS_ENUM(NSInteger, IBGLogLevel) { - IBGLogLevelDefault, - IBGLogLevelTrace, - IBGLogLevelInfo, - IBGLogLevelWarning, - IBGLogLevelError, - IBGLogLevelFatal -}; - -/** - The user steps option. - */ -typedef NS_ENUM(NSInteger, IBGUserStepsMode) { - IBGUserStepsModeEnable, - IBGUserStepsModeEnabledWithNoScreenshots, - IBGUserStepsModeDisable -}; - - /** - The attachment types selected in Attachment action sheet. - */ -typedef NS_OPTIONS(NSInteger, IBGAttachmentType) { - IBGAttachmentTypeScreenShot = 1 << 1, - IBGAttachmentTypeExtraScreenShot = 1 << 2, - IBGAttachmentTypeGalleryImage = 1 << 4, - IBGAttachmentTypeScreenRecording = 1 << 6, -}; - -/** - The extended bug report mode. - */ -typedef NS_ENUM(NSInteger, IBGExtendedBugReportMode) { - IBGExtendedBugReportModeEnabledWithRequiredFields, - IBGExtendedBugReportModeEnabledWithOptionalFields, - IBGExtendedBugReportModeDisabled -}; - -typedef NS_OPTIONS(NSInteger, IBGAction) { - IBGActionAllActions = 1 << 0, - IBGActionReportBug = 1 << 1, - IBGActionRequestNewFeature = 1 << 2, - IBGActionAddCommentToFeature = 1 << 3, -}; - -/** - The welcome message mode. - */ -typedef NS_ENUM(NSInteger, IBGWelcomeMessageMode) { - IBGWelcomeMessageModeLive, - IBGWelcomeMessageModeBeta, - IBGWelcomeMessageModeDisabled -}; - -/* CHECK NULLABILITY! */ -typedef void (^NetworkObfuscationCompletionBlock)(NSData *data, NSURLResponse *response); - -/* Platform */ -typedef NS_ENUM(NSInteger, IBGPlatform) { - IBGPlatformIOS, - IBGPlatformReactNative, - IBGPlatformCordova, - IBGPlatformXamarin -}; diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/Instabug.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/Instabug.h deleted file mode 100644 index a0e24dc7..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/Instabug.h +++ /dev/null @@ -1,327 +0,0 @@ -/* - File: Instabug/Instabug.h - - Contains: API for using Instabug's SDK. - - Copyright: (c) 2013-2019 by Instabug, Inc., all rights reserved. - - Version: 8.6.2 - */ - -#import -#import -#import "InstabugCore.h" -#import "IBGNetworkLogger.h" -#import "IBGReport.h" -#import "IBGLog.h" -#import "IBGBugReporting.h" -#import "IBGCrashReporting.h" -#import "IBGSurveys.h" -#import "IBGFeatureRequests.h" -#import "IBGChats.h" -#import "IBGReplies.h" -#import "UIView+Instabug.h" - -/** - This is the API for using Instabug's SDK. For more details about the SDK integration, - please visit https://docs.instabug.com/docs/ios-integration - */ - -NS_ASSUME_NONNULL_BEGIN - -@interface Instabug : NSObject - -/** - @brief Sets whether the session profiler is enabled or disabled. - - @discussion The session profiler is enabled by default and it attaches to the bug and crash reports the following information during the last 60 seconds before the report is sent. - 1. CPU load. - 2. Dispatch queues latency. - 3. Memory usage. - 4. Storage usage. - 5. Connectivity. - 6. Battery percentage and state. - 7. Orientation. - */ -@property (class, atomic, assign) BOOL sessionProfilerEnabled; - -/** - @brief Sets maximum auto screen recording video duration. - - @discussion sets maximum auto screen recording video duration with max value 30 seconds and min value greater than 1 sec. - */ -@property (class, atomic, assign) CGFloat autoScreenRecordingDuration DEPRECATED_MSG_ATTRIBUTE("'autoScreenRecordingDuration' is deprecated: first deprecated in SDK 8.2.3 - autoScreenRecordingDuration is deprecated. Use IBGBugReporting.autoScreenRecordingDuration instead."); - -/** - @brief Enables/disables inspect view hierarchy when reporting a bug/feedback. - */ -@property (class, atomic, assign) BOOL shouldCaptureViewHierarchy DEPRECATED_MSG_ATTRIBUTE("'shouldCaptureViewHierarchy' is deprecated: first deprecated in SDK 8.2.3 - shouldCaptureViewHierarchy is deprecated. Use IBGBugReporting.shouldCaptureViewHierarchy instead."); - -/** - @brief Sets the primary color of the SDK's UI. - - @discussion Sets the color of UI elements indicating interactivity or call to action. - */ -@property (class, atomic, strong) UIColor *tintColor; - -/** - @brief Sets a block of code to be executed before sending each report. - - @discussion This block is executed in the background before sending each report. Could be used for attaching logs - and extra data to reports. - - @param willSendReportHandler A block of code that gets executed before sending each bug report. - */ -@property(class, atomic, strong) IBGReport*(^willSendReportHandler)(IBGReport *report); - -/** - @brief Sets whether the SDK is tracking user steps or not. - - @discussion Enabling user steps would give you an insight on the scenario a user has performed before encountering a - bug or a crash. User steps are attached with each report being sent. - - User Steps tracking is enabled by default if it's available in your current plan. - */ -@property (class, atomic, assign) BOOL trackUserSteps; - -/** - @brief Sets whether user steps tracking is visual, non visual or disabled. - - @discussion Enabling user steps would give you an insight on the scenario a user has performed before encountering a - bug or a crash. User steps are attached with each report being sent. - - User Steps tracking is enabled by default if it's available in your current plan. - */ -@property (class, atomic, assign) IBGUserStepsMode reproStepsMode; - - -/** - @brief Sets the welcome message mode to live, beta or disabled. - - @discussion By default, the welcome message live mode is enabled. It appears automatically after 10 seconds from the user's first session. You can change it to the beta mode or disable it. - The live mode consists of one step to inform the users how to report a bug or feedback. The beta mode consists of three steps to welcome your testers on board, inform them how to report a bug or feedback and to motivate them to always be on the latest app version. Please note, the into message appears only if the invocation event isn't set to none. - */ -@property (class, atomic, assign) IBGWelcomeMessageMode welcomeMessageMode; - -/** - @brief Sets a block of code to be executed when a welcome message is dismissed - - @param didDismissWelcomeMessageHandler A block of code that gets executed when a welcome message is dismissed. - - */ -@property(class, atomic, strong) void(^didDismissWelcomeMessageHandler)(void); - -/** - @brief Attaches user data to each report being sent. - - @discussion Each call to this method overrides the user data to be attached. - Maximum size of the string is 1,000 characters. - */ -@property (class, atomic, strong) NSString *userData; - - -/** - @brief Starts the SDK. - - @discussion This is the main SDK method that does all the magic. This is the only method that SHOULD be called. - Should be called at the end of `-[UIApplicationDelegate application:didFinishLaunchingWithOptions:]`. - - @param token The token that identifies the app, you can find it on your dashboard. - @param invocationEvents One or more event that invokes the SDK's UI. - - @see IBGInvocationEvent - */ -+ (void)startWithToken:(NSString *)token invocationEvents:(IBGInvocationEvent)invocationEvents; - -/** - @brief Shows Instabug Prompt Options. - - @discussion By default, it contains Report a problem, Suggest an improvement, Ask a question, and a button that navigates to the chats list. To control which options should be enabled, see IBGBugReporting.enabled, IBGChats.enabled, and IBGReplies.enabled. - */ -+ (void)show; - -/** - @brief Add file to attached files with each report being sent. - - @discussion A new copy of the file at fileURL will be attached with each bug report being sent. The file is only copied - at the time of sending the report, so you could safely call this API whenever the file is available on disk, and the copy - attached to your bug reports will always contain that latest changes at the time of sending the report. - - Each call to this method adds the file to the files attached, until a maximum of 3 then it overrides the first file. - The file has to be available locally at the provided path when the report is being sent. - - @param fileURL Path to a file that's going to be attached to each report. - */ -+ (void)addFileAttachmentWithURL:(NSURL *)fileURL; - - -/** - @brief Add a set of data as a file attachment to be sent with each report. - - @discussion The data will be written to a file and will be attached with each report. - - Each call to this method adds this set of data as a file attachment, until a maximum of 3 then it overrides the first data. - - @param data NSData to be added as a file attachment with each report. - */ -+(void)addFileAttachmentWithData:(NSData *)data; - -/** - @brief Clear list of files to be attached with each report. - - @discussion This method doesn't delete any files from the file system. It will just removes them for the list of files - to be attached with each report. - */ -+ (void)clearFileAttachments; - -/** - @brief Shows the welcome message in a specific mode. - - @discussion By default, the welcome message live mode is enabled. It appears automatically after 10 seconds from the user's first session. You can show it manually in a specific mode through this API. - The live mode consists of one step to inform the users how to report a bug or feedback. The beta mode consists of three steps to welcome your testers on board, inform them how to report a bug or feedback and to motivate them to always be on the latest app version. Please note, the into message appears only if the invocation event isn't set to none. - - @param welcomeMessageMode An enum to set the welcome message mode to live, beta or disabled. - */ -+ (void)showWelcomeMessageWithMode:(IBGWelcomeMessageMode)welcomeMessageMode; - - -/** - @brief Sets the user email and name for all sent reports. - - @param email Email address to be set as the user's email. - @param name Name of the user to be set. - */ -+ (void)identifyUserWithEmail:(NSString *)email name:(nullable NSString *)name; - -/** - @brief Resets the value of the user's email and name, previously set using `+ [Instabug identifyUserWithEmail:name:]`. - - @discussion This method also resets all chats currently on the device and removes any set user attributes. - */ -+ (void)logOut; - -/** - @brief Sets the SDK's locale. - - @discussion Use to change the SDK's UI to different language. - Defaults to the device's current locale. - - @param locale A locale to set the SDK to. - - @see IBGLocale - */ -+ (void)setLocale:(IBGLocale)locale; - -/** - @brief Sets the color theme of the SDK's whole UI. - - @param colorTheme An `IBGColorTheme` to set the SDK's UI to. - - @see IBGColorTheme - */ -+ (void)setColorTheme:(IBGColorTheme)colorTheme; - -/** - @brief Sets a block of code that is used to capture a screenshot. - - @discussion Should only be used if your app uses OpenGL. - - @param screenshotCapturingHandler A block of code that's going to be used to capture screenshots. - */ -+ (void)setScreenshotCapturingHandler:(UIImage *(^)(void))screenshotCapturingHandler; - -/** - @brief Appends a set of tags to previously added tags of reported feedback, bug or crash. - - @param tags An array of tags to append to current tags. -*/ -+ (void)appendTags:(NSArray *)tags; - -/** - @brief Manually removes all tags of reported feedback, bug or crash. - */ -+ (void)resetTags; - -/** - @brief Gets all tags of reported feedback, bug or crash. - - @return An array of tags. - */ -+ (NSArray *)getTags; - -/** - @brief Overrides any of the strings shown in the SDK with custom ones. - - @discussion Allows you to customize any of the strings shown to users in the SDK. - - @param value String value to override the default one. - @param key Key of string to override. Use predefined keys like IBGShakeStartAlertTextStringName, - IBGEmailFieldPlaceholderStringName, etc. - - @see IBGTypes - */ -+ (void)setValue:(NSString *)value forStringWithKey:(NSString *)key; - -/** - @brief Set custom user attributes that are going to be sent with each feedback, bug or crash. - - @param value User attribute value. - @param key User attribute key. - */ -+ (void)setUserAttribute:(NSString *)value withKey:(NSString *)key; - -/** - @brief Returns the user attribute associated with a given key. - - @param key The key for which to return the corresponding value.. - - @return The value associated with aKey, or nil if no value is associated with aKey. - */ -+ (nullable NSString *)userAttributeForKey:(NSString *)key; - -/** - @brief Removes a given key and its associated value from user attributes. - - Does nothing if aKey does not exist. - - @param key The key to remove. - */ -+ (void)removeUserAttributeForKey:(NSString *)key; - -/** - @brief Returns all user attributes. - - @return A new dictionary containing all the currently set user attributes, or an empty dictionary if no user attributes have been set. - */ -+ (nullable NSDictionary *)userAttributes; - -/// ------------------- -/// @name SDK Reporting -/// ------------------- - -/** - @brief Logs a user event that happens through the lifecycle of the application. - - @discussion Logged user events are going to be sent with each report, as well as at the end of a session. - - @param name Event name. - */ -+ (void)logUserEventWithName:(NSString *)name; - -#pragma mark - SDK Debugging - -/// ------------------------ -/// @name SDK Debugging -/// ------------------------ - -/** - @brief Sets the verbosity level of logs used to debug the Instabug SDK itself. - - @discussion This API sets the verbosity level of logs used to debug The SDK. The defualt value in debug mode is IBGSDKDebugLogsLevelVerbose and in production is IBGSDKDebugLogsLevelError. - */ -@property (class, atomic, assign) IBGSDKDebugLogsLevel sdkDebugLogsLevel; - -@end - - -NS_ASSUME_NONNULL_END diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/InstabugCore.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/InstabugCore.h deleted file mode 100644 index 2179b3fd..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/InstabugCore.h +++ /dev/null @@ -1,17 +0,0 @@ -/* - File: InstabugCore/InstabugCore.h - - Contains: Enums and Constants for using Instabug's SDK. - - Copyright: (c) 2013-2019 by Instabug, Inc., all rights reserved. - - Version: 8.6.2 - */ - -#import -#import "IBGTypes.h" -#import "IBGReport.h" - -@interface InstabugCore : NSObject - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/UIView+Instabug.h b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/UIView+Instabug.h deleted file mode 100644 index 6e077811..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Headers/UIView+Instabug.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - File: Instabug/UIView+Instabug.h - - Contains: API for using Instabug's SDK. - - Copyright: (c) 2013-2019 by Instabug, Inc., all rights reserved. - - Version: 0.0.0 - */ - -#import - -@interface UIView (Instabug) - -/** - @brief Set this to true on any UIView to mark it as private. - Doing this will exclude it from all screenshots, view hierarchy captures and screen recordings. - */ -@property (nonatomic, assign) BOOL instabug_privateView; - -@end diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Info.plist b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Info.plist deleted file mode 100644 index 63c8eae6..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Info.plist and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Instabug b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Instabug deleted file mode 100755 index f8f4ca47..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Instabug and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Assets.car b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Assets.car deleted file mode 100644 index 17fd2f74..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Assets.car and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Config.plist b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Config.plist deleted file mode 100644 index 3967e063..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Config.plist and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGActionSheetCell.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGActionSheetCell.nib deleted file mode 100644 index 0b1aa95c..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGActionSheetCell.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGActionSheetVC-iPhone.nib/objects-11.0+.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGActionSheetVC-iPhone.nib/objects-11.0+.nib deleted file mode 100644 index e2b99ab7..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGActionSheetVC-iPhone.nib/objects-11.0+.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGActionSheetVC-iPhone.nib/runtime.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGActionSheetVC-iPhone.nib/runtime.nib deleted file mode 100644 index dc49c910..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGActionSheetVC-iPhone.nib/runtime.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGBugVC-iPhone.nib/objects-11.0+.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGBugVC-iPhone.nib/objects-11.0+.nib deleted file mode 100644 index c334f62b..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGBugVC-iPhone.nib/objects-11.0+.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGBugVC-iPhone.nib/runtime.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGBugVC-iPhone.nib/runtime.nib deleted file mode 100644 index 62480532..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGBugVC-iPhone.nib/runtime.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGChatCell.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGChatCell.nib deleted file mode 100644 index a020e851..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGChatCell.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGChatListVC-iPhone.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGChatListVC-iPhone.nib deleted file mode 100644 index 79532db3..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGChatListVC-iPhone.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGChatVC-iPhone.nib/objects-11.0+.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGChatVC-iPhone.nib/objects-11.0+.nib deleted file mode 100644 index c41508d8..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGChatVC-iPhone.nib/objects-11.0+.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGChatVC-iPhone.nib/runtime.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGChatVC-iPhone.nib/runtime.nib deleted file mode 100644 index e33bfacf..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGChatVC-iPhone.nib/runtime.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGFullScreenImageViewController.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGFullScreenImageViewController.nib deleted file mode 100644 index c7d2b6fa..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGFullScreenImageViewController.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGPoweredByView.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGPoweredByView.nib deleted file mode 100644 index ecfb37a7..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGPoweredByView.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGPromptCell.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGPromptCell.nib deleted file mode 100644 index 5093e9ac..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGPromptCell.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGPromptVC-iPhone.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGPromptVC-iPhone.nib deleted file mode 100644 index bc6fddcf..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGPromptVC-iPhone.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGReplyView-iPhone.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGReplyView-iPhone.nib deleted file mode 100644 index d27a483e..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGReplyView-iPhone.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGReportCategoriesVC-iPhone.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGReportCategoriesVC-iPhone.nib deleted file mode 100644 index 2e6f95cd..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGReportCategoriesVC-iPhone.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGScreenshotVC-iPhone.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGScreenshotVC-iPhone.nib deleted file mode 100644 index 373ffde2..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGScreenshotVC-iPhone.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGVideoPlaybackViewController.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGVideoPlaybackViewController.nib deleted file mode 100644 index ff8d8b0f..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGVideoPlaybackViewController.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGVoiceNoteRecordingViewController-iPhone.nib b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGVoiceNoteRecordingViewController-iPhone.nib deleted file mode 100644 index 728c1fbd..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/IBGVoiceNoteRecordingViewController-iPhone.nib and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Info.plist b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Info.plist deleted file mode 100644 index da51b9c2..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Info.plist and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Inject_DSYM_Project-Archive.sh b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Inject_DSYM_Project-Archive.sh deleted file mode 100644 index 094b820b..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Inject_DSYM_Project-Archive.sh +++ /dev/null @@ -1,25 +0,0 @@ -echo "Instabug: Started inject dSYM and bcsymbolmap inside project archive." - -Instabug_DSYM_PATH=($(find "${PROJECT_DIR}" -name 'Instabug.framework.dSYM')) -if [ ! "${Instabug_DSYM_PATH}" ]; then - echo "Instabug: can not find Instabug.framework.dSYM in project directory." -else - cp -r "${Instabug_DSYM_PATH}" "${ARCHIVE_DSYMS_PATH}" - echo "Instabug: Instabug.framework.dSYM successfully copied in project directory." -fi - -InstabugCore_DSYM_PATH=($(find "${PROJECT_DIR}" -name 'InstabugCore.framework.dSYM')) -if [ ! "${InstabugCore_DSYM_PATH}" ]; then -echo "Instabug: can not find InstabugCore.framework.dSYM in project directory." -else -cp -r "${InstabugCore_DSYM_PATH}" "${ARCHIVE_DSYMS_PATH}" -echo "Instabug: InstabugCore.framework.dSYM successfully copied in project directory." -fi - -find "${PROJECT_DIR}" -name "*.bcsymbolmap" | (while read -r file -do - cp -r "${file}" "${ARCHIVE_DSYMS_PATH}/../BCSymbolMaps" -done -) -echo "Instabug: Injecting dSYM and bcsymbolmap inside project archive complete." - diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 10.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 10.mom deleted file mode 100644 index 8c799ac0..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 10.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 11.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 11.mom deleted file mode 100644 index fd441e9e..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 11.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 12.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 12.mom deleted file mode 100644 index 15414ca5..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 12.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 14.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 14.mom deleted file mode 100644 index d5b7ca9d..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 14.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 15.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 15.mom deleted file mode 100644 index 34a84ad6..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 15.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 16.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 16.mom deleted file mode 100644 index 37c50320..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 16.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 17.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 17.mom deleted file mode 100644 index 95e49302..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 17.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 18.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 18.mom deleted file mode 100644 index 423f39dc..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 18.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 18.omo b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 18.omo deleted file mode 100644 index a0a7e3ff..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 18.omo and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 2.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 2.mom deleted file mode 100644 index a467c481..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 2.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 3.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 3.mom deleted file mode 100644 index ccfe9f1b..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 3.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 7.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 7.mom deleted file mode 100644 index 26310c1c..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 7.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 8.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 8.mom deleted file mode 100644 index aa452201..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 8.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 9.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 9.mom deleted file mode 100644 index e66e1f47..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 9.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel.mom deleted file mode 100644 index ce7d8bed..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/VersionInfo.plist b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/VersionInfo.plist deleted file mode 100644 index 1f6f8a1d..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugDataModel.momd/VersionInfo.plist and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 2.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 2.mom deleted file mode 100644 index d88fb20c..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 2.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 3.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 3.mom deleted file mode 100644 index 3b13084a..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 3.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 3.omo b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 3.omo deleted file mode 100644 index 69460256..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 3.omo and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel.mom deleted file mode 100644 index 40bead41..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/VersionInfo.plist b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/VersionInfo.plist deleted file mode 100644 index f83969fb..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugSurveysDataModel.momd/VersionInfo.plist and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 2.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 2.mom deleted file mode 100644 index f491d600..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 2.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 3.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 3.mom deleted file mode 100644 index 1450915a..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 3.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 3.omo b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 3.omo deleted file mode 100644 index 8e53f3a4..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 3.omo and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel.mom b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel.mom deleted file mode 100644 index 0d4e1e67..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel.mom and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/VersionInfo.plist b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/VersionInfo.plist deleted file mode 100644 index 56ce27f6..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/InstabugUserStepsDataModel.momd/VersionInfo.plist and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Instabug_dsym_upload.sh b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Instabug_dsym_upload.sh deleted file mode 100755 index 56ecb8d4..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/Instabug_dsym_upload.sh +++ /dev/null @@ -1,161 +0,0 @@ -#!/bin/bash -# Copyright 2014 Instabug, Inc. All rights reserved. -# -# Usage: -# * In the project editor, select your target. -# * Click "Build Phases" at the top of the project editor. -# * Click "+" button in the top left corner. -# * Choose "New Run Script Build Phase." -# * Uncomment and paste the following script. -# -# --- INVOCATION SCRIPT BEGIN --- -# # SKIP_SIMULATOR_BUILDS=1 -# SCRIPT_SRC=$(find "$PROJECT_DIR" -name 'Instabug_dsym_upload.sh' | head -1) -# if [ ! "${SCRIPT_SRC}" ]; then -# echo "Instabug: err: script not found. Make sure that you're including Instabug.bundle in your project directory" -# exit 1 -# fi -# source "${SCRIPT_SRC}" -# --- INVOCATION SCRIPT END --- - -echo "Instabug: Started uploading dSYM" - -# Check for simulator builds -if [ "$EFFECTIVE_PLATFORM_NAME" == "-iphonesimulator" ]; then - if [ "${SKIP_SIMULATOR_BUILDS}" ] && [ "${SKIP_SIMULATOR_BUILDS}" -eq 1 ]; then - echo "Instabug: Skipping simulator build" - exit 0 - fi -fi - -# Check to make sure the app token exists -# Objective-C -if [ ! "${APP_TOKEN}" ]; then - APP_TOKEN=$(grep -r 'Instabug startWithToken:@\"[0-9a-zA-Z]*\"' ./ -m 1 | grep -o '\"[0-9a-zA-Z]*\"' | cut -d "\"" -f 2) -fi - -# Swift -if [ ! "${APP_TOKEN}" ]; then - APP_TOKEN=$(grep -r 'Instabug.startWithToken(\"[0-9a-zA-Z]*\"' ./ -m 1 | grep -o '\"[0-9a-zA-Z]*\"' | cut -d "\"" -f 2) -fi - -if [ ! "${APP_TOKEN}" ]; then - APP_TOKEN=$(grep -r 'Instabug.start(withToken:\"[0-9a-zA-Z]*\"' ./ -m 1 | grep -o '\"[0-9a-zA-Z]*\"' | cut -d "\"" -f 2) -fi - -if [ ! "${APP_TOKEN}" ] || [ -z "${APP_TOKEN}" ];then - echo "Instabug: err: APP_TOKEN not found. Make sure you've added the SDK initialization line [Instabug startWithToken: invocationEvent:]" - exit 1 -fi -echo "Instabug: found APP_TOKEN=${APP_TOKEN}" - -# Check internet connection -set -x - -CURL_RESPONSE=$(curl 'https://api.instabug.com') - -if [[ $CURL_RESPONSE != *"OK"* ]]; then - echo "ERROR connecting to api.instabug.com." - echo "${CURL_RESPONSE}" - exit 0 -else - echo SUCCESS -fi - -set +x - -# Create temp directory if not exists -CURRENT_USER=$(whoami| tr -dc '[:alnum:]\n\r' | tr '[:upper:]' '[:lower:]') -TEMP_ROOT="/tmp/Instabug-${CURRENT_USER}" -if [ ! -d "${TEMP_ROOT}" ]; then -mkdir "${TEMP_ROOT}" -fi -TEMP_DIRECTORY="${TEMP_ROOT}/$EXECUTABLE_NAME" -if [ ! -d "${TEMP_DIRECTORY}" ]; then -mkdir "${TEMP_DIRECTORY}" -fi - -# Check dSYM file -if [ ! "${DSYM_PATH}" ]; then - if [ ! "${DWARF_DSYM_FOLDER_PATH}" ] || [ ! "${DWARF_DSYM_FILE_NAME}" ]; then - echo "Instabug: err: DWARF_DSYM_FOLDER_PATH or DWARF_DSYM_FILE_NAME not defined" - exit 0 - fi - DSYM_PATH=${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME} -fi -echo "Instabug: found DSYM_PATH=${DSYM_PATH}" - -# Check if UUIDs exists -DSYMS_DIR="${TEMP_DIRECTORY}/dSYM" - -if [ -d "${DSYMS_DIR}" ]; then - rm -rf "${DSYMS_DIR}" -fi - -mkdir "$DSYMS_DIR" -DSYM_UUIDs="" -SEPARATOR=$'\n' -DSYM_UUIDs_PATH="${TEMP_DIRECTORY}/UUIDs.dat" - - -find "${DWARF_DSYM_FOLDER_PATH}" -name "*.dSYM" | (while read -r file -do - UUIDs=$(dwarfdump --uuid "${file}" | cut -d ' ' -f2) - if [ -f "${DSYM_UUIDs_PATH}" ]; then - for uuid in $UUIDs - do - UUIDTOKEN="${uuid}"-"${APP_TOKEN}" - if ! grep -w "${UUIDTOKEN}" "${DSYM_UUIDs_PATH}" ; then - cp -r "${file}" "${DSYMS_DIR}" - DSYM_UUIDs+=$uuid$SEPARATOR - fi - done - else - cp -r "${file}" "${DSYMS_DIR}" - DSYM_UUIDs+=${UUIDs}$SEPARATOR - fi -done - -if [ -z "$DSYM_UUIDs" ]; then - rm -rf "${DSYMS_DIR}" - exit 0 -fi - - -DSYM_UUIDs_TOKEN="${DSYM_UUIDs//${SEPARATOR}/-${APP_TOKEN}$'\n'}" - -# Create dSYM .zip file -DSYM_PATH_ZIP="${TEMP_DIRECTORY}/$DWARF_DSYM_FILE_NAME.zip" -if [ ! -d "$DSYM_PATH" ]; then - echo "Instabug: err: dSYM not found: ${DSYM_PATH}" - exit 0 -fi -echo "Instabug: Compressing dSYM file..." -(/usr/bin/zip --recurse-paths --quiet "${DSYM_PATH_ZIP}" "${DSYMS_DIR}") || exit 0 - -# Upload dSYM -echo "Instabug: Uploading dSYM file..." -ENDPOINT="https://api.instabug.com/api/sdk/v3/symbols_files" -STATUS=$(curl "${ENDPOINT}" --write-out %{http_code} --silent --output /dev/null -F os=iOS -F symbols_file=@"${DSYM_PATH_ZIP}" -F application_token="${APP_TOKEN}") -if [ $STATUS -ne 200 ]; then - echo "Instabug: err: dSYM archive not succesfully uploaded." - echo "Instabug: deleting temporary dSYM archive..." - rm -f "${DSYM_PATH_ZIP}" - exit 0 -fi - -# Remove temp dSYM archive and dSYM DIR -echo "Instabug: deleting temporary dSYM archive..." -rm -f "${DSYM_PATH_ZIP}" -rm -rf "${DSYMS_DIR}" - -# Save UUIDs -echo "${DSYM_UUIDs_TOKEN}" >> "${DSYM_UUIDs_PATH}" - -# Finalize -echo "Instabug: dSYM upload complete." -if [ "$?" -ne 0 ]; then - echo "Instabug: err: an error was encountered uploading dSYM" - exit 0 -fi -) diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/ar.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/ar.lproj/Localizable.strings deleted file mode 100644 index f509aa45..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/ar.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/cs.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/cs.lproj/Localizable.strings deleted file mode 100644 index 6247a5d1..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/cs.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/da.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/da.lproj/Localizable.strings deleted file mode 100644 index 23ae262a..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/da.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/de.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/de.lproj/Localizable.strings deleted file mode 100644 index bcdf6bbf..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/de.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/en.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/en.lproj/Localizable.strings deleted file mode 100644 index 77460fa9..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/en.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/en.lproj/Localizable.stringsdict b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/en.lproj/Localizable.stringsdict deleted file mode 100644 index 3e6913f6..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/en.lproj/Localizable.stringsdict and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/es.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/es.lproj/Localizable.strings deleted file mode 100644 index ba11e887..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/es.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/fr.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/fr.lproj/Localizable.strings deleted file mode 100644 index 9c5219c2..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/fr.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/hu.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/hu.lproj/Localizable.strings deleted file mode 100644 index b0eabb62..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/hu.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/it.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/it.lproj/Localizable.strings deleted file mode 100644 index d10fbf1b..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/it.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/ja.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/ja.lproj/Localizable.strings deleted file mode 100644 index fb653765..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/ja.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/ko.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/ko.lproj/Localizable.strings deleted file mode 100644 index 8af8c863..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/ko.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/nb.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/nb.lproj/Localizable.strings deleted file mode 100644 index 244b8f50..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/nb.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/nl.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/nl.lproj/Localizable.strings deleted file mode 100644 index f65bed1b..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/nl.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/pl.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/pl.lproj/Localizable.strings deleted file mode 100644 index 331d0533..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/pl.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/pt-BR.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/pt-BR.lproj/Localizable.strings deleted file mode 100644 index 76291d07..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/pt-BR.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/pt-PT.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/pt-PT.lproj/Localizable.strings deleted file mode 100644 index 55b2e73d..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/pt-PT.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/ru.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/ru.lproj/Localizable.strings deleted file mode 100644 index 19853096..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/ru.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/sk.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/sk.lproj/Localizable.strings deleted file mode 100644 index 26082b6f..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/sk.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/sv.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/sv.lproj/Localizable.strings deleted file mode 100644 index 2d79e85b..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/sv.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/tr.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/tr.lproj/Localizable.strings deleted file mode 100644 index d763356d..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/tr.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/zh-Hans.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/zh-Hans.lproj/Localizable.strings deleted file mode 100644 index 368e0d95..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/zh-Hans.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/zh-Hant-TW.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/zh-Hant-TW.lproj/Localizable.strings deleted file mode 100644 index 9c150879..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/zh-Hant-TW.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/zh-Hant.lproj/Localizable.strings b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/zh-Hant.lproj/Localizable.strings deleted file mode 100644 index 9642f7c6..00000000 Binary files a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/InstabugResources.bundle/zh-Hant.lproj/Localizable.strings and /dev/null differ diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Modules/module.modulemap b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Modules/module.modulemap deleted file mode 100644 index 22c7c5db..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/Modules/module.modulemap +++ /dev/null @@ -1,6 +0,0 @@ -framework module Instabug { - umbrella header "Instabug.h" - - export * - module * { export * } -} diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/_CodeSignature/CodeResources b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/_CodeSignature/CodeResources deleted file mode 100644 index 2cbffa66..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/_CodeSignature/CodeResources +++ /dev/null @@ -1,1624 +0,0 @@ - - - - - files - - Headers/IBGBugReporting.h - - afnakipzJI2yKxGE8DsH+ql0V+M= - - Headers/IBGChats.h - - bxtzQ2pcy1OoWXdEKbfV3RRInbA= - - Headers/IBGCrashReporting.h - - tigrY++RsP2rfNwWiTydnBNPYKQ= - - Headers/IBGFeatureRequests.h - - g6/2AwbM+JBtUOIBy9pv93hP3RY= - - Headers/IBGLog.h - - kOQ8c5P7QHOlPPwQSTo27C9eygE= - - Headers/IBGNetworkLogger.h - - cjtiKVDppEpfLL1UcukqsTvI4Wg= - - Headers/IBGReplies.h - - jFOo5IWYyoqFL9+XA2FcpGOYOHA= - - Headers/IBGReport.h - - jqvjTfQzVkTaCt0pZwrQlCAbRXM= - - Headers/IBGSurvey.h - - zx6dU8/D7TCuC2VL1S0q3kj1Ebg= - - Headers/IBGSurveys.h - - 6iyoclV4JthlPjiKEw97ZVfS2/k= - - Headers/IBGTypes.h - - gnhcfy6l/7B56eQGc14hA5+dIUQ= - - Headers/Instabug.h - - 1Yfjx9b0lzeZ/aN9DIRFB7ysm50= - - Headers/InstabugCore.h - - FjRIsvKEZEZ5Bip5LbNpZCfhyKU= - - Headers/UIView+Instabug.h - - ifWPRYgpF0PlC1srwJgOVOY9IQ4= - - Info.plist - - dpZBIkD/9AiFQ/oFh9dZBsAIZVo= - - InstabugResources.bundle/Assets.car - - 5CLxrDHF5Mbfiby/HNHDj+liPxo= - - InstabugResources.bundle/Config.plist - - zmV6UqBSo6r1NOz798vd5O4zTBA= - - InstabugResources.bundle/IBGActionSheetCell.nib - - S8olySj5QCBScqR2RUfATxG+sGI= - - InstabugResources.bundle/IBGActionSheetVC-iPhone.nib/objects-11.0+.nib - - L1xvmh8Dd2yorpTuZ6+BZRO/xIA= - - InstabugResources.bundle/IBGActionSheetVC-iPhone.nib/runtime.nib - - XMOvNTY3UQoZLDz1cpO0xpnVmtI= - - InstabugResources.bundle/IBGBugVC-iPhone.nib/objects-11.0+.nib - - XMDO5/scZaiQ+X3LSbXeIkHH1ro= - - InstabugResources.bundle/IBGBugVC-iPhone.nib/runtime.nib - - PB3KIqeuD0o2ujI5VPpq+7OsyrM= - - InstabugResources.bundle/IBGChatCell.nib - - NpYGNcLbpITUy5TW612IVWNRs0U= - - InstabugResources.bundle/IBGChatListVC-iPhone.nib - - 8PSoFJQNpLuC7QjLZ5kEDUNqkQk= - - InstabugResources.bundle/IBGChatVC-iPhone.nib/objects-11.0+.nib - - bBTI5OInKj9y9oZGl2Bhe/FLisI= - - InstabugResources.bundle/IBGChatVC-iPhone.nib/runtime.nib - - /CGIVqZHFwIpEeGXec3GsRVo37I= - - InstabugResources.bundle/IBGFullScreenImageViewController.nib - - 8w9ecMie6E+CZkjZyEaMXjwkM3g= - - InstabugResources.bundle/IBGPoweredByView.nib - - ovnFKGQ67qy7I5yRTXnEEFdAFhc= - - InstabugResources.bundle/IBGPromptCell.nib - - P4y5SRJVo7IYq7qu1m54DRvYbmU= - - InstabugResources.bundle/IBGPromptVC-iPhone.nib - - ziib8UZBp3yXxyQrQFFd4OdNkeo= - - InstabugResources.bundle/IBGReplyView-iPhone.nib - - Aaaj2ztF9rd94WbNGrbiHRZgmBw= - - InstabugResources.bundle/IBGReportCategoriesVC-iPhone.nib - - uy4D77YKokRD6jLyOOwkMZdimYA= - - InstabugResources.bundle/IBGScreenshotVC-iPhone.nib - - HvPnGgZ91FFlDUNFsSu7eGfTm9Q= - - InstabugResources.bundle/IBGVideoPlaybackViewController.nib - - VEDoikwpolOb8LkZd3x7FtzVW/0= - - InstabugResources.bundle/IBGVoiceNoteRecordingViewController-iPhone.nib - - AktfjZ82vcHOkpHBmoLStYowRF8= - - InstabugResources.bundle/Info.plist - - tE16oC1MLQ/Z+A6srME7IvgPPm8= - - InstabugResources.bundle/Inject_DSYM_Project-Archive.sh - - K+qqKSlG2L7jBTzxekvA8TklxvQ= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 10.mom - - NtIzBzkxwtmIlGVa26zMGx7h9t8= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 11.mom - - xijbM5iakJNIZsEOjCEvlpNP88M= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 12.mom - - fCTQP3x1e78pecuXMGSk71wO30Q= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 14.mom - - f4nCSb6fr5AO7hD/8xOCFE7pSjk= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 15.mom - - mUJCx0jjg6RDiFXDGg/bAFI2Ujg= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 16.mom - - H4DhAV+v4eieQaHdYIVS9pko1C0= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 17.mom - - 4hoQPWCsbqxMvYUa/9af9G5HarU= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 18.mom - - eAL5kY1ZuRqBxwqVNdNr+ygeJqA= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 18.omo - - EHzBDnsztQtqWop3hF4jtSb2luk= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 2.mom - - MAXC3qUm4Hz0GxTPshNHNpdrDaQ= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 3.mom - - jrqCkVaU14U8RPQBdO9pS/0Pk4I= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 7.mom - - 3sQ76HG4DgxopC8dddbOkaenrF8= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 8.mom - - Z8qLTaCqiQMWebQMUeW3XlVxQSc= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 9.mom - - KnURQnAJj79EnjLNGP0Q3LMJmwY= - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel.mom - - 6kSXQ1euyJl1gPfPnihcaMR42X4= - - InstabugResources.bundle/InstabugDataModel.momd/VersionInfo.plist - - afGEL8pXxbwpBhhJc7ktkNcKRtM= - - InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 2.mom - - uPTeQx4GSXNzcCSGt6bnwNtf1MM= - - InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 3.mom - - /D3N3UTpso7eI0K7eA7Q8XIWpf8= - - InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 3.omo - - 21Ggs1YN7wxg9iSSx9Wt22+P5Uo= - - InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel.mom - - uuP2ulMvf1OBb5sF/e6DZZM4nIk= - - InstabugResources.bundle/InstabugSurveysDataModel.momd/VersionInfo.plist - - G1Bg1aeVzkCQuyOFYhgFDNlOPwo= - - InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 2.mom - - xRD/4YQf7/7WvGvEOYY8rNbnQdY= - - InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 3.mom - - 0gUb4tg8QZMqNa+A/RYQpZE0DfM= - - InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 3.omo - - cxVqHpp4qHO6q1z217J+RlZW71Y= - - InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel.mom - - ButF4Xcgg9Qmsh1+gT5aCuD0ziY= - - InstabugResources.bundle/InstabugUserStepsDataModel.momd/VersionInfo.plist - - nab4b4gKrDCEJ8KBvhY22cG3pQg= - - InstabugResources.bundle/Instabug_dsym_upload.sh - - YwvQgjUt9aYQ6fnSpWcgegBKAN8= - - InstabugResources.bundle/ar.lproj/Localizable.strings - - hash - - 0c8PwYVKTJMf6pl39LcQQlYo6Vg= - - optional - - - InstabugResources.bundle/cs.lproj/Localizable.strings - - hash - - jPym+H9KaCHXBTXF7lXAs7RcROE= - - optional - - - InstabugResources.bundle/da.lproj/Localizable.strings - - hash - - MCKDTZjnuMc9cazLzTMVNNAjKa8= - - optional - - - InstabugResources.bundle/de.lproj/Localizable.strings - - hash - - wNyCKpeIGm+qFD/Npjzfzh40udQ= - - optional - - - InstabugResources.bundle/en.lproj/Localizable.strings - - hash - - Q0cyugens6vSJHFv1ep6xOYgca4= - - optional - - - InstabugResources.bundle/en.lproj/Localizable.stringsdict - - hash - - JT8QT5SebrK2XFFs3Iov80e9WkI= - - optional - - - InstabugResources.bundle/es.lproj/Localizable.strings - - hash - - qQWb7BEwjspMnS3J290F9imn7CA= - - optional - - - InstabugResources.bundle/fr.lproj/Localizable.strings - - hash - - EY7JFvv6xspEmq2lKbB/WBdwGNA= - - optional - - - InstabugResources.bundle/hu.lproj/Localizable.strings - - hash - - +XiU6Ye87aTTy7ZRKkH7EERaHJw= - - optional - - - InstabugResources.bundle/it.lproj/Localizable.strings - - hash - - CNSbndr5PsimZJgdDpgNThw4QiA= - - optional - - - InstabugResources.bundle/ja.lproj/Localizable.strings - - hash - - YnWLHE//rbHUC0Rq4MbzjhB6meM= - - optional - - - InstabugResources.bundle/ko.lproj/Localizable.strings - - hash - - yjEZXH2WCVEBOdge99n2XH9nScg= - - optional - - - InstabugResources.bundle/nb.lproj/Localizable.strings - - hash - - /4exiVumFA6b/Prb99kdRXafxcM= - - optional - - - InstabugResources.bundle/nl.lproj/Localizable.strings - - hash - - QTVvV/IBH6VveOhfclcy7O3xHq8= - - optional - - - InstabugResources.bundle/pl.lproj/Localizable.strings - - hash - - 96VQ7gT1Uqobw3mvD1sC8+UMMZY= - - optional - - - InstabugResources.bundle/pt-BR.lproj/Localizable.strings - - hash - - wEF/y2z2xAONBtGRnAU5s3zKBW0= - - optional - - - InstabugResources.bundle/pt-PT.lproj/Localizable.strings - - hash - - IbWDp7bSBqeLlEUWvHYcsSzob/A= - - optional - - - InstabugResources.bundle/ru.lproj/Localizable.strings - - hash - - M8QY7qfqcjJemQrufAaMPHusYbY= - - optional - - - InstabugResources.bundle/sk.lproj/Localizable.strings - - hash - - fTrU5tkT3OFcJlUca/Ga6mR+fd0= - - optional - - - InstabugResources.bundle/sv.lproj/Localizable.strings - - hash - - aGQkIdBbklGWxRPKhajX7zW8aG4= - - optional - - - InstabugResources.bundle/tr.lproj/Localizable.strings - - hash - - fr9nUeXIz5dk7OW6t9rq0w64b+s= - - optional - - - InstabugResources.bundle/zh-Hans.lproj/Localizable.strings - - hash - - x+b5VrXz5e2tK/Sf7xQXDcqVKg8= - - optional - - - InstabugResources.bundle/zh-Hant-TW.lproj/Localizable.strings - - hash - - H9QIDM7ZrXlvoct1CTAwKtAX2Vk= - - optional - - - InstabugResources.bundle/zh-Hant.lproj/Localizable.strings - - hash - - pjELqkuhnFd6eiYYYbjukmSsXMY= - - optional - - - Modules/module.modulemap - - s54rO/plG4RUZ8kXQnWo2++r/vQ= - - strip-frameworks.sh - - +MG0vr81f9BYFi8t9r2Wy0CFRAQ= - - - files2 - - Headers/IBGBugReporting.h - - hash - - afnakipzJI2yKxGE8DsH+ql0V+M= - - hash2 - - EpEtZPan06mhhcd6Cy6aWjgp6UN/rU3TWDuuhytIYvU= - - - Headers/IBGChats.h - - hash - - bxtzQ2pcy1OoWXdEKbfV3RRInbA= - - hash2 - - V9hCZ8DaprwJ46KjfWUCxcX0ALatFkOf1N6J1DCHIBg= - - - Headers/IBGCrashReporting.h - - hash - - tigrY++RsP2rfNwWiTydnBNPYKQ= - - hash2 - - bWva8cXmBCyut2+BTe2Oy9mcZEw4DViVBuUN5vedF1k= - - - Headers/IBGFeatureRequests.h - - hash - - g6/2AwbM+JBtUOIBy9pv93hP3RY= - - hash2 - - e956EUyjv2XGTzaXRS34i9Ukdafjy68GGwZcj+r6cEc= - - - Headers/IBGLog.h - - hash - - kOQ8c5P7QHOlPPwQSTo27C9eygE= - - hash2 - - 3F9RgYxWCKkJC+AJ9NT6lunN7vVkW3rXySmKxEhh7Vc= - - - Headers/IBGNetworkLogger.h - - hash - - cjtiKVDppEpfLL1UcukqsTvI4Wg= - - hash2 - - f0YcvHibQwNe8wXfgwelGP3yRjDEHSQIh40GfOLLkF0= - - - Headers/IBGReplies.h - - hash - - jFOo5IWYyoqFL9+XA2FcpGOYOHA= - - hash2 - - xsihLYNjc8bWjyB+zMriIFUW505Su6lCdz92lajURWo= - - - Headers/IBGReport.h - - hash - - jqvjTfQzVkTaCt0pZwrQlCAbRXM= - - hash2 - - paHuVWTQuf118JEXNoo7fYXWGStFAo4OCxYMqQuW1fk= - - - Headers/IBGSurvey.h - - hash - - zx6dU8/D7TCuC2VL1S0q3kj1Ebg= - - hash2 - - 2QSoETITnqtRBNAMxIOXC/jV4j6VdotIMIst11g4GzU= - - - Headers/IBGSurveys.h - - hash - - 6iyoclV4JthlPjiKEw97ZVfS2/k= - - hash2 - - TS2JkxWg6Ykf0qku4LWdccht97FIutbElbqqwIAJw68= - - - Headers/IBGTypes.h - - hash - - gnhcfy6l/7B56eQGc14hA5+dIUQ= - - hash2 - - QPDVagxAwMFygd0HjVEmWG7TuxPnX60bVaLcMQmsYig= - - - Headers/Instabug.h - - hash - - 1Yfjx9b0lzeZ/aN9DIRFB7ysm50= - - hash2 - - WmjQDb5CYUSDTbZkGkxnB0j+x9pJbzWrCnuoV31EIOE= - - - Headers/InstabugCore.h - - hash - - FjRIsvKEZEZ5Bip5LbNpZCfhyKU= - - hash2 - - lnZdk5zGzx6PuYs6UnSvGGB2njX+PHozmKZ7bwF4JL4= - - - Headers/UIView+Instabug.h - - hash - - ifWPRYgpF0PlC1srwJgOVOY9IQ4= - - hash2 - - R5FcJwbxuhRhSJqdwmU/kr16xRCIuecT2DXIabAtq70= - - - InstabugResources.bundle/Assets.car - - hash - - 5CLxrDHF5Mbfiby/HNHDj+liPxo= - - hash2 - - lpY2PUag91P0VFT5vjTajPo05SFxcvYxgY8KdsOd5Dg= - - - InstabugResources.bundle/Config.plist - - hash - - zmV6UqBSo6r1NOz798vd5O4zTBA= - - hash2 - - kmHsztpgjvF0JW5f3HdMHm49z1M0CcG8OT1JDQHHE/E= - - - InstabugResources.bundle/IBGActionSheetCell.nib - - hash - - S8olySj5QCBScqR2RUfATxG+sGI= - - hash2 - - UYaJ3U1V2F5sTezAoCWfqqpHmQtfB8DNpw4qYjNhFuI= - - - InstabugResources.bundle/IBGActionSheetVC-iPhone.nib/objects-11.0+.nib - - hash - - L1xvmh8Dd2yorpTuZ6+BZRO/xIA= - - hash2 - - c5KIvgHLl6Y6gM45TQPRuAjuUCPv0fdPjslAzeLQ5rk= - - - InstabugResources.bundle/IBGActionSheetVC-iPhone.nib/runtime.nib - - hash - - XMOvNTY3UQoZLDz1cpO0xpnVmtI= - - hash2 - - 9HjTMC3IGIUe96AHE74q/FN0mYaUlHygbokLIFJnN0o= - - - InstabugResources.bundle/IBGBugVC-iPhone.nib/objects-11.0+.nib - - hash - - XMDO5/scZaiQ+X3LSbXeIkHH1ro= - - hash2 - - 88zgt9JU4lYjvBgWE6TKyNV96qY6DheuXU/jAhOfAVc= - - - InstabugResources.bundle/IBGBugVC-iPhone.nib/runtime.nib - - hash - - PB3KIqeuD0o2ujI5VPpq+7OsyrM= - - hash2 - - JxLkLlFFswDjYLflgdfI6DLsy47/PoC+h2N3yX/c8ng= - - - InstabugResources.bundle/IBGChatCell.nib - - hash - - NpYGNcLbpITUy5TW612IVWNRs0U= - - hash2 - - t+ZGYs+NQxTwoxjlRoP68AS4Kia/BKrh4ouYB0cA3wk= - - - InstabugResources.bundle/IBGChatListVC-iPhone.nib - - hash - - 8PSoFJQNpLuC7QjLZ5kEDUNqkQk= - - hash2 - - 6Iv1+cGHpZg1v66CvJ1cfBF3sVmse+i+7rOFDbq7SHg= - - - InstabugResources.bundle/IBGChatVC-iPhone.nib/objects-11.0+.nib - - hash - - bBTI5OInKj9y9oZGl2Bhe/FLisI= - - hash2 - - NWPV5HVPtCAt1iym0V1VkA9gv2hVYQPH804vpW1u/Hg= - - - InstabugResources.bundle/IBGChatVC-iPhone.nib/runtime.nib - - hash - - /CGIVqZHFwIpEeGXec3GsRVo37I= - - hash2 - - JIslkmYEuaN/7F5YzX9XnqZHDwPJKDXu254hqjt/Mf8= - - - InstabugResources.bundle/IBGFullScreenImageViewController.nib - - hash - - 8w9ecMie6E+CZkjZyEaMXjwkM3g= - - hash2 - - 6C3IpmWPyaIi4aCanWy7DhiT9XokAM0Iw3LMTHuD6C8= - - - InstabugResources.bundle/IBGPoweredByView.nib - - hash - - ovnFKGQ67qy7I5yRTXnEEFdAFhc= - - hash2 - - goAeRZPJQF8zV2omfZFrQLzobn7ubGh0YTYMNTMXKpE= - - - InstabugResources.bundle/IBGPromptCell.nib - - hash - - P4y5SRJVo7IYq7qu1m54DRvYbmU= - - hash2 - - 8GfKbNElLWvRh/efFM2bOq3wwHbB+14IBzSIA2oGQU4= - - - InstabugResources.bundle/IBGPromptVC-iPhone.nib - - hash - - ziib8UZBp3yXxyQrQFFd4OdNkeo= - - hash2 - - vw036jUaeQgajE+MULJ5rB4qcLg4Zxne62wPP0IuzT8= - - - InstabugResources.bundle/IBGReplyView-iPhone.nib - - hash - - Aaaj2ztF9rd94WbNGrbiHRZgmBw= - - hash2 - - wk4TtiGGPcbhraQdDKGhByhg4S+TrkCRbdi41FDVRTk= - - - InstabugResources.bundle/IBGReportCategoriesVC-iPhone.nib - - hash - - uy4D77YKokRD6jLyOOwkMZdimYA= - - hash2 - - HM+zrvcJ1F9YDcIyZdxakUjDUYqx9FQfl6v89GAd+64= - - - InstabugResources.bundle/IBGScreenshotVC-iPhone.nib - - hash - - HvPnGgZ91FFlDUNFsSu7eGfTm9Q= - - hash2 - - 7c3bKC9uApG+cYmUzdHo4QnIPCbTR0rLnOYhuDhdw2M= - - - InstabugResources.bundle/IBGVideoPlaybackViewController.nib - - hash - - VEDoikwpolOb8LkZd3x7FtzVW/0= - - hash2 - - aV+i284ovvSLY4rwbQ4I5YN4vVWOqHLjwzZ1/ELGBIA= - - - InstabugResources.bundle/IBGVoiceNoteRecordingViewController-iPhone.nib - - hash - - AktfjZ82vcHOkpHBmoLStYowRF8= - - hash2 - - v3udsM3aYk149uBClXKGH4pG7TBl+CzhbkAVUJW65hs= - - - InstabugResources.bundle/Info.plist - - hash - - tE16oC1MLQ/Z+A6srME7IvgPPm8= - - hash2 - - e/KGfRgZaYm1PU6ZQ/of7aFH+HNpeCyO9Sa2pkBeGtU= - - - InstabugResources.bundle/Inject_DSYM_Project-Archive.sh - - hash - - K+qqKSlG2L7jBTzxekvA8TklxvQ= - - hash2 - - STmY6jc7rqCtoJkhAzZah2dRtLkU77lmbhULW/xd9wo= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 10.mom - - hash - - NtIzBzkxwtmIlGVa26zMGx7h9t8= - - hash2 - - Sr/Mv/QEnoWJRwX1rFxRmpPboUmRVNIl8e53mZeHaPM= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 11.mom - - hash - - xijbM5iakJNIZsEOjCEvlpNP88M= - - hash2 - - NR9ZtMdFtKQs6iBgVVJTVcjO20dB4GzQR9Md5vGi/cs= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 12.mom - - hash - - fCTQP3x1e78pecuXMGSk71wO30Q= - - hash2 - - KBYFIfXBVYh3prnbK+jWNfLWuaBrb80x3bth2niLjig= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 14.mom - - hash - - f4nCSb6fr5AO7hD/8xOCFE7pSjk= - - hash2 - - jRyKdXxGmvbxO1Vw78f3ogPhZHLuN0ieCRltwM1lC2M= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 15.mom - - hash - - mUJCx0jjg6RDiFXDGg/bAFI2Ujg= - - hash2 - - 3cD+4cgJ6IGtrceIqfXP6qhi21S9ubrQBbvd+TDUeXI= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 16.mom - - hash - - H4DhAV+v4eieQaHdYIVS9pko1C0= - - hash2 - - AlupGKxzckyQ9Lma4I8o0K9ymDeaSSeNnFnDS3PKRkA= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 17.mom - - hash - - 4hoQPWCsbqxMvYUa/9af9G5HarU= - - hash2 - - 7s10E1iwCClLnhEtvvJa2ppxRNEeL1KY6vDknSNJFI4= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 18.mom - - hash - - eAL5kY1ZuRqBxwqVNdNr+ygeJqA= - - hash2 - - R3uU+9PdlfYKkgNNCSyPvPbjcjH+hCqbopdU+Oj1RjY= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 18.omo - - hash - - EHzBDnsztQtqWop3hF4jtSb2luk= - - hash2 - - Toi8E0R2qkzFlM/z6chOVisCrjPYp7U80iYCjdJDBzE= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 2.mom - - hash - - MAXC3qUm4Hz0GxTPshNHNpdrDaQ= - - hash2 - - 2rEJvrNh5C/jr6PA9Xorm67ZLMCnM4NTZmvCj1Y0ORQ= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 3.mom - - hash - - jrqCkVaU14U8RPQBdO9pS/0Pk4I= - - hash2 - - pic6pqmCe3o1i/PGdHjX4QFhxkA+6K/4hpI8G0HhoFA= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 7.mom - - hash - - 3sQ76HG4DgxopC8dddbOkaenrF8= - - hash2 - - LzCp1euKwcnCJSQAkugSCTQUzOIHQJjg9wljfYcs+tg= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 8.mom - - hash - - Z8qLTaCqiQMWebQMUeW3XlVxQSc= - - hash2 - - f/dvnHZkel669rD2DaKYRhBM6+Hay+17coFa/Pl8NwY= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel 9.mom - - hash - - KnURQnAJj79EnjLNGP0Q3LMJmwY= - - hash2 - - nW0gYK5E7htGqg+G8zpBYlwIlq5HTkgBbMXEAC6xZ2c= - - - InstabugResources.bundle/InstabugDataModel.momd/InstabugDataModel.mom - - hash - - 6kSXQ1euyJl1gPfPnihcaMR42X4= - - hash2 - - Rch/x/qp0RsZkJlj+D3NK15uhxv3R3uOAjxV1mNvGjU= - - - InstabugResources.bundle/InstabugDataModel.momd/VersionInfo.plist - - hash - - afGEL8pXxbwpBhhJc7ktkNcKRtM= - - hash2 - - pcMG7sGFuLO5Jb5IbHCNrf7xXnu9VQ9yr/cr3Br4vKc= - - - InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 2.mom - - hash - - uPTeQx4GSXNzcCSGt6bnwNtf1MM= - - hash2 - - Y4WNm//imxCh2r+OO+NSPN9SwAFJeQ3wg8HCVCtVKyQ= - - - InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 3.mom - - hash - - /D3N3UTpso7eI0K7eA7Q8XIWpf8= - - hash2 - - Owj2qeVMy/EM0sJGsYa2ZTRibDr7xH1Bp2k0FVwhIeU= - - - InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel 3.omo - - hash - - 21Ggs1YN7wxg9iSSx9Wt22+P5Uo= - - hash2 - - bs0ZOQht2GfEr61aj90+VTjDlHsZQD+SXm1JVMGM3qA= - - - InstabugResources.bundle/InstabugSurveysDataModel.momd/InstabugSurveysDataModel.mom - - hash - - uuP2ulMvf1OBb5sF/e6DZZM4nIk= - - hash2 - - dRzPUxYH+GA5RH825AVP3bGG6w17zyYuTikpYjTnEQI= - - - InstabugResources.bundle/InstabugSurveysDataModel.momd/VersionInfo.plist - - hash - - G1Bg1aeVzkCQuyOFYhgFDNlOPwo= - - hash2 - - ikzLfxdWCza40XxrdFZ+EBlVbf9iTh/RKJRJ9Mr+ujo= - - - InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 2.mom - - hash - - xRD/4YQf7/7WvGvEOYY8rNbnQdY= - - hash2 - - dHp4pKwRsmCRhWzjm+6PM3Xt+YRjN6mYzD2M0J2YMb0= - - - InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 3.mom - - hash - - 0gUb4tg8QZMqNa+A/RYQpZE0DfM= - - hash2 - - ZIuD2KH+Xp1USGOKgqtNbojaefKW94m29ET3G5/VNLE= - - - InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel 3.omo - - hash - - cxVqHpp4qHO6q1z217J+RlZW71Y= - - hash2 - - 6/CTzylOSZGQwRraghcmfTGyzW+qKW3Qnrj7wJtI1vY= - - - InstabugResources.bundle/InstabugUserStepsDataModel.momd/UserStepsDataModel.mom - - hash - - ButF4Xcgg9Qmsh1+gT5aCuD0ziY= - - hash2 - - g184h3sK94QDrHEeJUzXwkAn8qd0dNRk2tprWvMrpW4= - - - InstabugResources.bundle/InstabugUserStepsDataModel.momd/VersionInfo.plist - - hash - - nab4b4gKrDCEJ8KBvhY22cG3pQg= - - hash2 - - KyzmaBsfTZpOBECarbv/SKGwiBCK36mbuckgcHTU5fQ= - - - InstabugResources.bundle/Instabug_dsym_upload.sh - - hash - - YwvQgjUt9aYQ6fnSpWcgegBKAN8= - - hash2 - - LeDN56flghL0QyoiM1P3OOyaA/NJvWoaENzzj4/+OxM= - - - InstabugResources.bundle/ar.lproj/Localizable.strings - - hash - - 0c8PwYVKTJMf6pl39LcQQlYo6Vg= - - hash2 - - 0g27aPF7U+jQb0lO8PwBx66WugjL3db59VKXrmGJaiY= - - optional - - - InstabugResources.bundle/cs.lproj/Localizable.strings - - hash - - jPym+H9KaCHXBTXF7lXAs7RcROE= - - hash2 - - T4ogyjEzuPllJWVAQYGMtQu2WrDkCqWAqIrhSTqV5M4= - - optional - - - InstabugResources.bundle/da.lproj/Localizable.strings - - hash - - MCKDTZjnuMc9cazLzTMVNNAjKa8= - - hash2 - - GH9nLH+U8UCBtd2Ly6PrKDjoODOMvySyIhRAT++E1TY= - - optional - - - InstabugResources.bundle/de.lproj/Localizable.strings - - hash - - wNyCKpeIGm+qFD/Npjzfzh40udQ= - - hash2 - - 84/bS7aBz8tS1mmxofCO0MNcQdshSaHdTiAaDc8DXIM= - - optional - - - InstabugResources.bundle/en.lproj/Localizable.strings - - hash - - Q0cyugens6vSJHFv1ep6xOYgca4= - - hash2 - - rilE6SvLvtXS39BXChrFVP2WR3PgVCEl+B92SrcQtLU= - - optional - - - InstabugResources.bundle/en.lproj/Localizable.stringsdict - - hash - - JT8QT5SebrK2XFFs3Iov80e9WkI= - - hash2 - - Lr6rDy8EAt8S8WL0sGd9Nn5eViv3p1dMB5ttvTej0fk= - - optional - - - InstabugResources.bundle/es.lproj/Localizable.strings - - hash - - qQWb7BEwjspMnS3J290F9imn7CA= - - hash2 - - SOPU5mRPaTUESIB+WiQg2479rdoGTNvEtv/sC9j5M6Q= - - optional - - - InstabugResources.bundle/fr.lproj/Localizable.strings - - hash - - EY7JFvv6xspEmq2lKbB/WBdwGNA= - - hash2 - - nhLeGe29OmeVQori7vB2UnmpJfnXbN3pi+1sNb4jwbA= - - optional - - - InstabugResources.bundle/hu.lproj/Localizable.strings - - hash - - +XiU6Ye87aTTy7ZRKkH7EERaHJw= - - hash2 - - 4RfZjj0ZqziSNZaAfbgAXl9Y1NGjfrJruC1Xpis12/w= - - optional - - - InstabugResources.bundle/it.lproj/Localizable.strings - - hash - - CNSbndr5PsimZJgdDpgNThw4QiA= - - hash2 - - /ol7B2ldaNIyue2ugIG+3NXyAKyG5lt1Ch4l/lqzyIs= - - optional - - - InstabugResources.bundle/ja.lproj/Localizable.strings - - hash - - YnWLHE//rbHUC0Rq4MbzjhB6meM= - - hash2 - - u1cs/Rz1l2IetXru/O01Ie1AAT2w78o5dMIzCocjuRw= - - optional - - - InstabugResources.bundle/ko.lproj/Localizable.strings - - hash - - yjEZXH2WCVEBOdge99n2XH9nScg= - - hash2 - - +UVuEj+d+uKqOqWm1XIxXCLFsJ94Tf66S6jnL5G3JGg= - - optional - - - InstabugResources.bundle/nb.lproj/Localizable.strings - - hash - - /4exiVumFA6b/Prb99kdRXafxcM= - - hash2 - - 664Ev+64Z1IP5DwNdzGowQZhz7PwBrQwQzAPF63WxDU= - - optional - - - InstabugResources.bundle/nl.lproj/Localizable.strings - - hash - - QTVvV/IBH6VveOhfclcy7O3xHq8= - - hash2 - - ptGZF/GoO1tkZfOmthqCuRXL8+8bS+jaW1z8+edflMw= - - optional - - - InstabugResources.bundle/pl.lproj/Localizable.strings - - hash - - 96VQ7gT1Uqobw3mvD1sC8+UMMZY= - - hash2 - - WqtiuV9AXNjbt9keoPjFCIi2/9sSxoC+GZDvUxp5LoU= - - optional - - - InstabugResources.bundle/pt-BR.lproj/Localizable.strings - - hash - - wEF/y2z2xAONBtGRnAU5s3zKBW0= - - hash2 - - O+6Xrz5LDo3qC073sGqaWa4RRIBQCmTlxxdTrzvj8tA= - - optional - - - InstabugResources.bundle/pt-PT.lproj/Localizable.strings - - hash - - IbWDp7bSBqeLlEUWvHYcsSzob/A= - - hash2 - - hGsDureqQhzVoiFehbXe/JF2eovczIDllPD6eZxVhYM= - - optional - - - InstabugResources.bundle/ru.lproj/Localizable.strings - - hash - - M8QY7qfqcjJemQrufAaMPHusYbY= - - hash2 - - QJsw4hgSIk234tJXLswV5xJUor3RocgvS/YfOe/GyCM= - - optional - - - InstabugResources.bundle/sk.lproj/Localizable.strings - - hash - - fTrU5tkT3OFcJlUca/Ga6mR+fd0= - - hash2 - - 3Dj7p4Dx7eu9psLLJ7y0GJrtKzqW+vzKHHZYhHjug8w= - - optional - - - InstabugResources.bundle/sv.lproj/Localizable.strings - - hash - - aGQkIdBbklGWxRPKhajX7zW8aG4= - - hash2 - - gtu3T9NdJI933Dw5rJAZzyWjQJr7NgswTgY1rwoZwA0= - - optional - - - InstabugResources.bundle/tr.lproj/Localizable.strings - - hash - - fr9nUeXIz5dk7OW6t9rq0w64b+s= - - hash2 - - eZenfylaBmXL/hoGKzS2TAkbdcp/SRGs+LVPbTBsCI4= - - optional - - - InstabugResources.bundle/zh-Hans.lproj/Localizable.strings - - hash - - x+b5VrXz5e2tK/Sf7xQXDcqVKg8= - - hash2 - - PW3Jl2DqnUG6QiUDyC4sm0j6Llo3sxo8HMh6JrfU3CU= - - optional - - - InstabugResources.bundle/zh-Hant-TW.lproj/Localizable.strings - - hash - - H9QIDM7ZrXlvoct1CTAwKtAX2Vk= - - hash2 - - bD1KnrH55c6k1V2x9Wu7jqj23+hU7Tiyj7r6QnAeh/U= - - optional - - - InstabugResources.bundle/zh-Hant.lproj/Localizable.strings - - hash - - pjELqkuhnFd6eiYYYbjukmSsXMY= - - hash2 - - lsFH4TeZkb5Gl4hKjB5ZMdXlxrsiSZ0dxpw5sbsw/bg= - - optional - - - Modules/module.modulemap - - hash - - s54rO/plG4RUZ8kXQnWo2++r/vQ= - - hash2 - - DK65cQ5p1RuqPdi0Jm5KqffATt5qZgprNdPs2BfI0zE= - - - strip-frameworks.sh - - hash - - +MG0vr81f9BYFi8t9r2Wy0CFRAQ= - - hash2 - - EFBdsgIKkcB/ZW5AgcnnL3/o0Bpiv6XiPi3sPZMaPdg= - - - - rules - - ^ - - ^.*\.lproj/ - - optional - - weight - 1000 - - ^.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Base\.lproj/ - - weight - 1010 - - ^version.plist$ - - - rules2 - - .*\.dSYM($|/) - - weight - 11 - - ^ - - weight - 20 - - ^(.*/)?\.DS_Store$ - - omit - - weight - 2000 - - ^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/ - - nested - - weight - 10 - - ^.* - - ^.*\.lproj/ - - optional - - weight - 1000 - - ^.*\.lproj/locversion.plist$ - - omit - - weight - 1100 - - ^Base\.lproj/ - - weight - 1010 - - ^Info\.plist$ - - omit - - weight - 20 - - ^PkgInfo$ - - omit - - weight - 20 - - ^[^/]+$ - - nested - - weight - 10 - - ^embedded\.provisionprofile$ - - weight - 20 - - ^version\.plist$ - - weight - 20 - - - - diff --git a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/strip-frameworks.sh b/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/strip-frameworks.sh deleted file mode 100644 index 2c23237b..00000000 --- a/sampleApp/platforms/ios/HelloCordova/Plugins/instabug-cordova/Instabug.framework/strip-frameworks.sh +++ /dev/null @@ -1,62 +0,0 @@ -################################################################################ -# -# Copyright 2015 Realm Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. -# -################################################################################ - -# This script strips all non-valid architectures from dynamic libraries in -# the application's `Frameworks` directory. -# -# The following environment variables are required: -# -# BUILT_PRODUCTS_DIR -# FRAMEWORKS_FOLDER_PATH -# VALID_ARCHS -# EXPANDED_CODE_SIGN_IDENTITY - - -# Signs a framework with the provided identity -code_sign() { -# Use the current code_sign_identitiy -echo "Code Signing $1 with Identity ${EXPANDED_CODE_SIGN_IDENTITY_NAME}" -echo "/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements $1" -/usr/bin/codesign --force --sign ${EXPANDED_CODE_SIGN_IDENTITY} --preserve-metadata=identifier,entitlements "$1" -} - -echo "Stripping frameworks" -cd "${BUILT_PRODUCTS_DIR}/${FRAMEWORKS_FOLDER_PATH}" - -for file in $(find . -type f -perm +111); do -# Skip non-dynamic libraries -if ! [[ "$(file "$file")" == *"dynamically linked shared library"* ]]; then -continue -fi -# Get architectures for current file -archs="$(lipo -info "${file}" | rev | cut -d ':' -f1 | rev)" -stripped="" -for arch in $archs; do -if ! [[ "${VALID_ARCHS}" == *"$arch"* ]]; then -# Strip non-valid architectures in-place -lipo -remove "$arch" -output "$file" "$file" || exit 1 -stripped="$stripped $arch" -fi -done -if [[ "$stripped" != "" ]]; then -echo "Stripped $file of architectures:$stripped" -if [ "${CODE_SIGNING_REQUIRED}" == "YES" ]; then -code_sign "${file}" -fi -fi -done diff --git a/sampleApp/platforms/ios/HelloCordova/config.xml b/sampleApp/platforms/ios/HelloCordova/config.xml index 796fe983..6c4d8e1e 100755 --- a/sampleApp/platforms/ios/HelloCordova/config.xml +++ b/sampleApp/platforms/ios/HelloCordova/config.xml @@ -19,10 +19,6 @@ - - - - HelloCordova A sample Apache Cordova application that responds to the deviceready event. diff --git a/sampleApp/platforms/ios/ios.json b/sampleApp/platforms/ios/ios.json index 2e792710..c69b65ac 100644 --- a/sampleApp/platforms/ios/ios.json +++ b/sampleApp/platforms/ios/ios.json @@ -7,12 +7,7 @@ "files": { "config.xml": { "parents": { - "/*": [ - { - "xml": "", - "count": 1 - } - ] + "/*": [] } } } @@ -20,64 +15,11 @@ "installed_plugins": { "cordova-plugin-whitelist": { "PACKAGE_NAME": "$(PRODUCT_BUNDLE_IDENTIFIER)" - }, - "instabug-cordova": { - "PACKAGE_NAME": "$(PRODUCT_BUNDLE_IDENTIFIER)" } }, "dependent_plugins": {}, - "modules": [ - { - "id": "instabug-cordova.Instabug", - "file": "plugins/instabug-cordova/www/instabug.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.instabug" - ] - }, - { - "id": "instabug-cordova.BugReporting", - "file": "plugins/instabug-cordova/www/bugReporting.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.bugReporting" - ] - }, - { - "id": "instabug-cordova.FeatureRequests", - "file": "plugins/instabug-cordova/www/featureRequests.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.featureRequests" - ] - }, - { - "id": "instabug-cordova.Surveys", - "file": "plugins/instabug-cordova/www/surveys.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.surveys" - ] - }, - { - "id": "instabug-cordova.Chats", - "file": "plugins/instabug-cordova/www/chats.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.chats" - ] - }, - { - "id": "instabug-cordova.Replies", - "file": "plugins/instabug-cordova/www/replies.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.replies" - ] - } - ], + "modules": [], "plugin_metadata": { - "cordova-plugin-whitelist": "1.3.4", - "instabug-cordova": "8.0.4" + "cordova-plugin-whitelist": "1.3.4" } } diff --git a/sampleApp/platforms/ios/platform_www/cordova_plugins.js b/sampleApp/platforms/ios/platform_www/cordova_plugins.js index 40541208..c1dd5ded 100644 --- a/sampleApp/platforms/ios/platform_www/cordova_plugins.js +++ b/sampleApp/platforms/ios/platform_www/cordova_plugins.js @@ -1,56 +1,6 @@ cordova.define('cordova/plugin_list', function(require, exports, module) { - module.exports = [ - { - "id": "instabug-cordova.Instabug", - "file": "plugins/instabug-cordova/www/instabug.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.instabug" - ] - }, - { - "id": "instabug-cordova.BugReporting", - "file": "plugins/instabug-cordova/www/bugReporting.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.bugReporting" - ] - }, - { - "id": "instabug-cordova.FeatureRequests", - "file": "plugins/instabug-cordova/www/featureRequests.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.featureRequests" - ] - }, - { - "id": "instabug-cordova.Surveys", - "file": "plugins/instabug-cordova/www/surveys.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.surveys" - ] - }, - { - "id": "instabug-cordova.Chats", - "file": "plugins/instabug-cordova/www/chats.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.chats" - ] - }, - { - "id": "instabug-cordova.Replies", - "file": "plugins/instabug-cordova/www/replies.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.replies" - ] - } - ]; + module.exports = []; module.exports.metadata = { - "cordova-plugin-whitelist": "1.3.4", - "instabug-cordova": "8.0.4" + "cordova-plugin-whitelist": "1.3.4" }; }); \ No newline at end of file diff --git a/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/bugReporting.js b/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/bugReporting.js deleted file mode 100644 index 7931385a..00000000 --- a/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/bugReporting.js +++ /dev/null @@ -1,283 +0,0 @@ -cordova.define("instabug-cordova.BugReporting", function(require, exports, module) { -/* - * Instabug Bug Reporting module. - * @file bugReporting.js - */ - -var exec = require('cordova/exec'); - -/** - * The event used to invoke the feedback form - * @readonly - * @enum {string} InvocationEvent - */ -var getInvocationEvents = function() { - return { - shake: 'shake', - button: 'button', - screenshot: 'screenshot', - swipe: 'swipe', - none: 'none' - }; -}; - -/** - * The options used upon invoking the SDK - * @readonly - * @enum {string} InvocationOption - */ -var getOptions = function() { - return { - emailFieldHidden: 'emailFieldHidden', - emailFieldOptional: 'emailFieldOptional', - commentFieldRequired: 'commentFieldRequired', - disablePostSendingDialog: 'disablePostSendingDialog' - }; -}; - -/** - * The mode used upon invocating the SDK - * @readonly - * @enum {string} InvocationMode - */ -var getInvocationModes = function() { - return { - chat: 'chat', - chats: 'chats', - bug: 'bug', - feedback: 'feedback', - options: 'options' - }; -}; - -/** - * The extended bug report mode. - * @readonly - * @enum {string} ExtendedBugReportMode - */ -var getExtendedBugReportMode = function() { - return { - enabledWithRequiredFields: 'enabledWithRequiredFields', - enabledWithOptionalFields: 'enabledWithOptionalFields', - disabled: 'disabled' - }; -}; - -var getReportType = function() { - return { - bug: 'bug', - feedback: 'feedback', - question: 'question' - }; -}; - -/** - * BugReporting module - * @exports BugReporting - */ -var BugReporting = function() {}; - -BugReporting.invocationEvents = getInvocationEvents(); -/** - * @deprecated - */ -BugReporting.invocationOptions = getOptions(); -BugReporting.option = getOptions(); -BugReporting.invocationModes = getInvocationModes(); -/** - * @deprecated - */ -BugReporting.extendedBugReportMode = getExtendedBugReportMode(); -BugReporting.reportType = getReportType(); - -/** - * Enables or disables all bug reporting functionalities. - * @param {boolean} isEnabled - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setEnabled = function(isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setBugReportingEnabled', [isEnabled]); -}; - -/** - * Sets report type either bug, feedback or both. - * @param {enum} reportType Array of reportType - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setReportTypes = function(reportTypes, success, error) { - var validatedTypes = []; - for (let i = 0; i < reportTypes.length; i++) { - var validatedType = getReportType()[reportTypes[i]]; - if (validatedType) { - validatedTypes.push(validatedType); - } - } - if (validatedTypes !== undefined || validatedTypes.length != 0) { - exec(success, error, 'IBGPlugin', 'setReportTypes', [reportTypes]); - } -}; - -/** - * Shows report view with specified options. - * @param {enum} reportType reportType - * @param {array} options array of Invocation options - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.showWithOptions = function(reportType, options, success, error) { - if (reportType && options) { - exec( - success, - error, - 'IBGPlugin', - 'showBugReportingWithReportTypeAndOptions', - [reportType, options] - ); - } -}; - -/** - * @deprecated use {@link BugReporting.setOptions} - * Sets the invocation options. - * Default is set by `Instabug.startWithToken`. - * @param {enum} options Array of Option - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setInvocationOptions = function(options, success, error) { - var i; - var validatedOptions = []; - for (i = 0; i < options.length; i++) { - var validatedOption = getOptions()[options[i]]; - if (validatedOption) { - validatedOptions.push(validatedOption); - } - } - if (validatedOptions !== undefined || validatedOptions.length != 0) { - exec(success, error, 'IBGPlugin', 'setInvocationOptions', [ - validatedOptions - ]); - } else { - console.log( - 'Could not change invocation option - "' + - validatedOptions + - '" is empty.' - ); - } -}; - -/** - * Sets the invocation options. - * Default is set by `Instabug.startWithToken`. - * @param {enum} options Array of Option - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setOptions = function(options, success, error) { - BugReporting.setInvocationOptions(options, success, error); -} - -/** - * Sets a block of code to be executed just before the SDK's UI is presented. - * This block is executed on the UI thread. Could be used for performing any - * UI changes before the SDK's UI is shown. - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setOnInvokeHandler = function(success, error) { - exec(success, error, 'IBGPlugin', 'setPreInvocationHandler', []); -}; - -/** - * Sets a block of code to be executed right after the SDK's UI is dismissed. - * This block is executed on the UI thread. Could be used for performing any - * UI changes after the SDK's UI is dismissed. - * @param {function(Object):void} success callback on function success; param includes dismissType and reportType - * @param {function(void):void} error callback on function error - */ -BugReporting.setOnDismissHandler = function(success, error) { - exec(success, error, 'IBGPlugin', 'setPostInvocationHandler', []); -}; - -/** - * Sets the events that will invoke the SDK. - * @param {enum} events Array of InvocationEvent - * @param {function(void):void} success callback on function success - * @param {function(string):void} error callback on function error - */ -BugReporting.setInvocationEvents = function(events, success, error) { - var i; - var validatedEvents = []; - for (i = 0; i < events.length; i++) { - var validatedEvent = getInvocationEvents()[events[i]]; - if (validatedEvent) { - validatedEvents.push(validatedEvent); - } - } - if (validatedEvents !== undefined || validatedEvents.length != 0) { - exec(success, error, 'IBGPlugin', 'setInvocationEvents', [validatedEvents]); - } else { - console.log( - 'Could not change invocation event - "' + event + '" is not valid.' - ); - } -}; - -/** - * Sets enabled types of attachments for bug reporting. - * @param {boolean} screenshot - * @param {boolean} extraScreenshot - * @param {boolean} galleryImage - * @param {boolean} screenRecording - * @param {function(void):void} success callback on function success - * @param {function(string):void} error callback on function error - */ -BugReporting.setEnabledAttachmentTypes = function( - screenshot, - extraScreenshot, - galleryImage, - screenRecording, - success, - error -) { - exec(success, error, 'IBGPlugin', 'setAttachmentTypesEnabled', [ - screenshot, - extraScreenshot, - galleryImage, - screenRecording - ]); -}; - -/** - * - * @param {enum} extendedBugReportMode ExtendedBugReportMode - * @param {function} success callback on function success - * @param {function(string):void} error callback on function error - */ -BugReporting.setExtendedBugReportMode = function( - extendedBugReportMode, - success, - error -) { - var validatedExtendedBugReportMode = getExtendedBugReportMode()[ - extendedBugReportMode - ]; - - if (validatedExtendedBugReportMode) { - exec(success, error, 'IBGPlugin', 'setExtendedBugReportMode', [ - validatedExtendedBugReportMode - ]); - } else { - console.log( - 'Could not set extended bug report mode - "' + - validatedExtendedBugReportMode + - '" is not valid.' - ); - } -}; - -module.exports = BugReporting; - -}); diff --git a/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/chats.js b/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/chats.js deleted file mode 100644 index 7b436605..00000000 --- a/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/chats.js +++ /dev/null @@ -1,39 +0,0 @@ -cordova.define("instabug-cordova.Chats", function(require, exports, module) { -/* - * Instabug Chats module. - * @file chats.js - */ - -var exec = require('cordova/exec'); - -/** - * Chats module - * @exports Chats - */ -var Chats = function() {}; - -/** - * @deprecated - * Enables or disables all chats functionalities. - * @param {boolean} isEnabled - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Chats.setEnabled = function(isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setChatsEnabled', [isEnabled]); -}; - -/** - * @deprecated - * Shows chats with the option of chats list or new chat. - * @param {boolean} withChatsList - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Chats.show = function(success, error) { - exec(success, error, 'IBGPlugin', 'showChats'); -} - -module.exports = Chats; - -}); diff --git a/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/featureRequests.js b/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/featureRequests.js deleted file mode 100644 index d3b6f179..00000000 --- a/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/featureRequests.js +++ /dev/null @@ -1,66 +0,0 @@ -cordova.define("instabug-cordova.FeatureRequests", function(require, exports, module) { -/* - * Instabug Feature Requests module. - * @file featureRequests.js - */ - -var exec = require('cordova/exec'); - -/** - * Types of actions on feature requests. - * @readonly - * @enum {string} - */ -var getActionTypes = function () { - return { - requestNewFeature: 'requestNewFeature', - addCommentToFeature: 'addCommentToFeature' - }; -}; - -/** - * FeatureRequests module - * @exports FeatureRequests - */ -var FeatureRequests = function() {}; - -FeatureRequests.actionTypes = getActionTypes(); - -/** - * Shows the UI for feature requests list. - * @param {function(void):void} success - * @param {function(void):void} error - */ -FeatureRequests.show = function (success, error) { - exec(success, error, 'IBGPlugin', 'showFeatureRequests', []); -}; - -/** - * Sets whether users are required to enter an email address or not when - * sending reports. - * Defaults to YES. - * @param {boolean} isRequired indicates if email field is required - * @param {enum} actionTypes array of ActionType - * @param {function(void):void} success - * @param {function(string):void} error - */ -FeatureRequests.setEmailFieldRequired = function (isRequired, actionTypes, success, error) { - var i; - var validatedActionTypes = []; - for (i = 0; i < actionTypes.length; i++) { - var validatedActionType = getActionTypes()[actionTypes[i]]; - if(validatedActionType) { - validatedActionTypes.push(validatedActionType); - } - } - if (validatedActionTypes !== undefined || validatedActionTypes.length != 0) { - exec(success, error, 'IBGPlugin', 'setEmailFieldRequiredForFeatureRequests', [isRequired, validatedActionTypes]); - } else { - console.log('Could not set email field - "' + validatedActionTypes + '" is incorrect.'); - } -}; - - -module.exports = FeatureRequests; - -}); diff --git a/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/instabug.js b/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/instabug.js deleted file mode 100644 index 4f94337c..00000000 --- a/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/instabug.js +++ /dev/null @@ -1,227 +0,0 @@ -cordova.define("instabug-cordova.Instabug", function(require, exports, module) { -var exec = require('cordova/exec'); - -var getInvocationEvents = function () { - return { - shake: 'shake', - button: 'button', - screenshot: 'screenshot', - swipe: 'swipe', - none: 'none' - }; -}; - -var getReproStepsMode = function () { - return { - enabled: 'enabled', - disabled: 'disabled', - enabledWithNoScreenshots: 'enabledWithNoScreenshots' - }; -}; - -var getWelcomeMessageMode = function () { - return { - welcomeMessageModeLive: 'welcomeMessageModeLive', - welcomeMessageModeBeta: 'welcomeMessageModeBeta', - welcomeMessageModeDisabled: 'welcomeMessageModeDisabled' - } - -}; - -var getLocales = function () { - return { - arabic: 'arabic', - chineseSimplified: 'chineseSimplified', - chineseTraditional: 'chineseTraditional', - english: 'english', - french: 'french', - german: 'german', - italian: 'italian', - japanese: 'japanese', - korean: 'korean', - polish: 'polish', - portugueseBrazil: 'portugueseBrazil', - russian: 'russian', - spanish: 'spanish', - swedish: 'swedish', - turkish: 'turkish', - czech: 'czech' - }; -}; - -var Instabug = function () { -}; - -Instabug.activate = function (token, event, options, success, error) { - var validatedEvent = getInvocationEvents()[event]; - - if (validatedEvent) { - console.warn("This method is now deprecated, and will be removed in an upcoming version.") - exec(success, error, 'IBGPlugin', 'activate', [token, event, options]); - } else { - console.log('Could not activate Instabug - invocation event "' + event + '" is not valid.'); - } -}; - -Instabug.show = function (success, error) { - exec(success, error, 'IBGPlugin', 'show'); -} - -Instabug.startWithToken = function (token, events, options, success, error) { - var i; - var validatedEvents = []; - for (i = 0; i < events.length; i++) { - var validatedEvent = getInvocationEvents()[events[i]]; - if(validatedEvent) { - validatedEvents.push(validatedEvent); - } - } - if (validatedEvents !== undefined || validatedEvents.length != 0) { - exec(success, error, 'IBGPlugin', 'startWithToken', [token, validatedEvents, options]); - } else { - console.log('Could not activate Instabug - invocation event is not valid.'); - } -}; - -Instabug.setPrimaryColor = function (colorInteger, success, error) { - exec(success, error, 'IBGPlugin', 'setPrimaryColor', [colorInteger]); -}; - -Instabug.setViewHierarchyEnabled = function (enabled, success, error) { - exec(success, error, 'IBGPlugin', 'setViewHierarchyEnabled', [enabled]); -}; - -Instabug.setAutoScreenRecordingMaxDuration = function (duration, success, error) { - exec(success, error, 'IBGPlugin', 'setAutoScreenRecordingMaxDuration', [duration]); -}; - -Instabug.logUserEventWithName = function (userEvent, success, error) { - exec(success, error, 'IBGPlugin', 'logUserEventWithName', [userEvent]); -}; - -Instabug.setShakingThreshold = function (shakingThreshold, success, error) { - exec(success, error, 'IBGPlugin', 'setShakingThreshold', [shakingThreshold]); -}; - -Instabug.setReproStepsMode = function (reproStepsMode, success, error) { - - var validatedReproStepsMode = getReproStepsMode()[reproStepsMode]; - - if (validatedReproStepsMode) { - exec(success, error, 'IBGPlugin', 'setReproStepsMode', [validatedReproStepsMode]); - } else { - console.log('Could not set user steps mode - "' + validatedReproStepsMode + '" is not valid.'); - } -}; - -Instabug.showWelcomeMessage = function (welcomeMessageMode, success, error) { - - var validatedWelcomeMessageMode = getWelcomeMessageMode()[welcomeMessageMode]; - - if (validatedWelcomeMessageMode) { - exec(success, error, 'IBGPlugin', 'showWelcomeMessage', [validatedWelcomeMessageMode]); - } else { - console.log('Could not set welcome message mode - "' + validatedWelcomeMessageMode + '" is not valid.'); - } - }; - -Instabug.setUserData = function (data, success, error) { - exec(success, error, 'IBGPlugin', 'setUserData', [data]); -}; - -Instabug.addFile = function (filePath, success, error) { - exec(success, error, 'IBGPlugin', 'addFile', [filePath]); -} - -Instabug.addLog = function (content, success, error) { - exec(success, error, 'IBGPlugin', 'addLog', [content]); -}; - -Instabug.clearLog = function (success, error) { - exec(success, error, 'IBGPlugin', 'clearLog', []); -}; - -/** - * @deprecated use {@link Replies.getUnreadRepliesCount} - */ -Instabug.getUnreadMessagesCount = function (success, error) { - exec(success, error, 'IBGPlugin', 'getUnreadRepliesCount', []); -}; - -/** - * @deprecated use {@link Replies.setInAppNotificationEnabled} - */ -Instabug.setChatNotificationEnabled = function (isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setChatNotificationEnabled', [isEnabled]); -}; - -Instabug.setIBGLogPrintsToConsole = function (isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setIBGLogPrintsToConsole', [isEnabled]); -}; - -Instabug.disable = function (success, error) { - exec(success, error, 'IBGPlugin', 'disable', []); -}; - -Instabug.enable = function (success, error) { - exec(success, error, 'IBGPlugin', 'enable', []); -}; - -Instabug.isEnabled = function (success, error) { - exec(success, error, 'IBGPlugin', 'isEnabled', []); -}; - -Instabug.setUserAttribute = function (key, value, success, error) { - exec(success, error, 'IBGPlugin', 'setUserAttribute', [key, value]); -}; - -Instabug.removeUserAttribute = function (key, success, error) { - exec(success, error, 'IBGPlugin', 'removeUserAttribute', [key]); -}; - -Instabug.getAllUserAttributes = function (success, error) { - exec(success, error, 'IBGPlugin', 'getAllUserAttributes', []); -}; - -Instabug.getUserAttribute = function (key, success, error) { - exec(success, error, 'IBGPlugin', 'getUserAttribute', [key]); -}; - -Instabug.identifyUserWithEmail = function (email, name, success, error) { - exec(success, error, 'IBGPlugin', 'identifyUserWithEmail', [email, name]); -}; - -Instabug.setPreSendingHandler = function (success, error) { - exec(success, error, 'IBGPlugin', 'setPreSendingHandler', []); -}; - -Instabug.setVideoRecordingFloatingButtonPosition = function (position, success, error) { - exec(success, error, 'IBGPlugin', 'setVideoRecordingFloatingButtonPosition', [position]); -}; - -Instabug.logOut = function (success, error) { - exec(success, error, 'IBGPlugin', 'logOut', []); -}; - -Instabug.setDebugEnabled = function (isDebugEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setDebugEnabled', [isDebugEnabled]); - if(success) { - console.log("setting debug enabled to " + isDebugEnabled); - } else if(error) { - console.log("setting debug enabled not successful"); - } -}; - -Instabug.setLocale = function (locale, success, error) { - var validatedLocale = getLocales()[locale]; - - if (validatedLocale) { - exec(success, error, 'IBGPlugin', 'setLocale', [validatedLocale]); - } else { - console.log('Could not set locale - "' + locale + '" is not valid.'); - } -}; - -module.exports = Instabug; - -}); diff --git a/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/replies.js b/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/replies.js deleted file mode 100644 index 4331b940..00000000 --- a/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/replies.js +++ /dev/null @@ -1,65 +0,0 @@ -cordova.define("instabug-cordova.Replies", function(require, exports, module) { -/* - * Instabug Replies module. - * @file replies.js - */ - -var exec = require('cordova/exec'); - -/** - * Replies module - * @exports Replies - */ -var Replies = function() {}; - -/** - * Enables or disables all replies functionalities. - * @param {boolean} isEnabled - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.setEnabled = function(isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setRepliesEnabled', [isEnabled]); -}; - -/** - * Shows replies. - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.show = function(success, error) { - exec(success, error, 'IBGPlugin', 'showReplies'); -} - -/** - * Calls success callback if chats exist. - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.hasChats = function(success, error) { - exec(success, error, 'IBGPlugin', 'hasChats'); -} - -/** - * Returns the number of unread replies for the user. - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.getUnreadRepliesCount = function(success, error) { - exec(success, error, 'IBGPlugin', 'getUnreadRepliesCount'); -} - -/** - * Enables in app notifications for any new reply received. - * @param {boolean} isEnabled - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.setInAppNotificationEnabled = function (isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setChatNotificationEnabled', [isEnabled]); -}; - - - -module.exports = Replies; -}); diff --git a/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/surveys.js b/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/surveys.js deleted file mode 100644 index 79e12173..00000000 --- a/sampleApp/platforms/ios/platform_www/plugins/instabug-cordova/www/surveys.js +++ /dev/null @@ -1,135 +0,0 @@ -cordova.define("instabug-cordova.Surveys", function(require, exports, module) { -/* - * Instabug Surveys module. - * @file surveys.js - */ - -var exec = require('cordova/exec'); - - -/** - * Surveys module - * @exports Surveys - */ -var Surveys = function() {}; - -/** - * Sets whether auto surveys showing are enabled or not. - * @param {boolean} autoShowingSurveysEnabled A boolean for whether to auto show a survey - * @param {function():void} success - * @param {function(string)} error - */ -Surveys.setAutoShowingEnabled = function (autoShowingSurveysEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setAutoShowingSurveysEnabled', [autoShowingSurveysEnabled]); -}; - -/** - * @summary Sets whether surveys are enabled or not. - * If you disable surveys on the SDK but still have active surveys on your Instabug dashboard, - * those surveys are still going to be sent to the device, but are not going to be - * shown automatically. - * To manually display any available surveys, call `Instabug.showSurveyIfAvailable()`. - * Defaults to `true`. - * @param {boolean} isEnabled - * @param {function():void} success - * @param {function(string):void} error - */ -Surveys.setEnabled = function (isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setSurveysEnabled', [isEnabled]); -}; - -/** - * @summary Shows one of the surveys that were not shown before, that also have conditions - * that match the current device/user. - * Does nothing if there are no available surveys or if a survey has already been shown - * in the current session. - * @param {function():void} success - * @param {function():void} error - */ -Surveys.showSurveyIfAvailable = function (success, error) { - exec(success, error, 'IBGPlugin', 'showSurveyIfAvailable', []); -}; - -/** - * @summary Sets a block of code to be executed just before the survey's UI is presented. - * This block is executed on the UI thread. Could be used for performing any UI changes before - * the survey's UI is shown. - * @param {function():void} success - * @param {function():void} error - */ -Surveys.setOnShowHandler = function (success, error) { - exec(success, error, 'IBGPlugin', 'willShowSurveyHandler', []); -}; - -/** - * @summary Sets a block of code to be executed right after the survey's UI is dismissed. - * This block is executed on the UI thread. Could be used for performing any UI - * changes after the survey's UI is dismissed. - * @param {function():void} success - * @param {function():void} error - */ -Surveys.setOnDismissHandler = function (success, error) { - exec(success, error, 'IBGPlugin', 'didDismissSurveyHandler', []); -}; - -/** - * Shows survey with a specific token. - * Does nothing if there are no available surveys with that specific token. - * Answered and cancelled surveys won't show up again. - * @param {string} surveyToken A String with a survey token. - * @param {function():void} success - * @param {function(string):void} error - */ -Surveys.showSurveyWithToken = function (surveyToken, success, error) { - exec(success, error, 'IBGPlugin', 'showSurveyWithToken', [surveyToken]); -}; - -/** - * Sets a threshold for numbers of sessions and another for number of days - * required before a survey, that has been dismissed once, would show again. - * @param {number} sessionsCount Number of sessions required to be - * initialized before a dismissed survey can be shown again. - * @param {number} daysCount Number of days required to pass before a - * dismissed survey can be shown again. - * @param {function():void} success - * @param {function(string):void} error - */ -Surveys.setThresholdForReshowingSurveyAfterDismiss = function (sessionsCount, daysCount, success, error) { - exec(success, error, 'IBGPlugin', 'setThresholdForReshowingSurveyAfterDismiss', [sessionsCount, daysCount]); -}; - -/** - * Returns true if the survey with a specific token was answered before. - * Will return false if the token does not exist or if the survey was not answered before. - * @param {string} surveyToken a string with a survey token. - * @param {function(boolean):void} success - * @param {function(string):void} error - */ -Surveys.hasRespondedToSurveyWithToken = function (surveyToken, success, error) { - exec(success, error, 'IBGPlugin', 'hasRespondedToSurveyWithToken', [surveyToken]); -}; - -/** - * Returns an array containing the available surveys. - * @param {function(Object):void} success - * @param {function():void} error - */ -Surveys.getAvailableSurveys = function (success, error) { - exec(success, error, 'IBGPlugin', 'getAvailableSurveys', []); -}; - -/** - * Setting an option for all the surveys to show a welcome screen before - * the user starts taking the survey. - * @param {boolean} shouldShowWelcomeScreen A boolean for setting whether the - * welcome screen should show. - * @param {function():void} success - * @param {function(string):void} error - */ -Surveys.setShouldShowSurveysWelcomeScreen = function (shouldShowWelcomeScreen, success, error) { - exec(success, error, 'IBGPlugin', 'setShouldShowSurveysWelcomeScreen', [shouldShowWelcomeScreen]); -}; - -module.exports = Surveys; - -}); diff --git a/sampleApp/platforms/ios/www/cordova_plugins.js b/sampleApp/platforms/ios/www/cordova_plugins.js index 40541208..c1dd5ded 100644 --- a/sampleApp/platforms/ios/www/cordova_plugins.js +++ b/sampleApp/platforms/ios/www/cordova_plugins.js @@ -1,56 +1,6 @@ cordova.define('cordova/plugin_list', function(require, exports, module) { - module.exports = [ - { - "id": "instabug-cordova.Instabug", - "file": "plugins/instabug-cordova/www/instabug.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.instabug" - ] - }, - { - "id": "instabug-cordova.BugReporting", - "file": "plugins/instabug-cordova/www/bugReporting.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.bugReporting" - ] - }, - { - "id": "instabug-cordova.FeatureRequests", - "file": "plugins/instabug-cordova/www/featureRequests.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.featureRequests" - ] - }, - { - "id": "instabug-cordova.Surveys", - "file": "plugins/instabug-cordova/www/surveys.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.surveys" - ] - }, - { - "id": "instabug-cordova.Chats", - "file": "plugins/instabug-cordova/www/chats.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.chats" - ] - }, - { - "id": "instabug-cordova.Replies", - "file": "plugins/instabug-cordova/www/replies.js", - "pluginId": "instabug-cordova", - "clobbers": [ - "cordova.plugins.replies" - ] - } - ]; + module.exports = []; module.exports.metadata = { - "cordova-plugin-whitelist": "1.3.4", - "instabug-cordova": "8.0.4" + "cordova-plugin-whitelist": "1.3.4" }; }); \ No newline at end of file diff --git a/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/bugReporting.js b/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/bugReporting.js deleted file mode 100644 index 7931385a..00000000 --- a/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/bugReporting.js +++ /dev/null @@ -1,283 +0,0 @@ -cordova.define("instabug-cordova.BugReporting", function(require, exports, module) { -/* - * Instabug Bug Reporting module. - * @file bugReporting.js - */ - -var exec = require('cordova/exec'); - -/** - * The event used to invoke the feedback form - * @readonly - * @enum {string} InvocationEvent - */ -var getInvocationEvents = function() { - return { - shake: 'shake', - button: 'button', - screenshot: 'screenshot', - swipe: 'swipe', - none: 'none' - }; -}; - -/** - * The options used upon invoking the SDK - * @readonly - * @enum {string} InvocationOption - */ -var getOptions = function() { - return { - emailFieldHidden: 'emailFieldHidden', - emailFieldOptional: 'emailFieldOptional', - commentFieldRequired: 'commentFieldRequired', - disablePostSendingDialog: 'disablePostSendingDialog' - }; -}; - -/** - * The mode used upon invocating the SDK - * @readonly - * @enum {string} InvocationMode - */ -var getInvocationModes = function() { - return { - chat: 'chat', - chats: 'chats', - bug: 'bug', - feedback: 'feedback', - options: 'options' - }; -}; - -/** - * The extended bug report mode. - * @readonly - * @enum {string} ExtendedBugReportMode - */ -var getExtendedBugReportMode = function() { - return { - enabledWithRequiredFields: 'enabledWithRequiredFields', - enabledWithOptionalFields: 'enabledWithOptionalFields', - disabled: 'disabled' - }; -}; - -var getReportType = function() { - return { - bug: 'bug', - feedback: 'feedback', - question: 'question' - }; -}; - -/** - * BugReporting module - * @exports BugReporting - */ -var BugReporting = function() {}; - -BugReporting.invocationEvents = getInvocationEvents(); -/** - * @deprecated - */ -BugReporting.invocationOptions = getOptions(); -BugReporting.option = getOptions(); -BugReporting.invocationModes = getInvocationModes(); -/** - * @deprecated - */ -BugReporting.extendedBugReportMode = getExtendedBugReportMode(); -BugReporting.reportType = getReportType(); - -/** - * Enables or disables all bug reporting functionalities. - * @param {boolean} isEnabled - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setEnabled = function(isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setBugReportingEnabled', [isEnabled]); -}; - -/** - * Sets report type either bug, feedback or both. - * @param {enum} reportType Array of reportType - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setReportTypes = function(reportTypes, success, error) { - var validatedTypes = []; - for (let i = 0; i < reportTypes.length; i++) { - var validatedType = getReportType()[reportTypes[i]]; - if (validatedType) { - validatedTypes.push(validatedType); - } - } - if (validatedTypes !== undefined || validatedTypes.length != 0) { - exec(success, error, 'IBGPlugin', 'setReportTypes', [reportTypes]); - } -}; - -/** - * Shows report view with specified options. - * @param {enum} reportType reportType - * @param {array} options array of Invocation options - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.showWithOptions = function(reportType, options, success, error) { - if (reportType && options) { - exec( - success, - error, - 'IBGPlugin', - 'showBugReportingWithReportTypeAndOptions', - [reportType, options] - ); - } -}; - -/** - * @deprecated use {@link BugReporting.setOptions} - * Sets the invocation options. - * Default is set by `Instabug.startWithToken`. - * @param {enum} options Array of Option - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setInvocationOptions = function(options, success, error) { - var i; - var validatedOptions = []; - for (i = 0; i < options.length; i++) { - var validatedOption = getOptions()[options[i]]; - if (validatedOption) { - validatedOptions.push(validatedOption); - } - } - if (validatedOptions !== undefined || validatedOptions.length != 0) { - exec(success, error, 'IBGPlugin', 'setInvocationOptions', [ - validatedOptions - ]); - } else { - console.log( - 'Could not change invocation option - "' + - validatedOptions + - '" is empty.' - ); - } -}; - -/** - * Sets the invocation options. - * Default is set by `Instabug.startWithToken`. - * @param {enum} options Array of Option - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setOptions = function(options, success, error) { - BugReporting.setInvocationOptions(options, success, error); -} - -/** - * Sets a block of code to be executed just before the SDK's UI is presented. - * This block is executed on the UI thread. Could be used for performing any - * UI changes before the SDK's UI is shown. - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -BugReporting.setOnInvokeHandler = function(success, error) { - exec(success, error, 'IBGPlugin', 'setPreInvocationHandler', []); -}; - -/** - * Sets a block of code to be executed right after the SDK's UI is dismissed. - * This block is executed on the UI thread. Could be used for performing any - * UI changes after the SDK's UI is dismissed. - * @param {function(Object):void} success callback on function success; param includes dismissType and reportType - * @param {function(void):void} error callback on function error - */ -BugReporting.setOnDismissHandler = function(success, error) { - exec(success, error, 'IBGPlugin', 'setPostInvocationHandler', []); -}; - -/** - * Sets the events that will invoke the SDK. - * @param {enum} events Array of InvocationEvent - * @param {function(void):void} success callback on function success - * @param {function(string):void} error callback on function error - */ -BugReporting.setInvocationEvents = function(events, success, error) { - var i; - var validatedEvents = []; - for (i = 0; i < events.length; i++) { - var validatedEvent = getInvocationEvents()[events[i]]; - if (validatedEvent) { - validatedEvents.push(validatedEvent); - } - } - if (validatedEvents !== undefined || validatedEvents.length != 0) { - exec(success, error, 'IBGPlugin', 'setInvocationEvents', [validatedEvents]); - } else { - console.log( - 'Could not change invocation event - "' + event + '" is not valid.' - ); - } -}; - -/** - * Sets enabled types of attachments for bug reporting. - * @param {boolean} screenshot - * @param {boolean} extraScreenshot - * @param {boolean} galleryImage - * @param {boolean} screenRecording - * @param {function(void):void} success callback on function success - * @param {function(string):void} error callback on function error - */ -BugReporting.setEnabledAttachmentTypes = function( - screenshot, - extraScreenshot, - galleryImage, - screenRecording, - success, - error -) { - exec(success, error, 'IBGPlugin', 'setAttachmentTypesEnabled', [ - screenshot, - extraScreenshot, - galleryImage, - screenRecording - ]); -}; - -/** - * - * @param {enum} extendedBugReportMode ExtendedBugReportMode - * @param {function} success callback on function success - * @param {function(string):void} error callback on function error - */ -BugReporting.setExtendedBugReportMode = function( - extendedBugReportMode, - success, - error -) { - var validatedExtendedBugReportMode = getExtendedBugReportMode()[ - extendedBugReportMode - ]; - - if (validatedExtendedBugReportMode) { - exec(success, error, 'IBGPlugin', 'setExtendedBugReportMode', [ - validatedExtendedBugReportMode - ]); - } else { - console.log( - 'Could not set extended bug report mode - "' + - validatedExtendedBugReportMode + - '" is not valid.' - ); - } -}; - -module.exports = BugReporting; - -}); diff --git a/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/chats.js b/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/chats.js deleted file mode 100644 index 7b436605..00000000 --- a/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/chats.js +++ /dev/null @@ -1,39 +0,0 @@ -cordova.define("instabug-cordova.Chats", function(require, exports, module) { -/* - * Instabug Chats module. - * @file chats.js - */ - -var exec = require('cordova/exec'); - -/** - * Chats module - * @exports Chats - */ -var Chats = function() {}; - -/** - * @deprecated - * Enables or disables all chats functionalities. - * @param {boolean} isEnabled - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Chats.setEnabled = function(isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setChatsEnabled', [isEnabled]); -}; - -/** - * @deprecated - * Shows chats with the option of chats list or new chat. - * @param {boolean} withChatsList - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Chats.show = function(success, error) { - exec(success, error, 'IBGPlugin', 'showChats'); -} - -module.exports = Chats; - -}); diff --git a/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/featureRequests.js b/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/featureRequests.js deleted file mode 100644 index d3b6f179..00000000 --- a/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/featureRequests.js +++ /dev/null @@ -1,66 +0,0 @@ -cordova.define("instabug-cordova.FeatureRequests", function(require, exports, module) { -/* - * Instabug Feature Requests module. - * @file featureRequests.js - */ - -var exec = require('cordova/exec'); - -/** - * Types of actions on feature requests. - * @readonly - * @enum {string} - */ -var getActionTypes = function () { - return { - requestNewFeature: 'requestNewFeature', - addCommentToFeature: 'addCommentToFeature' - }; -}; - -/** - * FeatureRequests module - * @exports FeatureRequests - */ -var FeatureRequests = function() {}; - -FeatureRequests.actionTypes = getActionTypes(); - -/** - * Shows the UI for feature requests list. - * @param {function(void):void} success - * @param {function(void):void} error - */ -FeatureRequests.show = function (success, error) { - exec(success, error, 'IBGPlugin', 'showFeatureRequests', []); -}; - -/** - * Sets whether users are required to enter an email address or not when - * sending reports. - * Defaults to YES. - * @param {boolean} isRequired indicates if email field is required - * @param {enum} actionTypes array of ActionType - * @param {function(void):void} success - * @param {function(string):void} error - */ -FeatureRequests.setEmailFieldRequired = function (isRequired, actionTypes, success, error) { - var i; - var validatedActionTypes = []; - for (i = 0; i < actionTypes.length; i++) { - var validatedActionType = getActionTypes()[actionTypes[i]]; - if(validatedActionType) { - validatedActionTypes.push(validatedActionType); - } - } - if (validatedActionTypes !== undefined || validatedActionTypes.length != 0) { - exec(success, error, 'IBGPlugin', 'setEmailFieldRequiredForFeatureRequests', [isRequired, validatedActionTypes]); - } else { - console.log('Could not set email field - "' + validatedActionTypes + '" is incorrect.'); - } -}; - - -module.exports = FeatureRequests; - -}); diff --git a/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/instabug.js b/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/instabug.js deleted file mode 100644 index 4f94337c..00000000 --- a/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/instabug.js +++ /dev/null @@ -1,227 +0,0 @@ -cordova.define("instabug-cordova.Instabug", function(require, exports, module) { -var exec = require('cordova/exec'); - -var getInvocationEvents = function () { - return { - shake: 'shake', - button: 'button', - screenshot: 'screenshot', - swipe: 'swipe', - none: 'none' - }; -}; - -var getReproStepsMode = function () { - return { - enabled: 'enabled', - disabled: 'disabled', - enabledWithNoScreenshots: 'enabledWithNoScreenshots' - }; -}; - -var getWelcomeMessageMode = function () { - return { - welcomeMessageModeLive: 'welcomeMessageModeLive', - welcomeMessageModeBeta: 'welcomeMessageModeBeta', - welcomeMessageModeDisabled: 'welcomeMessageModeDisabled' - } - -}; - -var getLocales = function () { - return { - arabic: 'arabic', - chineseSimplified: 'chineseSimplified', - chineseTraditional: 'chineseTraditional', - english: 'english', - french: 'french', - german: 'german', - italian: 'italian', - japanese: 'japanese', - korean: 'korean', - polish: 'polish', - portugueseBrazil: 'portugueseBrazil', - russian: 'russian', - spanish: 'spanish', - swedish: 'swedish', - turkish: 'turkish', - czech: 'czech' - }; -}; - -var Instabug = function () { -}; - -Instabug.activate = function (token, event, options, success, error) { - var validatedEvent = getInvocationEvents()[event]; - - if (validatedEvent) { - console.warn("This method is now deprecated, and will be removed in an upcoming version.") - exec(success, error, 'IBGPlugin', 'activate', [token, event, options]); - } else { - console.log('Could not activate Instabug - invocation event "' + event + '" is not valid.'); - } -}; - -Instabug.show = function (success, error) { - exec(success, error, 'IBGPlugin', 'show'); -} - -Instabug.startWithToken = function (token, events, options, success, error) { - var i; - var validatedEvents = []; - for (i = 0; i < events.length; i++) { - var validatedEvent = getInvocationEvents()[events[i]]; - if(validatedEvent) { - validatedEvents.push(validatedEvent); - } - } - if (validatedEvents !== undefined || validatedEvents.length != 0) { - exec(success, error, 'IBGPlugin', 'startWithToken', [token, validatedEvents, options]); - } else { - console.log('Could not activate Instabug - invocation event is not valid.'); - } -}; - -Instabug.setPrimaryColor = function (colorInteger, success, error) { - exec(success, error, 'IBGPlugin', 'setPrimaryColor', [colorInteger]); -}; - -Instabug.setViewHierarchyEnabled = function (enabled, success, error) { - exec(success, error, 'IBGPlugin', 'setViewHierarchyEnabled', [enabled]); -}; - -Instabug.setAutoScreenRecordingMaxDuration = function (duration, success, error) { - exec(success, error, 'IBGPlugin', 'setAutoScreenRecordingMaxDuration', [duration]); -}; - -Instabug.logUserEventWithName = function (userEvent, success, error) { - exec(success, error, 'IBGPlugin', 'logUserEventWithName', [userEvent]); -}; - -Instabug.setShakingThreshold = function (shakingThreshold, success, error) { - exec(success, error, 'IBGPlugin', 'setShakingThreshold', [shakingThreshold]); -}; - -Instabug.setReproStepsMode = function (reproStepsMode, success, error) { - - var validatedReproStepsMode = getReproStepsMode()[reproStepsMode]; - - if (validatedReproStepsMode) { - exec(success, error, 'IBGPlugin', 'setReproStepsMode', [validatedReproStepsMode]); - } else { - console.log('Could not set user steps mode - "' + validatedReproStepsMode + '" is not valid.'); - } -}; - -Instabug.showWelcomeMessage = function (welcomeMessageMode, success, error) { - - var validatedWelcomeMessageMode = getWelcomeMessageMode()[welcomeMessageMode]; - - if (validatedWelcomeMessageMode) { - exec(success, error, 'IBGPlugin', 'showWelcomeMessage', [validatedWelcomeMessageMode]); - } else { - console.log('Could not set welcome message mode - "' + validatedWelcomeMessageMode + '" is not valid.'); - } - }; - -Instabug.setUserData = function (data, success, error) { - exec(success, error, 'IBGPlugin', 'setUserData', [data]); -}; - -Instabug.addFile = function (filePath, success, error) { - exec(success, error, 'IBGPlugin', 'addFile', [filePath]); -} - -Instabug.addLog = function (content, success, error) { - exec(success, error, 'IBGPlugin', 'addLog', [content]); -}; - -Instabug.clearLog = function (success, error) { - exec(success, error, 'IBGPlugin', 'clearLog', []); -}; - -/** - * @deprecated use {@link Replies.getUnreadRepliesCount} - */ -Instabug.getUnreadMessagesCount = function (success, error) { - exec(success, error, 'IBGPlugin', 'getUnreadRepliesCount', []); -}; - -/** - * @deprecated use {@link Replies.setInAppNotificationEnabled} - */ -Instabug.setChatNotificationEnabled = function (isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setChatNotificationEnabled', [isEnabled]); -}; - -Instabug.setIBGLogPrintsToConsole = function (isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setIBGLogPrintsToConsole', [isEnabled]); -}; - -Instabug.disable = function (success, error) { - exec(success, error, 'IBGPlugin', 'disable', []); -}; - -Instabug.enable = function (success, error) { - exec(success, error, 'IBGPlugin', 'enable', []); -}; - -Instabug.isEnabled = function (success, error) { - exec(success, error, 'IBGPlugin', 'isEnabled', []); -}; - -Instabug.setUserAttribute = function (key, value, success, error) { - exec(success, error, 'IBGPlugin', 'setUserAttribute', [key, value]); -}; - -Instabug.removeUserAttribute = function (key, success, error) { - exec(success, error, 'IBGPlugin', 'removeUserAttribute', [key]); -}; - -Instabug.getAllUserAttributes = function (success, error) { - exec(success, error, 'IBGPlugin', 'getAllUserAttributes', []); -}; - -Instabug.getUserAttribute = function (key, success, error) { - exec(success, error, 'IBGPlugin', 'getUserAttribute', [key]); -}; - -Instabug.identifyUserWithEmail = function (email, name, success, error) { - exec(success, error, 'IBGPlugin', 'identifyUserWithEmail', [email, name]); -}; - -Instabug.setPreSendingHandler = function (success, error) { - exec(success, error, 'IBGPlugin', 'setPreSendingHandler', []); -}; - -Instabug.setVideoRecordingFloatingButtonPosition = function (position, success, error) { - exec(success, error, 'IBGPlugin', 'setVideoRecordingFloatingButtonPosition', [position]); -}; - -Instabug.logOut = function (success, error) { - exec(success, error, 'IBGPlugin', 'logOut', []); -}; - -Instabug.setDebugEnabled = function (isDebugEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setDebugEnabled', [isDebugEnabled]); - if(success) { - console.log("setting debug enabled to " + isDebugEnabled); - } else if(error) { - console.log("setting debug enabled not successful"); - } -}; - -Instabug.setLocale = function (locale, success, error) { - var validatedLocale = getLocales()[locale]; - - if (validatedLocale) { - exec(success, error, 'IBGPlugin', 'setLocale', [validatedLocale]); - } else { - console.log('Could not set locale - "' + locale + '" is not valid.'); - } -}; - -module.exports = Instabug; - -}); diff --git a/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/replies.js b/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/replies.js deleted file mode 100644 index 4331b940..00000000 --- a/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/replies.js +++ /dev/null @@ -1,65 +0,0 @@ -cordova.define("instabug-cordova.Replies", function(require, exports, module) { -/* - * Instabug Replies module. - * @file replies.js - */ - -var exec = require('cordova/exec'); - -/** - * Replies module - * @exports Replies - */ -var Replies = function() {}; - -/** - * Enables or disables all replies functionalities. - * @param {boolean} isEnabled - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.setEnabled = function(isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setRepliesEnabled', [isEnabled]); -}; - -/** - * Shows replies. - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.show = function(success, error) { - exec(success, error, 'IBGPlugin', 'showReplies'); -} - -/** - * Calls success callback if chats exist. - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.hasChats = function(success, error) { - exec(success, error, 'IBGPlugin', 'hasChats'); -} - -/** - * Returns the number of unread replies for the user. - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.getUnreadRepliesCount = function(success, error) { - exec(success, error, 'IBGPlugin', 'getUnreadRepliesCount'); -} - -/** - * Enables in app notifications for any new reply received. - * @param {boolean} isEnabled - * @param {function(void):void} success callback on function success - * @param {function(void):void} error callback on function error - */ -Replies.setInAppNotificationEnabled = function (isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setChatNotificationEnabled', [isEnabled]); -}; - - - -module.exports = Replies; -}); diff --git a/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/surveys.js b/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/surveys.js deleted file mode 100644 index 79e12173..00000000 --- a/sampleApp/platforms/ios/www/plugins/instabug-cordova/www/surveys.js +++ /dev/null @@ -1,135 +0,0 @@ -cordova.define("instabug-cordova.Surveys", function(require, exports, module) { -/* - * Instabug Surveys module. - * @file surveys.js - */ - -var exec = require('cordova/exec'); - - -/** - * Surveys module - * @exports Surveys - */ -var Surveys = function() {}; - -/** - * Sets whether auto surveys showing are enabled or not. - * @param {boolean} autoShowingSurveysEnabled A boolean for whether to auto show a survey - * @param {function():void} success - * @param {function(string)} error - */ -Surveys.setAutoShowingEnabled = function (autoShowingSurveysEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setAutoShowingSurveysEnabled', [autoShowingSurveysEnabled]); -}; - -/** - * @summary Sets whether surveys are enabled or not. - * If you disable surveys on the SDK but still have active surveys on your Instabug dashboard, - * those surveys are still going to be sent to the device, but are not going to be - * shown automatically. - * To manually display any available surveys, call `Instabug.showSurveyIfAvailable()`. - * Defaults to `true`. - * @param {boolean} isEnabled - * @param {function():void} success - * @param {function(string):void} error - */ -Surveys.setEnabled = function (isEnabled, success, error) { - exec(success, error, 'IBGPlugin', 'setSurveysEnabled', [isEnabled]); -}; - -/** - * @summary Shows one of the surveys that were not shown before, that also have conditions - * that match the current device/user. - * Does nothing if there are no available surveys or if a survey has already been shown - * in the current session. - * @param {function():void} success - * @param {function():void} error - */ -Surveys.showSurveyIfAvailable = function (success, error) { - exec(success, error, 'IBGPlugin', 'showSurveyIfAvailable', []); -}; - -/** - * @summary Sets a block of code to be executed just before the survey's UI is presented. - * This block is executed on the UI thread. Could be used for performing any UI changes before - * the survey's UI is shown. - * @param {function():void} success - * @param {function():void} error - */ -Surveys.setOnShowHandler = function (success, error) { - exec(success, error, 'IBGPlugin', 'willShowSurveyHandler', []); -}; - -/** - * @summary Sets a block of code to be executed right after the survey's UI is dismissed. - * This block is executed on the UI thread. Could be used for performing any UI - * changes after the survey's UI is dismissed. - * @param {function():void} success - * @param {function():void} error - */ -Surveys.setOnDismissHandler = function (success, error) { - exec(success, error, 'IBGPlugin', 'didDismissSurveyHandler', []); -}; - -/** - * Shows survey with a specific token. - * Does nothing if there are no available surveys with that specific token. - * Answered and cancelled surveys won't show up again. - * @param {string} surveyToken A String with a survey token. - * @param {function():void} success - * @param {function(string):void} error - */ -Surveys.showSurveyWithToken = function (surveyToken, success, error) { - exec(success, error, 'IBGPlugin', 'showSurveyWithToken', [surveyToken]); -}; - -/** - * Sets a threshold for numbers of sessions and another for number of days - * required before a survey, that has been dismissed once, would show again. - * @param {number} sessionsCount Number of sessions required to be - * initialized before a dismissed survey can be shown again. - * @param {number} daysCount Number of days required to pass before a - * dismissed survey can be shown again. - * @param {function():void} success - * @param {function(string):void} error - */ -Surveys.setThresholdForReshowingSurveyAfterDismiss = function (sessionsCount, daysCount, success, error) { - exec(success, error, 'IBGPlugin', 'setThresholdForReshowingSurveyAfterDismiss', [sessionsCount, daysCount]); -}; - -/** - * Returns true if the survey with a specific token was answered before. - * Will return false if the token does not exist or if the survey was not answered before. - * @param {string} surveyToken a string with a survey token. - * @param {function(boolean):void} success - * @param {function(string):void} error - */ -Surveys.hasRespondedToSurveyWithToken = function (surveyToken, success, error) { - exec(success, error, 'IBGPlugin', 'hasRespondedToSurveyWithToken', [surveyToken]); -}; - -/** - * Returns an array containing the available surveys. - * @param {function(Object):void} success - * @param {function():void} error - */ -Surveys.getAvailableSurveys = function (success, error) { - exec(success, error, 'IBGPlugin', 'getAvailableSurveys', []); -}; - -/** - * Setting an option for all the surveys to show a welcome screen before - * the user starts taking the survey. - * @param {boolean} shouldShowWelcomeScreen A boolean for setting whether the - * welcome screen should show. - * @param {function():void} success - * @param {function(string):void} error - */ -Surveys.setShouldShowSurveysWelcomeScreen = function (shouldShowWelcomeScreen, success, error) { - exec(success, error, 'IBGPlugin', 'setShouldShowSurveysWelcomeScreen', [shouldShowWelcomeScreen]); -}; - -module.exports = Surveys; - -}); diff --git a/sampleApp/plugins/android.json b/sampleApp/plugins/android.json index 9ad70119..d2d87cda 100644 --- a/sampleApp/plugins/android.json +++ b/sampleApp/plugins/android.json @@ -9,9 +9,6 @@ "installed_plugins": { "cordova-plugin-whitelist": { "PACKAGE_NAME": "io.cordova.hellocordova" - }, - "instabug-cordova": { - "PACKAGE_NAME": "io.cordova.hellocordova" } }, "dependent_plugins": {} diff --git a/sampleApp/plugins/fetch.json b/sampleApp/plugins/fetch.json index 3fe67d96..e5f339c9 100644 --- a/sampleApp/plugins/fetch.json +++ b/sampleApp/plugins/fetch.json @@ -6,13 +6,5 @@ }, "is_top_level": true, "variables": {} - }, - "instabug-cordova": { - "source": { - "type": "local", - "path": "/Users/alyezz/Cordova/sampleApp/node_modules/instabug-cordova" - }, - "is_top_level": true, - "variables": {} } } \ No newline at end of file diff --git a/sampleApp/plugins/ios.json b/sampleApp/plugins/ios.json index 40c62e0c..ef5eb0cd 100644 --- a/sampleApp/plugins/ios.json +++ b/sampleApp/plugins/ios.json @@ -9,9 +9,6 @@ "installed_plugins": { "cordova-plugin-whitelist": { "PACKAGE_NAME": "$(PRODUCT_BUNDLE_IDENTIFIER)" - }, - "instabug-cordova": { - "PACKAGE_NAME": "$(PRODUCT_BUNDLE_IDENTIFIER)" } }, "dependent_plugins": {} diff --git a/sampleApp/www/js/index.js b/sampleApp/www/js/index.js index cc49caab..c574d223 100644 --- a/sampleApp/www/js/index.js +++ b/sampleApp/www/js/index.js @@ -34,6 +34,7 @@ var app = { }, cordova.plugins.bugReporting.invocationEvents.button, { + floatingButtonEdge: 'left', commentRequired: true, colorTheme: 'light', enableIntroDialog: false diff --git a/sampleApp/yarn.lock b/sampleApp/yarn.lock new file mode 100644 index 00000000..829a9d6d --- /dev/null +++ b/sampleApp/yarn.lock @@ -0,0 +1,661 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +abbrev@1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8" + integrity sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q== + +android-versions@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/android-versions/-/android-versions-1.4.0.tgz#807ea2941d7e5780e6dd61c5d9b7b6f3c0706e09" + integrity sha512-GnomfYsBq+nZh3c3UH/4r9Jt6FuTxdhUJbeHIdYOH5xBhQ8I0ZzC2/RM5IFFIjrzuNWSHb8JWP1lPK0/a26jrg== + dependencies: + semver "^5.4.1" + +ansi@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/ansi/-/ansi-0.3.1.tgz#0c42d4fb17160d5a9af1e484bace1c66922c1b21" + integrity sha1-DELU+xcWDVqa8eSEus4cZpIsGyE= + +balanced-match@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.0.tgz#89b4d199ab2bee49de164ea02b89ce462d71b767" + integrity sha1-ibTRmasr7kneFk6gK4nORi1xt2c= + +base64-js@1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.1.2.tgz#d6400cac1c4c660976d90d07a04351d89395f5e8" + integrity sha1-1kAMrBxMZgl22Q0HoENR2JOV9eg= + +base64-js@^1.2.3: + version "1.3.1" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.3.1.tgz#58ece8cb75dd07e71ed08c736abc5fac4dbf8df1" + integrity sha512-mLQ4i2QO1ytvGWFWmcngKO//JXAQueZvwEKtjgQFM4jIK0kU+ytMfplL8j+n5mspOfjHwoAg+9yhb7BwAHm36g== + +big-integer@^1.6.7: + version "1.6.44" + resolved "https://registry.yarnpkg.com/big-integer/-/big-integer-1.6.44.tgz#4ee9ae5f5839fc11ade338fea216b4513454a539" + integrity sha512-7MzElZPTyJ2fNvBkPxtFQ2fWIkVmuzw41+BZHSzpEq3ymB2MfeKp1+yXl/tS75xCx+WnyV+yb0kp+K1C3UNwmQ== + +bplist-creator@0.0.7: + version "0.0.7" + resolved "https://registry.yarnpkg.com/bplist-creator/-/bplist-creator-0.0.7.tgz#37df1536092824b87c42f957b01344117372ae45" + integrity sha1-N98VNgkoJLh8QvlXsBNEEXNyrkU= + dependencies: + stream-buffers "~2.2.0" + +bplist-parser@0.1.1, bplist-parser@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/bplist-parser/-/bplist-parser-0.1.1.tgz#d60d5dcc20cba6dc7e1f299b35d3e1f95dafbae6" + integrity sha1-1g1dzCDLptx+HymbNdPh+V2vuuY= + dependencies: + big-integer "^1.6.7" + +bplist-parser@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/bplist-parser/-/bplist-parser-0.0.6.tgz#38da3471817df9d44ab3892e27707bbbd75a11b9" + integrity sha1-ONo0cYF9+dRKs4kuJ3B7u9daEbk= + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha1-2Klr13/Wjfd5OnMDajug1UBdR3s= + +cordova-android@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/cordova-android/-/cordova-android-8.0.0.tgz#1fbe05a914731df619522b9385d4d1b183c36bdb" + integrity sha512-Ipv8HbVJpxEyYFSFLTEOaLRp0yxBtJVNbgSuDEB4naa34FzQaRWSNiiMcPJnO+x3hRXNt7pcwa46hARNzhn7+w== + dependencies: + android-versions "^1.3.0" + cordova-common "^3.1.0" + elementtree "^0.1.7" + nopt "^4.0.1" + properties-parser "^0.3.1" + q "^1.4.1" + shelljs "^0.5.3" + +cordova-common@^3.1.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/cordova-common/-/cordova-common-3.2.0.tgz#9a5c9215f817d7a08fbd014bf963c544e1feb671" + integrity sha512-EvlQ6PirfR65hGDoQvsluW00uSS2MTVIRKQ3c1Xvsddx7D5T5JgF3fHWkGik/Y/8yNcpI0zI2NcJyie2z/ak2A== + dependencies: + ansi "^0.3.1" + bplist-parser "^0.1.0" + cross-spawn "^6.0.5" + elementtree "0.1.7" + endent "^1.1.1" + fs-extra "^8.0.0" + glob "^7.1.2" + minimatch "^3.0.0" + plist "^3.0.1" + q "^1.4.1" + strip-bom "^3.0.0" + underscore "^1.8.3" + which "^1.3.0" + +cordova-ios@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/cordova-ios/-/cordova-ios-5.0.1.tgz#8ee30280c47f29cc3e8716167a9ce33cbaf9debd" + integrity sha512-JcFyDmlyzY2OQJo0eHpuFERFqvO4daHl8HL96RhUVjJVtuoqXHsOF0xTuQSAqIbefelMPEWwY3Lc/dvT4ttTwQ== + dependencies: + cordova-common "^3.1.0" + ios-sim "^8.0.1" + nopt "^4.0.1" + plist "^3.0.1" + q "^1.5.1" + shelljs "^0.5.3" + unorm "^1.4.1" + xcode "^2.0.0" + xml-escape "^1.1.0" + +cordova-plugin-whitelist@^1.3.4: + version "1.3.4" + resolved "https://registry.yarnpkg.com/cordova-plugin-whitelist/-/cordova-plugin-whitelist-1.3.4.tgz#31938545c7c3e7de35c20ab08c2c3afa06e8a3f9" + integrity sha512-EYC5eQFVkoYXq39l7tYKE6lEjHJ04mvTmKXxGL7quHLdFPfJMNzru/UYpn92AOfpl3PQaZmou78C7EgmFOwFQQ== + +cross-spawn@^6.0.5: + version "6.0.5" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4" + integrity sha512-eTVLrBSt7fjbDygz805pMnstIs2VTBNkRm0qxZd+M7A5XDdxVRWO5MxGBXZhjY4cqLYLdtrGqRf8mBPmzwSpWQ== + dependencies: + nice-try "^1.0.4" + path-key "^2.0.1" + semver "^5.5.0" + shebang-command "^1.2.0" + which "^1.2.9" + +dedent@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/dedent/-/dedent-0.7.0.tgz#2495ddbaf6eb874abb0e1be9df22d2e5a544326c" + integrity sha1-JJXduvbrh0q7Dhvp3yLS5aVEMmw= + +deep-equal@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/deep-equal/-/deep-equal-1.0.1.tgz#f5d260292b660e084eff4cdbc9f08ad3247448b5" + integrity sha1-9dJgKStmDghO/0zbyfCK0yR0SLU= + +define-properties@^1.1.2: + version "1.1.3" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.3.tgz#cf88da6cbee26fe6db7094f61d870cbd84cee9f1" + integrity sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ== + dependencies: + object-keys "^1.0.12" + +defined@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/defined/-/defined-1.0.0.tgz#c98d9bcef75674188e110969151199e39b1fa693" + integrity sha1-yY2bzvdWdBiOEQlpFRGZ45sfppM= + +elementtree@0.1.7, elementtree@^0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/elementtree/-/elementtree-0.1.7.tgz#9ac91be6e52fb6e6244c4e54a4ac3ed8ae8e29c0" + integrity sha1-mskb5uUvtuYkTE5UpKw+2K6OKcA= + dependencies: + sax "1.1.4" + +endent@^1.1.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/endent/-/endent-1.3.0.tgz#ea86b583d7b7caff5cbee5ad2c7c322eb1900c76" + integrity sha512-C8AryqPPwtydqcpO5AF6k9Bd1EpFkQtvsefJqS3y3n8TG13Jy63MascDxTOULZYqrUde+dK6BjNc6LIMr3iI2A== + dependencies: + dedent "^0.7.0" + fast-json-parse "^1.0.3" + objectorarray "^1.0.3" + +es-abstract@^1.5.0: + version "1.14.2" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.14.2.tgz#7ce108fad83068c8783c3cdf62e504e084d8c497" + integrity sha512-DgoQmbpFNOofkjJtKwr87Ma5EW4Dc8fWhD0R+ndq7Oc456ivUfGOOP6oAZTTKl5/CcNMP+EN+e3/iUzgE0veZg== + dependencies: + es-to-primitive "^1.2.0" + function-bind "^1.1.1" + has "^1.0.3" + has-symbols "^1.0.0" + is-callable "^1.1.4" + is-regex "^1.0.4" + object-inspect "^1.6.0" + object-keys "^1.1.1" + string.prototype.trimleft "^2.0.0" + string.prototype.trimright "^2.0.0" + +es-to-primitive@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.0.tgz#edf72478033456e8dda8ef09e00ad9650707f377" + integrity sha512-qZryBOJjV//LaxLTV6UC//WewneB3LcXOL9NP++ozKVXsIIIpm/2c13UDiD9Jp2eThsecw9m3jPqDwTyobcdbg== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + +fast-json-parse@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/fast-json-parse/-/fast-json-parse-1.0.3.tgz#43e5c61ee4efa9265633046b770fb682a7577c4d" + integrity sha512-FRWsaZRWEJ1ESVNbDWmsAlqDk96gPQezzLghafp5J4GUKjbCz3OkAHuZs5TuPEtkbVQERysLp9xv6c24fBm8Aw== + +for-each@~0.3.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" + integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw== + dependencies: + is-callable "^1.1.3" + +fs-extra@^8.0.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha1-FQStJSMVjKpA20onh8sBQRmU6k8= + +function-bind@^1.0.2, function-bind@^1.1.1, function-bind@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.1.tgz#a56899d3ea3c9bab874bb9773b7c5ede92f4895d" + integrity sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A== + +glob@^7.1.2, glob@~7.1.4: + version "7.1.4" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.4.tgz#aa608a2f6c577ad357e1ae5a5c26d9a8d1969255" + integrity sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.4" + once "^1.3.0" + path-is-absolute "^1.0.0" + +graceful-fs@^4.1.6, graceful-fs@^4.2.0: + version "4.2.2" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.2.tgz#6f0952605d0140c1cfdb138ed005775b92d67b02" + integrity sha512-IItsdsea19BoLC7ELy13q1iJFNmd7ofZH5+X/pJr90/nRoPEX0DJo1dHDbgtYWOhJhcCgMDTOw84RZ72q6lB+Q== + +has-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.0.tgz#ba1a8f1af2a0fc39650f5c850367704122063b44" + integrity sha1-uhqPGvKg/DllD1yFA2dwQSIGO0Q= + +has@^1.0.1, has@^1.0.3, has@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.3.tgz#722d7cbfc1f6aa8241f16dd814e011e1f41e8796" + integrity sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw== + dependencies: + function-bind "^1.1.1" + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk= + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@~2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +"instabug-cordova@file:../instabug-cordova": + version "8.6.5" + dependencies: + xcode "^0.9.0" + +ios-sim@^8.0.1: + version "8.0.2" + resolved "https://registry.yarnpkg.com/ios-sim/-/ios-sim-8.0.2.tgz#e2394acb6db4378f75f4c3ff8610bbf4f4795c43" + integrity sha512-P7nEG771bfd+JoMRjnis1gpZOkjTUUxu+4Ek1Z+eoaEEoT9byllU9pxfQ8Df7hL3gSkIQxNwTSLhos2I8tWUQA== + dependencies: + bplist-parser "^0.0.6" + nopt "1.0.9" + plist "^3.0.1" + simctl "^2" + +is-callable@^1.1.3, is-callable@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.1.4.tgz#1e1adf219e1eeb684d691f9d6a05ff0d30a24d75" + integrity sha512-r5p9sxJjYnArLjObpjA4xu5EKI3CuKHkJXMhT7kwbpUyIFD1n5PMAsoPvWnvtZiNz7LjkYDRZhd7FlI0eMijEA== + +is-date-object@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.1.tgz#9aa20eb6aeebbff77fbd33e74ca01b33581d3a16" + integrity sha1-mqIOtq7rv/d/vTPnTKAbM1gdOhY= + +is-regex@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.0.4.tgz#5517489b547091b0930e095654ced25ee97e9491" + integrity sha1-VRdIm1RwkbCTDglWVM7SXul+lJE= + dependencies: + has "^1.0.1" + +is-symbol@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.2.tgz#a055f6ae57192caee329e7a860118b497a950f38" + integrity sha512-HS8bZ9ox60yCJLH9snBpIwv9pYUAkcuLhSA1oero1UB5y9aiQpRA8y2ex945AOtCZL1lJDeIk3G5LthswI46Lw== + dependencies: + has-symbols "^1.0.0" + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha1-6PvzdNxVb/iUehDcsFctYz8s+hA= + +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + integrity sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss= + optionalDependencies: + graceful-fs "^4.1.6" + +minimatch@^3.0.0, minimatch@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.4.tgz#5166e286457f03306064be5497e8dbb0c3d32083" + integrity sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA== + dependencies: + brace-expansion "^1.1.7" + +minimist@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + integrity sha1-o1AIsg9BOD7sH7kU9M1d95omQoQ= + +nice-try@^1.0.4: + version "1.0.5" + resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366" + integrity sha512-1nh45deeb5olNY7eX82BkPO7SSxR5SSYJiPTrTdFUVYwAl8CKMA5N9PjTYkHiRjisVcxcQ1HXdLhx2qxxJzLNQ== + +nopt@1.0.9: + version "1.0.9" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-1.0.9.tgz#3bc0d7cba7bfb0d5a676dbed7c0ebe48a4fd454e" + integrity sha1-O8DXy6e/sNWmdtvtfA6+SKT9RU4= + dependencies: + abbrev "1" + +nopt@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-4.0.1.tgz#d0d4685afd5415193c8c7505602d0d17cd64474d" + integrity sha1-0NRoWv1UFRk8jHUFYC0NF81kR00= + dependencies: + abbrev "1" + osenv "^0.1.4" + +object-inspect@^1.6.0, object-inspect@~1.6.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.6.0.tgz#c70b6cbf72f274aab4c34c0c82f5167bf82cf15b" + integrity sha512-GJzfBZ6DgDAmnuaM3104jR4s1Myxr3Y3zfIyN4z3UdqN69oSRacNK8UhnobDdC+7J2AHCjGwxQubNJfE70SXXQ== + +object-keys@^1.0.12, object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +objectorarray@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/objectorarray/-/objectorarray-1.0.3.tgz#d2a2de9097c06a48d7d77264fd71406519e7c772" + integrity sha512-kPoflSYkAf/Onvjr4ZLaq37vDuOXjVzfwLCRuORRzYGdXkHa/vacPT0RgR+KmtkwOYFcxTMM62BRrZk8GGKHjw== + dependencies: + tape "^4.8.0" + +once@^1.3.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha1-WDsap3WWHUsROsF9nFC6753Xa9E= + dependencies: + wrappy "1" + +os-homedir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + integrity sha1-/7xJiDNuDoM94MFox+8VISGqf7M= + +os-tmpdir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ= + +osenv@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/osenv/-/osenv-0.1.5.tgz#85cdfafaeb28e8677f416e287592b5f3f49ea410" + integrity sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g== + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.0" + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha1-F0uSaHNVNP+8es5r9TpanhtcX18= + +path-key@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40" + integrity sha1-QRyttXTFoUDTpLGRDUDYDMn0C0A= + +path-parse@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.6.tgz#d62dbb5679405d72c4737ec58600e9ddcf06d24c" + integrity sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw== + +pegjs@^0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/pegjs/-/pegjs-0.10.0.tgz#cf8bafae6eddff4b5a7efb185269eaaf4610ddbd" + integrity sha1-z4uvrm7d/0tafvsYUmnqr0YQ3b0= + +plist@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/plist/-/plist-2.0.1.tgz#0a32ca9481b1c364e92e18dc55c876de9d01da8b" + integrity sha1-CjLKlIGxw2TpLhjcVch23p0B2os= + dependencies: + base64-js "1.1.2" + xmlbuilder "8.2.2" + xmldom "0.1.x" + +plist@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/plist/-/plist-3.0.1.tgz#a9b931d17c304e8912ef0ba3bdd6182baf2e1f8c" + integrity sha512-GpgvHHocGRyQm74b6FWEZZVRroHKE1I0/BTjAmySaohK+cUn+hZpbqXkc3KWgW3gQYkqcQej35FohcT0FRlkRQ== + dependencies: + base64-js "^1.2.3" + xmlbuilder "^9.0.7" + xmldom "0.1.x" + +properties-parser@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/properties-parser/-/properties-parser-0.3.1.tgz#1316e9539ffbfd93845e369b211022abd478771a" + integrity sha1-ExbpU5/7/ZOEXjabIRAiq9R4dxo= + dependencies: + string.prototype.codepointat "^0.2.0" + +q@^1.4.1, q@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" + integrity sha1-fjL3W0E4EpHQRhHxvxQQmsAGUdc= + +resolve@~1.11.1: + version "1.11.1" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.11.1.tgz#ea10d8110376982fef578df8fc30b9ac30a07a3e" + integrity sha512-vIpgF6wfuJOZI7KKKSP+HmiKggadPQAdsp5HiC1mvqnfp0gF1vdwgBWZIdrVft9pgqoMFQN+R7BSWZiBxx+BBw== + dependencies: + path-parse "^1.0.6" + +resumer@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/resumer/-/resumer-0.0.0.tgz#f1e8f461e4064ba39e82af3cdc2a8c893d076759" + integrity sha1-8ej0YeQGS6Oegq883CqMiT0HZ1k= + dependencies: + through "~2.3.4" + +sax@1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.1.4.tgz#74b6d33c9ae1e001510f179a91168588f1aedaa9" + integrity sha1-dLbTPJrh4AFRDxeakRaFiPGu2qk= + +semver@^5.4.1, semver@^5.5.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.1.tgz#a954f931aeba508d307bbf069eff0c01c96116f7" + integrity sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ== + +shebang-command@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea" + integrity sha1-RKrGW2lbAzmJaMOfNj/uXer98eo= + dependencies: + shebang-regex "^1.0.0" + +shebang-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3" + integrity sha1-2kL0l0DAtC2yypcoVxyxkMmO/qM= + +shelljs@^0.2.6: + version "0.2.6" + resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.2.6.tgz#90492d72ffcc8159976baba62fb0f6884f0c3378" + integrity sha1-kEktcv/MgVmXa6umL7D2iE8MM3g= + +shelljs@^0.5.3: + version "0.5.3" + resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.5.3.tgz#c54982b996c76ef0c1e6b59fbdc5825f5b713113" + integrity sha1-xUmCuZbHbvDB5rWfvcWCX1txMRM= + +simctl@^2: + version "2.0.0" + resolved "https://registry.yarnpkg.com/simctl/-/simctl-2.0.0.tgz#e3f1c6908735969e23e0922b0cb1161843dd0c59" + integrity sha512-5rB7rN4N3b0z0nFdy9eczVssXqrv2aAgdVRksPVqVoiDtvXmfzNvebp3EMdId2sAUzXIflarQlx4P0hjVQEzKQ== + dependencies: + shelljs "^0.2.6" + tail "^0.4.0" + +simple-plist@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/simple-plist/-/simple-plist-0.2.1.tgz#71766db352326928cf3a807242ba762322636723" + integrity sha1-cXZts1IyaSjPOoByQrp2IyJjZyM= + dependencies: + bplist-creator "0.0.7" + bplist-parser "0.1.1" + plist "2.0.1" + +simple-plist@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/simple-plist/-/simple-plist-1.0.0.tgz#bed3085633b22f371e111f45d159a1ccf94b81eb" + integrity sha512-043L2rO80LVF7zfZ+fqhsEkoJFvW8o59rt/l4ctx1TJWoTx7/jkiS1R5TatD15Z1oYnuLJytzE7gcnnBuIPL2g== + dependencies: + bplist-creator "0.0.7" + bplist-parser "0.1.1" + plist "^3.0.1" + +stream-buffers@~2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/stream-buffers/-/stream-buffers-2.2.0.tgz#91d5f5130d1cef96dcfa7f726945188741d09ee4" + integrity sha1-kdX1Ew0c75bc+n9yaUUYh0HQnuQ= + +string.prototype.codepointat@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/string.prototype.codepointat/-/string.prototype.codepointat-0.2.1.tgz#004ad44c8afc727527b108cd462b4d971cd469bc" + integrity sha512-2cBVCj6I4IOvEnjgO/hWqXjqBGsY+zwPmHl12Srk9IXSZ56Jwwmy+66XO5Iut/oQVR7t5ihYdLB0GMa4alEUcg== + +string.prototype.trim@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.1.2.tgz#d04de2c89e137f4d7d206f086b5ed2fae6be8cea" + integrity sha1-0E3iyJ4Tf019IG8Ia17S+ua+jOo= + dependencies: + define-properties "^1.1.2" + es-abstract "^1.5.0" + function-bind "^1.0.2" + +string.prototype.trimleft@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string.prototype.trimleft/-/string.prototype.trimleft-2.0.0.tgz#68b6aa8e162c6a80e76e3a8a0c2e747186e271ff" + integrity sha1-aLaqjhYsaoDnbjqKDC50cYbicf8= + dependencies: + define-properties "^1.1.2" + function-bind "^1.0.2" + +string.prototype.trimright@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string.prototype.trimright/-/string.prototype.trimright-2.0.0.tgz#ab4a56d802a01fbe7293e11e84f24dc8164661dd" + integrity sha1-q0pW2AKgH75yk+EehPJNyBZGYd0= + dependencies: + define-properties "^1.1.2" + function-bind "^1.0.2" + +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + integrity sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM= + +tail@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/tail/-/tail-0.4.0.tgz#d29de72750cc99db1e053aff13c359ecfb713002" + integrity sha1-0p3nJ1DMmdseBTr/E8NZ7PtxMAI= + +tape@^4.8.0: + version "4.11.0" + resolved "https://registry.yarnpkg.com/tape/-/tape-4.11.0.tgz#63d41accd95e45a23a874473051c57fdbc58edc1" + integrity sha512-yixvDMX7q7JIs/omJSzSZrqulOV51EC9dK8dM0TzImTIkHWfe2/kFyL5v+d9C+SrCMaICk59ujsqFAVidDqDaA== + dependencies: + deep-equal "~1.0.1" + defined "~1.0.0" + for-each "~0.3.3" + function-bind "~1.1.1" + glob "~7.1.4" + has "~1.0.3" + inherits "~2.0.4" + minimist "~1.2.0" + object-inspect "~1.6.0" + resolve "~1.11.1" + resumer "~0.0.0" + string.prototype.trim "~1.1.2" + through "~2.3.8" + +through@~2.3.4, through@~2.3.8: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU= + +underscore@^1.8.3: + version "1.9.1" + resolved "https://registry.yarnpkg.com/underscore/-/underscore-1.9.1.tgz#06dce34a0e68a7babc29b365b8e74b8925203961" + integrity sha512-5/4etnCkd9c8gwgowi5/om/mYO5ajCaOgdzj/oW+0eQV9WxKBDZw5+ycmKmeaTXjInS/W0BzpGLo2xR2aBwZdg== + +universalify@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + +unorm@^1.4.1: + version "1.6.0" + resolved "https://registry.yarnpkg.com/unorm/-/unorm-1.6.0.tgz#029b289661fba714f1a9af439eb51d9b16c205af" + integrity sha512-b2/KCUlYZUeA7JFUuRJZPUtr4gZvBh7tavtv4fvk4+KV9pfGiR6CQAQAWl49ZpR3ts2dk4FYkP7EIgDJoiOLDA== + +uuid@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" + integrity sha1-ZUS7ot/ajBzxfmKaOjBeK7H+5sE= + +uuid@^3.3.2: + version "3.3.3" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.3.3.tgz#4568f0216e78760ee1dbf3a4d2cf53e224112866" + integrity sha512-pW0No1RGHgzlpHJO1nsVrHKpOEIxkGg1xB+v0ZmdNH5OAeAwzAVrCnI2/6Mtx+Uys6iaylxa+D3g4j63IKKjSQ== + +which@^1.2.9, which@^1.3.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8= + +xcode@^0.9.0: + version "0.9.3" + resolved "https://registry.yarnpkg.com/xcode/-/xcode-0.9.3.tgz#910a89c16aee6cc0b42ca805a6d0b4cf87211cf3" + integrity sha1-kQqJwWrubMC0LKgFptC0z4chHPM= + dependencies: + pegjs "^0.10.0" + simple-plist "^0.2.1" + uuid "3.0.1" + +xcode@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/xcode/-/xcode-2.0.0.tgz#134f1f94c26fbfe8a9aaa9724bfb2772419da1a2" + integrity sha512-5xF6RCjAdDEiEsbbZaS/gBRt3jZ/177otZcpoLCjGN/u1LrfgH7/Sgeeavpr/jELpyDqN2im3AKosl2G2W8hfw== + dependencies: + simple-plist "^1.0.0" + uuid "^3.3.2" + +xml-escape@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/xml-escape/-/xml-escape-1.1.0.tgz#3904c143fa8eb3a0030ec646d2902a2f1b706c44" + integrity sha1-OQTBQ/qOs6ADDsZG0pAqLxtwbEQ= + +xmlbuilder@8.2.2: + version "8.2.2" + resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-8.2.2.tgz#69248673410b4ba42e1a6136551d2922335aa773" + integrity sha1-aSSGc0ELS6QuGmE2VR0pIjNap3M= + +xmlbuilder@^9.0.7: + version "9.0.7" + resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-9.0.7.tgz#132ee63d2ec5565c557e20f4c22df9aca686b10d" + integrity sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0= + +xmldom@0.1.x: + version "0.1.27" + resolved "https://registry.yarnpkg.com/xmldom/-/xmldom-0.1.27.tgz#d501f97b3bdb403af8ef9ecc20573187aadac0e9" + integrity sha1-1QH5ezvbQDr4757MIFcxh6rawOk=