@react-native-firebase/crashlytics 23.6.0 → 23.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/commonjs/handlers.js +175 -0
- package/dist/commonjs/handlers.js.map +1 -0
- package/dist/commonjs/index.js +38 -0
- package/dist/commonjs/index.js.map +1 -0
- package/dist/commonjs/modular.js +256 -0
- package/dist/commonjs/modular.js.map +1 -0
- package/dist/commonjs/namespaced.js +138 -0
- package/dist/commonjs/namespaced.js.map +1 -0
- package/dist/commonjs/package.json +1 -0
- package/dist/commonjs/types/crashlytics.js +47 -0
- package/dist/commonjs/types/crashlytics.js.map +1 -0
- package/dist/commonjs/version.js +9 -0
- package/dist/commonjs/version.js.map +1 -0
- package/{lib → dist/module}/handlers.js +39 -36
- package/dist/module/handlers.js.map +1 -0
- package/{ios/RNFBCrashlytics/RNFBCrashlyticsModule.h → dist/module/index.js} +10 -6
- package/dist/module/index.js.map +1 -0
- package/{lib/modular/index.js → dist/module/modular.js} +37 -43
- package/dist/module/modular.js.map +1 -0
- package/dist/module/namespaced.js +135 -0
- package/dist/module/namespaced.js.map +1 -0
- package/dist/module/package.json +1 -0
- package/dist/module/types/crashlytics.js +43 -0
- package/dist/module/types/crashlytics.js.map +1 -0
- package/dist/module/version.js +5 -0
- package/dist/module/version.js.map +1 -0
- package/dist/typescript/commonjs/lib/handlers.d.ts +28 -0
- package/dist/typescript/commonjs/lib/handlers.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/index.d.ts +5 -0
- package/dist/typescript/commonjs/lib/index.d.ts.map +1 -0
- package/{lib/modular/index.d.ts → dist/typescript/commonjs/lib/modular.d.ts} +37 -40
- package/dist/typescript/commonjs/lib/modular.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/namespaced.d.ts +12 -0
- package/dist/typescript/commonjs/lib/namespaced.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/types/crashlytics.d.ts +117 -0
- package/dist/typescript/commonjs/lib/types/crashlytics.d.ts.map +1 -0
- package/dist/typescript/commonjs/lib/version.d.ts +2 -0
- package/dist/typescript/commonjs/lib/version.d.ts.map +1 -0
- package/dist/typescript/commonjs/package.json +1 -0
- package/dist/typescript/module/lib/handlers.d.ts +28 -0
- package/dist/typescript/module/lib/handlers.d.ts.map +1 -0
- package/dist/typescript/module/lib/index.d.ts +5 -0
- package/dist/typescript/module/lib/index.d.ts.map +1 -0
- package/dist/typescript/module/lib/modular.d.ts +193 -0
- package/dist/typescript/module/lib/modular.d.ts.map +1 -0
- package/dist/typescript/module/lib/namespaced.d.ts +12 -0
- package/dist/typescript/module/lib/namespaced.d.ts.map +1 -0
- package/dist/typescript/module/lib/types/crashlytics.d.ts +117 -0
- package/dist/typescript/module/lib/types/crashlytics.d.ts.map +1 -0
- package/dist/typescript/module/lib/version.d.ts +2 -0
- package/dist/typescript/module/lib/version.d.ts.map +1 -0
- package/dist/typescript/module/package.json +1 -0
- package/lib/handlers.ts +196 -0
- package/{ios/RNFBCrashlytics/RNFBCrashlyticsNativeHelper.h → lib/index.ts} +8 -11
- package/lib/modular.ts +249 -0
- package/lib/{index.js → namespaced.ts} +51 -22
- package/lib/types/crashlytics.ts +159 -0
- package/lib/version.ts +2 -0
- package/package.json +60 -8
- package/tsconfig.json +21 -0
- package/CHANGELOG.md +0 -1132
- package/RNFBCrashlytics.podspec +0 -54
- package/android/.editorconfig +0 -10
- package/android/build.gradle +0 -102
- package/android/lint.xml +0 -5
- package/android/settings.gradle +0 -1
- package/android/src/main/AndroidManifest.xml +0 -15
- package/android/src/main/java/io/invertase/firebase/crashlytics/Constants.java +0 -29
- package/android/src/main/java/io/invertase/firebase/crashlytics/JavaScriptError.java +0 -28
- package/android/src/main/java/io/invertase/firebase/crashlytics/ReactNativeFirebaseCrashlyticsInitProvider.java +0 -130
- package/android/src/main/java/io/invertase/firebase/crashlytics/ReactNativeFirebaseCrashlyticsModule.java +0 -223
- package/android/src/main/java/io/invertase/firebase/crashlytics/ReactNativeFirebaseCrashlyticsNativeHelper.java +0 -18
- package/android/src/main/java/io/invertase/firebase/crashlytics/ReactNativeFirebaseCrashlyticsPackage.java +0 -41
- package/android/src/main/java/io/invertase/firebase/crashlytics/UnhandledPromiseRejection.java +0 -28
- package/app.plugin.js +0 -1
- package/ios/RNFBCrashlytics/RNFBCrashlyticsInitProvider.h +0 -33
- package/ios/RNFBCrashlytics/RNFBCrashlyticsInitProvider.m +0 -142
- package/ios/RNFBCrashlytics/RNFBCrashlyticsModule.m +0 -248
- package/ios/RNFBCrashlytics/RNFBCrashlyticsNativeHelper.m +0 -36
- package/ios/RNFBCrashlytics.xcodeproj/project.pbxproj +0 -359
- package/ios/RNFBCrashlytics.xcodeproj/xcshareddata/IDETemplateMacros.plist +0 -24
- package/ios_config.sh +0 -25
- package/lib/index.d.ts +0 -287
- package/lib/version.js +0 -2
- package/plugin/build/android/applyPlugin.d.ts +0 -6
- package/plugin/build/android/applyPlugin.js +0 -28
- package/plugin/build/android/buildscriptDependency.d.ts +0 -6
- package/plugin/build/android/buildscriptDependency.js +0 -29
- package/plugin/build/android/constants.d.ts +0 -3
- package/plugin/build/android/constants.js +0 -7
- package/plugin/build/android/index.d.ts +0 -3
- package/plugin/build/android/index.js +0 -7
- package/plugin/build/index.d.ts +0 -3
- package/plugin/build/index.js +0 -12
- package/plugin/tsconfig.tsbuildinfo +0 -1
- package/react-native.config.js +0 -35
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withApplyCrashlyticsPlugin = void 0;
|
|
4
|
-
exports.applyPlugin = applyPlugin;
|
|
5
|
-
const config_plugins_1 = require("@expo/config-plugins");
|
|
6
|
-
const constants_1 = require("./constants");
|
|
7
|
-
/**
|
|
8
|
-
* Update `app/build.gradle` by applying crashlytics plugin
|
|
9
|
-
*/
|
|
10
|
-
const withApplyCrashlyticsPlugin = config => {
|
|
11
|
-
return (0, config_plugins_1.withAppBuildGradle)(config, config => {
|
|
12
|
-
if (config.modResults.language === 'groovy') {
|
|
13
|
-
config.modResults.contents = applyPlugin(config.modResults.contents);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
config_plugins_1.WarningAggregator.addWarningAndroid('react-native-firebase-crashlytics', `Cannot automatically configure app build.gradle if it's not groovy`);
|
|
17
|
-
}
|
|
18
|
-
return config;
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
exports.withApplyCrashlyticsPlugin = withApplyCrashlyticsPlugin;
|
|
22
|
-
function applyPlugin(appBuildGradle) {
|
|
23
|
-
const crashlyticsPattern = new RegExp(`apply\\s+plugin:\\s+['"]${constants_1.crashlyticsPlugin}['"]`);
|
|
24
|
-
if (!appBuildGradle.match(crashlyticsPattern)) {
|
|
25
|
-
appBuildGradle += `\napply plugin: '${constants_1.crashlyticsPlugin}'`;
|
|
26
|
-
}
|
|
27
|
-
return appBuildGradle;
|
|
28
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
-
/**
|
|
3
|
-
* Update `<project>/build.gradle` by adding google-services dependency to buildscript
|
|
4
|
-
*/
|
|
5
|
-
export declare const withBuildscriptDependency: ConfigPlugin;
|
|
6
|
-
export declare function setBuildscriptDependency(buildGradle: string): string;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withBuildscriptDependency = void 0;
|
|
4
|
-
exports.setBuildscriptDependency = setBuildscriptDependency;
|
|
5
|
-
const config_plugins_1 = require("@expo/config-plugins");
|
|
6
|
-
const constants_1 = require("./constants");
|
|
7
|
-
/**
|
|
8
|
-
* Update `<project>/build.gradle` by adding google-services dependency to buildscript
|
|
9
|
-
*/
|
|
10
|
-
const withBuildscriptDependency = config => {
|
|
11
|
-
return (0, config_plugins_1.withProjectBuildGradle)(config, config => {
|
|
12
|
-
if (config.modResults.language === 'groovy') {
|
|
13
|
-
config.modResults.contents = setBuildscriptDependency(config.modResults.contents);
|
|
14
|
-
}
|
|
15
|
-
else {
|
|
16
|
-
config_plugins_1.WarningAggregator.addWarningAndroid('react-native-firebase-crashlytics', `Cannot automatically configure project build.gradle if it's not groovy`);
|
|
17
|
-
}
|
|
18
|
-
return config;
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
exports.withBuildscriptDependency = withBuildscriptDependency;
|
|
22
|
-
function setBuildscriptDependency(buildGradle) {
|
|
23
|
-
// TODO: Find a more stable solution for this
|
|
24
|
-
if (!buildGradle.includes(constants_1.crashlyticsClassPath)) {
|
|
25
|
-
return buildGradle.replace(/dependencies\s?{/, `dependencies {
|
|
26
|
-
classpath '${constants_1.crashlyticsClassPath}:${constants_1.crashlyticsVersion}'`);
|
|
27
|
-
}
|
|
28
|
-
return buildGradle;
|
|
29
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.crashlyticsVersion = exports.crashlyticsPlugin = exports.crashlyticsClassPath = void 0;
|
|
4
|
-
const appPackageJson = require('@react-native-firebase/app/package.json');
|
|
5
|
-
exports.crashlyticsClassPath = 'com.google.firebase:firebase-crashlytics-gradle';
|
|
6
|
-
exports.crashlyticsPlugin = 'com.google.firebase.crashlytics';
|
|
7
|
-
exports.crashlyticsVersion = appPackageJson.sdkVersions.android.firebaseCrashlyticsGradle;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withApplyCrashlyticsPlugin = exports.withBuildscriptDependency = void 0;
|
|
4
|
-
const applyPlugin_1 = require("./applyPlugin");
|
|
5
|
-
Object.defineProperty(exports, "withApplyCrashlyticsPlugin", { enumerable: true, get: function () { return applyPlugin_1.withApplyCrashlyticsPlugin; } });
|
|
6
|
-
const buildscriptDependency_1 = require("./buildscriptDependency");
|
|
7
|
-
Object.defineProperty(exports, "withBuildscriptDependency", { enumerable: true, get: function () { return buildscriptDependency_1.withBuildscriptDependency; } });
|
package/plugin/build/index.d.ts
DELETED
package/plugin/build/index.js
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const config_plugins_1 = require("@expo/config-plugins");
|
|
4
|
-
const android_1 = require("./android");
|
|
5
|
-
/**
|
|
6
|
-
* A config plugin for configuring `@react-native-firebase/crashlytics`
|
|
7
|
-
*/
|
|
8
|
-
const withRnFirebaseCrashlytics = config => {
|
|
9
|
-
return (0, config_plugins_1.withPlugins)(config, [android_1.withBuildscriptDependency, android_1.withApplyCrashlyticsPlugin]);
|
|
10
|
-
};
|
|
11
|
-
const pak = require('@react-native-firebase/crashlytics/package.json');
|
|
12
|
-
exports.default = (0, config_plugins_1.createRunOncePlugin)(withRnFirebaseCrashlytics, pak.name, pak.version);
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"root":["./src/index.ts","./src/android/applyPlugin.ts","./src/android/buildscriptDependency.ts","./src/android/constants.ts","./src/android/index.ts"],"version":"5.9.3"}
|
package/react-native.config.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this library except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
|
|
17
|
-
module.exports = {
|
|
18
|
-
dependency: {
|
|
19
|
-
platforms: {
|
|
20
|
-
ios: {
|
|
21
|
-
scriptPhases: [
|
|
22
|
-
{
|
|
23
|
-
name: '[RNFB] Crashlytics Configuration',
|
|
24
|
-
path: './ios_config.sh',
|
|
25
|
-
execution_position: 'after_compile',
|
|
26
|
-
input_files: [
|
|
27
|
-
'${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}',
|
|
28
|
-
'$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)',
|
|
29
|
-
],
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
};
|