@react-native-firebase/crashlytics 23.8.0 → 23.8.1
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/CHANGELOG.md +1146 -0
- package/RNFBCrashlytics.podspec +54 -0
- package/android/.editorconfig +10 -0
- package/android/build.gradle +102 -0
- package/android/lint.xml +5 -0
- package/android/settings.gradle +1 -0
- package/android/src/main/AndroidManifest.xml +15 -0
- package/android/src/main/java/io/invertase/firebase/crashlytics/Constants.java +29 -0
- package/android/src/main/java/io/invertase/firebase/crashlytics/JavaScriptError.java +28 -0
- package/android/src/main/java/io/invertase/firebase/crashlytics/ReactNativeFirebaseCrashlyticsInitProvider.java +130 -0
- package/android/src/main/java/io/invertase/firebase/crashlytics/ReactNativeFirebaseCrashlyticsModule.java +223 -0
- package/android/src/main/java/io/invertase/firebase/crashlytics/ReactNativeFirebaseCrashlyticsNativeHelper.java +18 -0
- package/android/src/main/java/io/invertase/firebase/crashlytics/ReactNativeFirebaseCrashlyticsPackage.java +41 -0
- package/android/src/main/java/io/invertase/firebase/crashlytics/UnhandledPromiseRejection.java +28 -0
- package/app.plugin.js +1 -0
- package/dist/commonjs/version.js +1 -1
- package/dist/module/version.js +1 -1
- package/dist/typescript/commonjs/lib/namespaced.d.ts +1 -1
- package/dist/typescript/commonjs/lib/version.d.ts +1 -1
- package/dist/typescript/module/lib/namespaced.d.ts +1 -1
- package/dist/typescript/module/lib/version.d.ts +1 -1
- package/ios/RNFBCrashlytics/RNFBCrashlyticsInitProvider.h +33 -0
- package/ios/RNFBCrashlytics/RNFBCrashlyticsInitProvider.m +142 -0
- package/ios/RNFBCrashlytics/RNFBCrashlyticsModule.h +24 -0
- package/ios/RNFBCrashlytics/RNFBCrashlyticsModule.m +248 -0
- package/ios/RNFBCrashlytics/RNFBCrashlyticsNativeHelper.h +29 -0
- package/ios/RNFBCrashlytics/RNFBCrashlyticsNativeHelper.m +36 -0
- package/ios/RNFBCrashlytics.xcodeproj/project.pbxproj +359 -0
- package/ios/RNFBCrashlytics.xcodeproj/xcshareddata/IDETemplateMacros.plist +24 -0
- package/ios_config.sh +25 -0
- package/lib/version.ts +1 -1
- package/package.json +5 -15
- package/plugin/build/android/applyPlugin.d.ts +6 -0
- package/plugin/build/android/applyPlugin.js +28 -0
- package/plugin/build/android/buildscriptDependency.d.ts +6 -0
- package/plugin/build/android/buildscriptDependency.js +29 -0
- package/plugin/build/android/constants.d.ts +3 -0
- package/plugin/build/android/constants.js +7 -0
- package/plugin/build/android/index.d.ts +3 -0
- package/plugin/build/android/index.js +7 -0
- package/plugin/build/index.d.ts +3 -0
- package/plugin/build/index.js +12 -0
- package/plugin/tsconfig.tsbuildinfo +1 -0
- package/react-native.config.js +35 -0
|
@@ -0,0 +1,359 @@
|
|
|
1
|
+
// !$*UTF8*$!
|
|
2
|
+
{
|
|
3
|
+
archiveVersion = 1;
|
|
4
|
+
classes = {
|
|
5
|
+
};
|
|
6
|
+
objectVersion = 48;
|
|
7
|
+
objects = {
|
|
8
|
+
|
|
9
|
+
/* Begin PBXBuildFile section */
|
|
10
|
+
2744B98621F45429004F8E3F /* RNFBCrashlyticsModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 2744B98521F45429004F8E3F /* RNFBCrashlyticsModule.m */; };
|
|
11
|
+
2748D82422371C1C00FC8DC8 /* RNFBCrashlyticsInitProvider.m in Sources */ = {isa = PBXBuildFile; fileRef = 2748D82322371C1C00FC8DC8 /* RNFBCrashlyticsInitProvider.m */; };
|
|
12
|
+
C66637BB25FA560700DCAA51 /* RNFBCrashlyticsNativeHelper.m in Sources */ = {isa = PBXBuildFile; fileRef = C66637BA25FA560700DCAA51 /* RNFBCrashlyticsNativeHelper.m */; };
|
|
13
|
+
/* End PBXBuildFile section */
|
|
14
|
+
|
|
15
|
+
/* Begin PBXCopyFilesBuildPhase section */
|
|
16
|
+
2744B98021F45429004F8E3F /* CopyFiles */ = {
|
|
17
|
+
isa = PBXCopyFilesBuildPhase;
|
|
18
|
+
buildActionMask = 2147483647;
|
|
19
|
+
dstPath = "";
|
|
20
|
+
dstSubfolderSpec = 16;
|
|
21
|
+
files = (
|
|
22
|
+
);
|
|
23
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
24
|
+
};
|
|
25
|
+
/* End PBXCopyFilesBuildPhase section */
|
|
26
|
+
|
|
27
|
+
/* Begin PBXFileReference section */
|
|
28
|
+
2744B98221F45429004F8E3F /* libRNFBCrashlytics.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = libRNFBCrashlytics.a; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
29
|
+
2744B98421F45429004F8E3F /* RNFBCrashlyticsModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = RNFBCrashlyticsModule.h; path = RNFBCrashlytics/RNFBCrashlyticsModule.h; sourceTree = SOURCE_ROOT; };
|
|
30
|
+
2744B98521F45429004F8E3F /* RNFBCrashlyticsModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = RNFBCrashlyticsModule.m; path = RNFBCrashlytics/RNFBCrashlyticsModule.m; sourceTree = SOURCE_ROOT; };
|
|
31
|
+
2748D82222371C0900FC8DC8 /* RNFBCrashlyticsInitProvider.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNFBCrashlyticsInitProvider.h; sourceTree = "<group>"; };
|
|
32
|
+
2748D82322371C1C00FC8DC8 /* RNFBCrashlyticsInitProvider.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNFBCrashlyticsInitProvider.m; sourceTree = "<group>"; };
|
|
33
|
+
C66637BA25FA560700DCAA51 /* RNFBCrashlyticsNativeHelper.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = RNFBCrashlyticsNativeHelper.m; sourceTree = "<group>"; };
|
|
34
|
+
C66637BD25FA561D00DCAA51 /* RNFBCrashlyticsNativeHelper.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = RNFBCrashlyticsNativeHelper.h; sourceTree = "<group>"; };
|
|
35
|
+
/* End PBXFileReference section */
|
|
36
|
+
|
|
37
|
+
/* Begin PBXFrameworksBuildPhase section */
|
|
38
|
+
2744B97F21F45429004F8E3F /* Frameworks */ = {
|
|
39
|
+
isa = PBXFrameworksBuildPhase;
|
|
40
|
+
buildActionMask = 2147483647;
|
|
41
|
+
files = (
|
|
42
|
+
);
|
|
43
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
44
|
+
};
|
|
45
|
+
/* End PBXFrameworksBuildPhase section */
|
|
46
|
+
|
|
47
|
+
/* Begin PBXGroup section */
|
|
48
|
+
2744B97521F452B8004F8E3F /* Products */ = {
|
|
49
|
+
isa = PBXGroup;
|
|
50
|
+
children = (
|
|
51
|
+
2744B98221F45429004F8E3F /* libRNFBCrashlytics.a */,
|
|
52
|
+
);
|
|
53
|
+
name = Products;
|
|
54
|
+
sourceTree = "<group>";
|
|
55
|
+
};
|
|
56
|
+
2744B98321F45429004F8E3F /* RNFBCrashlytics */ = {
|
|
57
|
+
isa = PBXGroup;
|
|
58
|
+
children = (
|
|
59
|
+
2744B98421F45429004F8E3F /* RNFBCrashlyticsModule.h */,
|
|
60
|
+
2744B98521F45429004F8E3F /* RNFBCrashlyticsModule.m */,
|
|
61
|
+
2748D82222371C0900FC8DC8 /* RNFBCrashlyticsInitProvider.h */,
|
|
62
|
+
2748D82322371C1C00FC8DC8 /* RNFBCrashlyticsInitProvider.m */,
|
|
63
|
+
C66637BD25FA561D00DCAA51 /* RNFBCrashlyticsNativeHelper.h */,
|
|
64
|
+
C66637BA25FA560700DCAA51 /* RNFBCrashlyticsNativeHelper.m */,
|
|
65
|
+
);
|
|
66
|
+
path = RNFBCrashlytics;
|
|
67
|
+
sourceTree = "<group>";
|
|
68
|
+
};
|
|
69
|
+
3323F52AAFE26B7384BE4DE3 = {
|
|
70
|
+
isa = PBXGroup;
|
|
71
|
+
children = (
|
|
72
|
+
2744B98321F45429004F8E3F /* RNFBCrashlytics */,
|
|
73
|
+
2744B97521F452B8004F8E3F /* Products */,
|
|
74
|
+
);
|
|
75
|
+
sourceTree = "<group>";
|
|
76
|
+
};
|
|
77
|
+
/* End PBXGroup section */
|
|
78
|
+
|
|
79
|
+
/* Begin PBXNativeTarget section */
|
|
80
|
+
2744B98121F45429004F8E3F /* RNFBCrashlytics */ = {
|
|
81
|
+
isa = PBXNativeTarget;
|
|
82
|
+
buildConfigurationList = 2744B98821F45429004F8E3F /* Build configuration list for PBXNativeTarget "RNFBCrashlytics" */;
|
|
83
|
+
buildPhases = (
|
|
84
|
+
2744B97E21F45429004F8E3F /* Sources */,
|
|
85
|
+
2744B97F21F45429004F8E3F /* Frameworks */,
|
|
86
|
+
2744B98021F45429004F8E3F /* CopyFiles */,
|
|
87
|
+
);
|
|
88
|
+
buildRules = (
|
|
89
|
+
);
|
|
90
|
+
dependencies = (
|
|
91
|
+
);
|
|
92
|
+
name = RNFBCrashlytics;
|
|
93
|
+
productName = RNFBCrashlytics;
|
|
94
|
+
productReference = 2744B98221F45429004F8E3F /* libRNFBCrashlytics.a */;
|
|
95
|
+
productType = "com.apple.product-type.library.static";
|
|
96
|
+
};
|
|
97
|
+
/* End PBXNativeTarget section */
|
|
98
|
+
|
|
99
|
+
/* Begin PBXProject section */
|
|
100
|
+
3323F95273A95DB34F55C6D7 /* Project object */ = {
|
|
101
|
+
isa = PBXProject;
|
|
102
|
+
attributes = {
|
|
103
|
+
CLASSPREFIX = RNFBCrashlytics;
|
|
104
|
+
LastUpgradeCheck = 1010;
|
|
105
|
+
ORGANIZATIONNAME = Invertase;
|
|
106
|
+
TargetAttributes = {
|
|
107
|
+
2744B98121F45429004F8E3F = {
|
|
108
|
+
CreatedOnToolsVersion = 10.1;
|
|
109
|
+
ProvisioningStyle = Automatic;
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
buildConfigurationList = 3323F1C5716BA966BBBB95A4 /* Build configuration list for PBXProject "RNFBCrashlytics" */;
|
|
114
|
+
compatibilityVersion = "Xcode 8.0";
|
|
115
|
+
developmentRegion = English;
|
|
116
|
+
hasScannedForEncodings = 0;
|
|
117
|
+
knownRegions = (
|
|
118
|
+
en,
|
|
119
|
+
);
|
|
120
|
+
mainGroup = 3323F52AAFE26B7384BE4DE3;
|
|
121
|
+
productRefGroup = 2744B97521F452B8004F8E3F /* Products */;
|
|
122
|
+
projectDirPath = "";
|
|
123
|
+
projectRoot = "";
|
|
124
|
+
targets = (
|
|
125
|
+
2744B98121F45429004F8E3F /* RNFBCrashlytics */,
|
|
126
|
+
);
|
|
127
|
+
};
|
|
128
|
+
/* End PBXProject section */
|
|
129
|
+
|
|
130
|
+
/* Begin PBXSourcesBuildPhase section */
|
|
131
|
+
2744B97E21F45429004F8E3F /* Sources */ = {
|
|
132
|
+
isa = PBXSourcesBuildPhase;
|
|
133
|
+
buildActionMask = 2147483647;
|
|
134
|
+
files = (
|
|
135
|
+
C66637BB25FA560700DCAA51 /* RNFBCrashlyticsNativeHelper.m in Sources */,
|
|
136
|
+
2748D82422371C1C00FC8DC8 /* RNFBCrashlyticsInitProvider.m in Sources */,
|
|
137
|
+
2744B98621F45429004F8E3F /* RNFBCrashlyticsModule.m in Sources */,
|
|
138
|
+
);
|
|
139
|
+
runOnlyForDeploymentPostprocessing = 0;
|
|
140
|
+
};
|
|
141
|
+
/* End PBXSourcesBuildPhase section */
|
|
142
|
+
|
|
143
|
+
/* Begin XCBuildConfiguration section */
|
|
144
|
+
2744B98921F45429004F8E3F /* Debug */ = {
|
|
145
|
+
isa = XCBuildConfiguration;
|
|
146
|
+
buildSettings = {
|
|
147
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
148
|
+
CLANG_ANALYZER_NONNULL = YES;
|
|
149
|
+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
150
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
|
151
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
152
|
+
CLANG_ENABLE_MODULES = YES;
|
|
153
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
154
|
+
CLANG_ENABLE_OBJC_WEAK = YES;
|
|
155
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
156
|
+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
157
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
158
|
+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
159
|
+
CODE_SIGN_IDENTITY = "iPhone Developer";
|
|
160
|
+
CODE_SIGN_STYLE = Automatic;
|
|
161
|
+
COPY_PHASE_STRIP = NO;
|
|
162
|
+
DEBUG_INFORMATION_FORMAT = dwarf;
|
|
163
|
+
GCC_C_LANGUAGE_STANDARD = gnu11;
|
|
164
|
+
GCC_DYNAMIC_NO_PIC = NO;
|
|
165
|
+
GCC_OPTIMIZATION_LEVEL = 0;
|
|
166
|
+
GCC_PREPROCESSOR_DEFINITIONS = (
|
|
167
|
+
"DEBUG=1",
|
|
168
|
+
"$(inherited)",
|
|
169
|
+
);
|
|
170
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
171
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
172
|
+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
|
|
173
|
+
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
|
|
174
|
+
MTL_FAST_MATH = YES;
|
|
175
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
176
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
177
|
+
SDKROOT = iphoneos;
|
|
178
|
+
SKIP_INSTALL = YES;
|
|
179
|
+
TARGETED_DEVICE_FAMILY = "1,2";
|
|
180
|
+
};
|
|
181
|
+
name = Debug;
|
|
182
|
+
};
|
|
183
|
+
2744B98A21F45429004F8E3F /* Release */ = {
|
|
184
|
+
isa = XCBuildConfiguration;
|
|
185
|
+
buildSettings = {
|
|
186
|
+
ALWAYS_SEARCH_USER_PATHS = NO;
|
|
187
|
+
CLANG_ANALYZER_NONNULL = YES;
|
|
188
|
+
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
|
|
189
|
+
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
|
|
190
|
+
CLANG_CXX_LIBRARY = "libc++";
|
|
191
|
+
CLANG_ENABLE_MODULES = YES;
|
|
192
|
+
CLANG_ENABLE_OBJC_ARC = YES;
|
|
193
|
+
CLANG_ENABLE_OBJC_WEAK = YES;
|
|
194
|
+
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
|
|
195
|
+
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
|
|
196
|
+
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
|
|
197
|
+
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
|
|
198
|
+
CODE_SIGN_IDENTITY = "iPhone Developer";
|
|
199
|
+
CODE_SIGN_STYLE = Automatic;
|
|
200
|
+
COPY_PHASE_STRIP = NO;
|
|
201
|
+
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
|
|
202
|
+
ENABLE_NS_ASSERTIONS = NO;
|
|
203
|
+
GCC_C_LANGUAGE_STANDARD = gnu11;
|
|
204
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
|
|
205
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
206
|
+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
|
|
207
|
+
MTL_ENABLE_DEBUG_INFO = NO;
|
|
208
|
+
MTL_FAST_MATH = YES;
|
|
209
|
+
OTHER_LDFLAGS = "-ObjC";
|
|
210
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
211
|
+
SDKROOT = iphoneos;
|
|
212
|
+
SKIP_INSTALL = YES;
|
|
213
|
+
TARGETED_DEVICE_FAMILY = "1,2";
|
|
214
|
+
VALIDATE_PRODUCT = YES;
|
|
215
|
+
};
|
|
216
|
+
name = Release;
|
|
217
|
+
};
|
|
218
|
+
3323F77D701E1896E6D239CF /* Release */ = {
|
|
219
|
+
isa = XCBuildConfiguration;
|
|
220
|
+
buildSettings = {
|
|
221
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
222
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
223
|
+
CLANG_WARN_COMMA = YES;
|
|
224
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
225
|
+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
226
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
227
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
228
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
229
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
230
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
231
|
+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
232
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
233
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
234
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
235
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
236
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
237
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
238
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
239
|
+
FRAMEWORK_SEARCH_PATHS = (
|
|
240
|
+
"$(inherited)",
|
|
241
|
+
"${BUILT_PRODUCTS_DIR}/**",
|
|
242
|
+
"${SRCROOT}/../../../ios/Firebase/**",
|
|
243
|
+
"$(FIREBASE_SEARCH_PATH)/Firebase/**",
|
|
244
|
+
"$(SRCROOT)/../../../ios/Pods/FirebaseCrashlytics/Frameworks",
|
|
245
|
+
"$(SRCROOT)/../../../tests/ios/Pods/FirebaseCrashlytics/Frameworks",
|
|
246
|
+
);
|
|
247
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
248
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
249
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
|
250
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
251
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
|
252
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
253
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
254
|
+
HEADER_SEARCH_PATHS = (
|
|
255
|
+
"$(inherited)",
|
|
256
|
+
"$(REACT_SEARCH_PATH)/React/**",
|
|
257
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
258
|
+
"$(SRCROOT)/../../react-native-firebase/ios/**",
|
|
259
|
+
"$(FIREBASE_SEARCH_PATH)/Firebase/**",
|
|
260
|
+
"${SRCROOT}/../../../ios/Firebase/**",
|
|
261
|
+
"${SRCROOT}/../../../ios/Pods/Headers/Public/**",
|
|
262
|
+
"${SRCROOT}/../../../tests/ios/Pods/Headers/Public/**",
|
|
263
|
+
"$(SRCROOT)/../../../node_modules/react-native/React/**",
|
|
264
|
+
"$(SRCROOT)/../../../node_modules/react-native-firebase/ios/**",
|
|
265
|
+
"$(SRCROOT)/../../../packages/app/ios/**",
|
|
266
|
+
);
|
|
267
|
+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
|
|
268
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
269
|
+
MACH_O_TYPE = staticlib;
|
|
270
|
+
OTHER_LDFLAGS = "$(inherited)";
|
|
271
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
272
|
+
SKIP_INSTALL = YES;
|
|
273
|
+
};
|
|
274
|
+
name = Release;
|
|
275
|
+
};
|
|
276
|
+
3323F7E33E1559A2B9826720 /* Debug */ = {
|
|
277
|
+
isa = XCBuildConfiguration;
|
|
278
|
+
buildSettings = {
|
|
279
|
+
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
|
|
280
|
+
CLANG_WARN_BOOL_CONVERSION = YES;
|
|
281
|
+
CLANG_WARN_COMMA = YES;
|
|
282
|
+
CLANG_WARN_CONSTANT_CONVERSION = YES;
|
|
283
|
+
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
|
|
284
|
+
CLANG_WARN_EMPTY_BODY = YES;
|
|
285
|
+
CLANG_WARN_ENUM_CONVERSION = YES;
|
|
286
|
+
CLANG_WARN_INFINITE_RECURSION = YES;
|
|
287
|
+
CLANG_WARN_INT_CONVERSION = YES;
|
|
288
|
+
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES;
|
|
289
|
+
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
|
|
290
|
+
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES;
|
|
291
|
+
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
|
|
292
|
+
CLANG_WARN_STRICT_PROTOTYPES = YES;
|
|
293
|
+
CLANG_WARN_SUSPICIOUS_MOVE = YES;
|
|
294
|
+
CLANG_WARN_UNREACHABLE_CODE = YES;
|
|
295
|
+
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
|
|
296
|
+
ENABLE_STRICT_OBJC_MSGSEND = YES;
|
|
297
|
+
ENABLE_TESTABILITY = YES;
|
|
298
|
+
FRAMEWORK_SEARCH_PATHS = (
|
|
299
|
+
"$(inherited)",
|
|
300
|
+
"${BUILT_PRODUCTS_DIR}/**",
|
|
301
|
+
"${SRCROOT}/../../../ios/Firebase/**",
|
|
302
|
+
"$(FIREBASE_SEARCH_PATH)/Firebase/**",
|
|
303
|
+
"$(SRCROOT)/../../../ios/Pods/FirebaseCrashlytics/Frameworks",
|
|
304
|
+
);
|
|
305
|
+
GCC_NO_COMMON_BLOCKS = YES;
|
|
306
|
+
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
|
|
307
|
+
GCC_WARN_ABOUT_RETURN_TYPE = YES;
|
|
308
|
+
GCC_WARN_UNDECLARED_SELECTOR = YES;
|
|
309
|
+
GCC_WARN_UNINITIALIZED_AUTOS = YES;
|
|
310
|
+
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
311
|
+
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
312
|
+
HEADER_SEARCH_PATHS = (
|
|
313
|
+
"$(inherited)",
|
|
314
|
+
"$(REACT_SEARCH_PATH)/React/**",
|
|
315
|
+
"$(SRCROOT)/../../react-native/React/**",
|
|
316
|
+
"$(SRCROOT)/../../react-native-firebase/ios/**",
|
|
317
|
+
"$(FIREBASE_SEARCH_PATH)/Firebase/**",
|
|
318
|
+
"${SRCROOT}/../../../ios/Firebase/**",
|
|
319
|
+
"${SRCROOT}/../../../ios/Pods/Headers/Public/**",
|
|
320
|
+
"${SRCROOT}/../../../tests/ios/Pods/Headers/Public/**",
|
|
321
|
+
"$(SRCROOT)/../../../node_modules/react-native/React/**",
|
|
322
|
+
"$(SRCROOT)/../../../node_modules/react-native-firebase/ios/**",
|
|
323
|
+
"$(SRCROOT)/../../../packages/app/ios/**",
|
|
324
|
+
);
|
|
325
|
+
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
|
|
326
|
+
LIBRARY_SEARCH_PATHS = "$(inherited)";
|
|
327
|
+
MACH_O_TYPE = staticlib;
|
|
328
|
+
ONLY_ACTIVE_ARCH = YES;
|
|
329
|
+
OTHER_LDFLAGS = "$(inherited)";
|
|
330
|
+
PRODUCT_NAME = "$(TARGET_NAME)";
|
|
331
|
+
SKIP_INSTALL = YES;
|
|
332
|
+
};
|
|
333
|
+
name = Debug;
|
|
334
|
+
};
|
|
335
|
+
/* End XCBuildConfiguration section */
|
|
336
|
+
|
|
337
|
+
/* Begin XCConfigurationList section */
|
|
338
|
+
2744B98821F45429004F8E3F /* Build configuration list for PBXNativeTarget "RNFBCrashlytics" */ = {
|
|
339
|
+
isa = XCConfigurationList;
|
|
340
|
+
buildConfigurations = (
|
|
341
|
+
2744B98921F45429004F8E3F /* Debug */,
|
|
342
|
+
2744B98A21F45429004F8E3F /* Release */,
|
|
343
|
+
);
|
|
344
|
+
defaultConfigurationIsVisible = 0;
|
|
345
|
+
defaultConfigurationName = Release;
|
|
346
|
+
};
|
|
347
|
+
3323F1C5716BA966BBBB95A4 /* Build configuration list for PBXProject "RNFBCrashlytics" */ = {
|
|
348
|
+
isa = XCConfigurationList;
|
|
349
|
+
buildConfigurations = (
|
|
350
|
+
3323F7E33E1559A2B9826720 /* Debug */,
|
|
351
|
+
3323F77D701E1896E6D239CF /* Release */,
|
|
352
|
+
);
|
|
353
|
+
defaultConfigurationIsVisible = 0;
|
|
354
|
+
defaultConfigurationName = Release;
|
|
355
|
+
};
|
|
356
|
+
/* End XCConfigurationList section */
|
|
357
|
+
};
|
|
358
|
+
rootObject = 3323F95273A95DB34F55C6D7 /* Project object */;
|
|
359
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>FILEHEADER</key>
|
|
6
|
+
<string>
|
|
7
|
+
/**
|
|
8
|
+
* Copyright (c) 2016-present Invertase Limited & Contributors
|
|
9
|
+
*
|
|
10
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
11
|
+
* you may not use this library except in compliance with the License.
|
|
12
|
+
* You may obtain a copy of the License at
|
|
13
|
+
*
|
|
14
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
15
|
+
*
|
|
16
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
17
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
18
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
19
|
+
* See the License for the specific language governing permissions and
|
|
20
|
+
* limitations under the License.
|
|
21
|
+
*
|
|
22
|
+
*/</string>
|
|
23
|
+
</dict>
|
|
24
|
+
</plist>
|
package/ios_config.sh
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
#!/usr/bin/env bash
|
|
2
|
+
#
|
|
3
|
+
# Copyright (c) 2016-present Invertase Limited & Contributors
|
|
4
|
+
#
|
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
# you may not use this library except in compliance with the License.
|
|
7
|
+
# You may obtain a copy of the License at
|
|
8
|
+
#
|
|
9
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
#
|
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
14
|
+
# See the License for the specific language governing permissions and
|
|
15
|
+
# limitations under the License.
|
|
16
|
+
#
|
|
17
|
+
set -e
|
|
18
|
+
|
|
19
|
+
if [[ ${PODS_ROOT} ]]; then
|
|
20
|
+
echo "info: Exec FirebaseCrashlytics Run from Pods"
|
|
21
|
+
"${PODS_ROOT}/FirebaseCrashlytics/run"
|
|
22
|
+
else
|
|
23
|
+
echo "info: Exec FirebaseCrashlytics Run from framework"
|
|
24
|
+
"${PROJECT_DIR}/FirebaseCrashlytics.framework/run"
|
|
25
|
+
fi
|
package/lib/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// Generated by genversion.
|
|
2
|
-
export const version = '23.8.
|
|
2
|
+
export const version = '23.8.1';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-native-firebase/crashlytics",
|
|
3
|
-
"version": "23.8.
|
|
3
|
+
"version": "23.8.1",
|
|
4
4
|
"author": "Invertase <oss@invertase.io> (http://invertase.io)",
|
|
5
5
|
"description": "React Native Firebase - Firebase Crashlytics is a lightweight, realtime crash reporter that helps you track, prioritize, and fix stability issues that erode your app quality. React Native Firebase provides automatic crash reporting for both native and JavaScript errors, including unhandled promise rejections.",
|
|
6
6
|
"main": "./dist/commonjs/index.js",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"crashlytics"
|
|
32
32
|
],
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@react-native-firebase/app": "23.8.
|
|
34
|
+
"@react-native-firebase/app": "23.8.1",
|
|
35
35
|
"expo": ">=47.0.0"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"expo": "^54.0.27",
|
|
42
|
-
"react-native-builder-bob": "^0.40.
|
|
43
|
-
"typescript": "^5.
|
|
42
|
+
"react-native-builder-bob": "^0.40.17",
|
|
43
|
+
"typescript": "^5.9.3"
|
|
44
44
|
},
|
|
45
45
|
"peerDependenciesMeta": {
|
|
46
46
|
"expo": {
|
|
@@ -65,16 +65,6 @@
|
|
|
65
65
|
},
|
|
66
66
|
"./package.json": "./package.json"
|
|
67
67
|
},
|
|
68
|
-
"files": [
|
|
69
|
-
"lib",
|
|
70
|
-
"plugin/src",
|
|
71
|
-
"tsconfig.json",
|
|
72
|
-
"plugin/tsconfig.json",
|
|
73
|
-
"dist",
|
|
74
|
-
"!**/__tests__",
|
|
75
|
-
"!**/__fixtures__",
|
|
76
|
-
"!**/__mocks__"
|
|
77
|
-
],
|
|
78
68
|
"react-native-builder-bob": {
|
|
79
69
|
"source": "lib",
|
|
80
70
|
"output": "dist",
|
|
@@ -99,5 +89,5 @@
|
|
|
99
89
|
]
|
|
100
90
|
]
|
|
101
91
|
},
|
|
102
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "46b06d2b1100ec03c7807b4ff34b583b773a19d7"
|
|
103
93
|
}
|
|
@@ -0,0 +1,28 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
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;
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
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;
|
|
@@ -0,0 +1,7 @@
|
|
|
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; } });
|
|
@@ -0,0 +1,12 @@
|
|
|
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);
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
};
|