Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 28 additions & 0 deletions app.plugin.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
// set Info.plist values
import configPlugin from '@expo/config-plugins';

const {createRunOncePlugin, withEntitlementsPlist, withInfoPlist} = configPlugin

Check failure on line 4 in app.plugin.js

View workflow job for this annotation

GitHub Actions / lint

Replace `createRunOncePlugin,·withEntitlementsPlist,·withInfoPlist}·=·configPlugin` with `·createRunOncePlugin,·withEntitlementsPlist,·withInfoPlist·}·=⏎··configPlugin;`

const withAllowMixedLocalizations = function (config) {
return withInfoPlist(config, function (config) {

Check warning on line 7 in app.plugin.js

View workflow job for this annotation

GitHub Actions / lint

'config' is already declared in the upper scope on line 6 column 47
config.modResults.CFBundleAllowMixedLocalizations =
config.modResults.CFBundleAllowMixedLocalizations ?? true;

return config;
});
};

const withDefaultAppleSignIn = function (config) {
config = withAllowMixedLocalizations(config);
return withEntitlementsPlist(config, function (config) {

Check warning on line 17 in app.plugin.js

View workflow job for this annotation

GitHub Actions / lint

'config' is already declared in the upper scope on line 15 column 42
config.modResults['com.apple.developer.applesignin'] = ['Default'];
return config;
});
};

const withAppleSignin = (config) => {
config = withDefaultAppleSignIn(config);
return config;
};

export default createRunOncePlugin(withAppleSignin, 'apple-signin');
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"cpp",
"*.podspec",
"react-native.config.js",
"app.plugin.js",
"!ios/build",
"!android/build",
"!android/gradle",
Expand Down
Loading