Skip to content
This repository was archived by the owner on May 20, 2022. It is now read-only.

Commit 1f3122c

Browse files
committed
fix: update deps, regenerate expo plugin files
1 parent 73fbb90 commit 1f3122c

File tree

7 files changed

+2539
-2877
lines changed

7 files changed

+2539
-2877
lines changed

example/ios/Podfile.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ EXTERNAL SOURCES:
477477
SPEC CHECKSUMS:
478478
boost-for-react-native: 39c7adb57c4e60d6c5479dd8623128eb5b3f0f2c
479479
CocoaAsyncSocket: 065fd1e645c7abab64f7a6a2007a48038fdc6a99
480-
DoubleConversion: cf9b38bf0b2d048436d9a82ad2abe1404f11e7de
480+
DoubleConversion: cde416483dac037923206447da6e1454df403714
481481
FBLazyVector: e686045572151edef46010a6f819ade377dfeb4b
482482
FBReactNativeSpec: e25cb775f8cbabc7d19f436b53e66a1423c9b832
483483
Flipper: d3da1aa199aad94455ae725e9f3aa43f3ec17021
@@ -487,7 +487,7 @@ SPEC CHECKSUMS:
487487
Flipper-PeerTalk: 116d8f857dc6ef55c7a5a75ea3ceaafe878aadc9
488488
Flipper-RSocket: 127954abe8b162fcaf68d2134d34dc2bd7076154
489489
FlipperKit: 8a20b5c5fcf9436cac58551dc049867247f64b00
490-
glog: 73c2498ac6884b13ede40eda8228cb1eee9d9d62
490+
glog: 40a13f7840415b9a77023fbcae0f1e6f43192af3
491491
hermes-engine: 7d97ba46a1e29bacf3e3c61ecb2804a5ddd02d4f
492492
libevent: 4049cae6c81cdb3654a443be001fb9bdceff7913
493493
MSAL: 3c4dc8c7337457a1ffc2bc6f72fb4c003687b50c
@@ -521,4 +521,4 @@ SPEC CHECKSUMS:
521521

522522
PODFILE CHECKSUM: 74f89a11adc1882568a3ec8ba948a2fe31dc4464
523523

524-
COCOAPODS: 1.10.2
524+
COCOAPODS: 1.11.2

example/ios/example.xcodeproj/project.pbxproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@
316316
SWIFT_OBJC_BRIDGING_HEADER = "example-Bridging-Header.h";
317317
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
318318
SWIFT_VERSION = 5.0;
319-
TARGETED_DEVICE_FAMILY = "1";
319+
TARGETED_DEVICE_FAMILY = 1;
320320
VERSIONING_SYSTEM = "apple-generic";
321321
};
322322
name = Debug;
@@ -345,7 +345,7 @@
345345
PRODUCT_NAME = example;
346346
SWIFT_OBJC_BRIDGING_HEADER = "example-Bridging-Header.h";
347347
SWIFT_VERSION = 5.0;
348-
TARGETED_DEVICE_FAMILY = "1";
348+
TARGETED_DEVICE_FAMILY = 1;
349349
VERSIONING_SYSTEM = "apple-generic";
350350
};
351351
name = Release;

package.json

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,18 +41,18 @@
4141
"homepage": "https://github.com/stashenergy/react-native-msal#readme",
4242
"dependencies": {
4343
"@azure/msal-browser": "^2.1.0",
44-
"@expo/config-plugins": "^3.0.0"
44+
"@expo/config-plugins": "^4.0.6"
4545
},
4646
"devDependencies": {
47-
"@commitlint/cli": "^12.1.1",
48-
"@commitlint/config-conventional": "^12.1.1",
47+
"@commitlint/cli": "^13.2.1",
48+
"@commitlint/config-conventional": "^13.2.0",
4949
"@react-native-community/eslint-config": "^3.0.0",
50-
"@types/jest": "^26.0.23",
50+
"@types/jest": "^27.0.2",
5151
"@types/react": "^17.0.5",
52-
"@types/react-native": "^0.64.5",
52+
"@types/react-native": "^0.66.1",
5353
"eslint": "^7.26.0",
5454
"eslint-config-prettier": "^8.3.0",
55-
"eslint-plugin-prettier": "^3.4.0",
55+
"eslint-plugin-prettier": "^4.0.0",
5656
"expo-module-scripts": "^2.0.0",
5757
"gh-pages": "^3.1.0",
5858
"husky": "^7.0.0",
@@ -61,8 +61,7 @@
6161
"prettier": "^2.3.0",
6262
"react": "^17.0.2",
6363
"react-native": "^0.64.1",
64-
"react-native-builder-bob": "^0.18.1",
65-
"semantic-release": "^17.4.2",
64+
"semantic-release": "^18.0.0",
6665
"typescript": "^4.2.4"
6766
},
6867
"peerDependencies": {

plugin/build/withAndroidReactNativeMSAL.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ exports.withAndroidReactNativeMSAL = void 0;
44
const config_plugins_1 = require("@expo/config-plugins");
55
const { getMainApplicationOrThrow } = config_plugins_1.AndroidConfig.Manifest;
66
const withAndroidActivity = (config, signatureHash) => {
7-
return config_plugins_1.withAndroidManifest(config, (mod) => {
7+
return (0, config_plugins_1.withAndroidManifest)(config, (mod) => {
88
mod.modResults = setBrowserTabActivity(config, mod.modResults, signatureHash);
99
return mod;
1010
});
@@ -42,7 +42,7 @@ function setBrowserTabActivity(config, androidManifest, signatureHash) {
4242
// the existing block to find the correct place to insert our dependency.
4343
const gradleMaven = 'allprojects { repositories { maven { url "https://pkgs.dev.azure.com/MicrosoftDeviceSDK/DuoSDK-Public/_packaging/Duo-SDK-Feed/maven/v1" } } }';
4444
const withAndroidMSALGradle = (config) => {
45-
return config_plugins_1.withProjectBuildGradle(config, (mod) => {
45+
return (0, config_plugins_1.withProjectBuildGradle)(config, (mod) => {
4646
if (mod.modResults.language === 'groovy') {
4747
mod.modResults.contents = setGradleMaven(mod.modResults.contents);
4848
}
@@ -61,6 +61,6 @@ function setGradleMaven(buildGradle) {
6161
return buildGradle + `\n${gradleMaven}\n`;
6262
}
6363
const withAndroidReactNativeMSAL = (config, androidPackageSignatureHash) => {
64-
return config_plugins_1.withPlugins(config, [[withAndroidActivity, androidPackageSignatureHash], withAndroidMSALGradle]);
64+
return (0, config_plugins_1.withPlugins)(config, [[withAndroidActivity, androidPackageSignatureHash], withAndroidMSALGradle]);
6565
};
6666
exports.withAndroidReactNativeMSAL = withAndroidReactNativeMSAL;

plugin/build/withIosReactNativeMSAL.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const withIosUrlScheme = (config) => {
99
}
1010
const QUERY_SCHEMES = ['msauthv2', 'msauthv3'];
1111
const URL_SCHEME = { CFBundleURLSchemes: [`msauth.${config.ios.bundleIdentifier}`] };
12-
return config_plugins_1.withInfoPlist(config, (mod) => {
12+
return (0, config_plugins_1.withInfoPlist)(config, (mod) => {
1313
var _a;
1414
mod.modResults.CFBundleURLTypes = [URL_SCHEME, ...(mod.modResults.CFBundleURLTypes || [])];
1515
mod.modResults.LSApplicationQueriesSchemes = [
@@ -20,14 +20,14 @@ const withIosUrlScheme = (config) => {
2020
};
2121
const withIosKeychainGroup = (config) => {
2222
const KEYCHAIN_GROUP = '$(AppIdentifierPrefix)com.microsoft.adalcache';
23-
return config_plugins_1.withEntitlementsPlist(config, (mod) => {
23+
return (0, config_plugins_1.withEntitlementsPlist)(config, (mod) => {
2424
const existingAccessGroups = (mod.modResults['keychain-access-groups'] || []);
2525
mod.modResults['keychain-access-groups'] = [...new Set(existingAccessGroups.concat(KEYCHAIN_GROUP))];
2626
return mod;
2727
});
2828
};
2929
const withAppDelegateConfig = (config) => {
30-
return config_plugins_1.withAppDelegate(config, (mod) => {
30+
return (0, config_plugins_1.withAppDelegate)(config, (mod) => {
3131
if (mod.modResults.language === 'objc') {
3232
mod.modResults.contents = setAppDelegate(mod.modResults.contents);
3333
}
@@ -55,6 +55,6 @@ function setAppDelegate(appDelegate) {
5555
return appDelegate;
5656
}
5757
const withIosReactNativeMSAL = (config) => {
58-
return config_plugins_1.withPlugins(config, [withIosUrlScheme, withIosKeychainGroup, withAppDelegateConfig]);
58+
return (0, config_plugins_1.withPlugins)(config, [withIosUrlScheme, withIosKeychainGroup, withAppDelegateConfig]);
5959
};
6060
exports.withIosReactNativeMSAL = withIosReactNativeMSAL;

plugin/build/withReactNativeMSAL.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ const config_plugins_1 = require("@expo/config-plugins");
44
const withAndroidReactNativeMSAL_1 = require("./withAndroidReactNativeMSAL");
55
const withIosReactNativeMSAL_1 = require("./withIosReactNativeMSAL");
66
const withReactNativeMSAL = (config, { androidPackageSignatureHash }) => {
7-
return config_plugins_1.withPlugins(config, [[withAndroidReactNativeMSAL_1.withAndroidReactNativeMSAL, androidPackageSignatureHash], withIosReactNativeMSAL_1.withIosReactNativeMSAL]);
7+
return (0, config_plugins_1.withPlugins)(config, [[withAndroidReactNativeMSAL_1.withAndroidReactNativeMSAL, androidPackageSignatureHash], withIosReactNativeMSAL_1.withIosReactNativeMSAL]);
88
};
99
exports.default = withReactNativeMSAL;

0 commit comments

Comments
 (0)