-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
75 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"xlog": patch | ||
--- | ||
|
||
Only enable GA in production envrionment. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"xlog": patch | ||
--- | ||
|
||
Fixed the problem of inaccurate recording of reading time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"xlog": minor | ||
--- | ||
|
||
Fixed crush error when go back on iOS. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
const fs = require("fs"); | ||
const path = require("path"); | ||
|
||
const generateCode = require("@expo/config-plugins/build/utils/generateCode"); | ||
const configPlugins = require("expo/config-plugins"); | ||
|
||
const code = ` pod 'Firebase', :modular_headers => true | ||
pod 'nanopb', :modular_headers => true | ||
pod 'FirebaseSessions', :modular_headers => true | ||
pod 'FirebaseCore', :modular_headers => true | ||
pod 'FirebaseCoreExtension', :modular_headers => true | ||
pod 'FirebaseInstallations', :modular_headers => true | ||
pod 'GoogleDataTransport', :modular_headers => true | ||
pod 'GoogleUtilities', :modular_headers => true | ||
$RNFirebaseAsStaticFramework = true`; | ||
|
||
const withReactNativeFirebase = (config) => { | ||
return configPlugins.withDangerousMod(config, [ | ||
"ios", | ||
async (config) => { | ||
const filePath = path.join( | ||
config.modRequest.platformProjectRoot, | ||
"Podfile", | ||
); | ||
const contents = fs.readFileSync(filePath, "utf-8"); | ||
|
||
const addCode = generateCode.mergeContents({ | ||
tag: "withReactNativeFirebase", | ||
src: contents, | ||
newSrc: code, | ||
anchor: /\s*get_default_flags\(\)/i, | ||
offset: 2, | ||
comment: "#", | ||
}); | ||
|
||
if (!addCode.didMerge) { | ||
console.error( | ||
"ERROR: Cannot add withReactNativeFirebase to the project's ios/Podfile because it's malformed.", | ||
); | ||
return config; | ||
} | ||
|
||
fs.writeFileSync(filePath, addCode.contents); | ||
|
||
return config; | ||
}, | ||
]); | ||
}; | ||
|
||
module.exports = withReactNativeFirebase; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters