react-native-msal2 1.0.10 → 1.0.13

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.
Files changed (72) hide show
  1. package/android/src/main/java/com/reactnativemsal/RNMSALModule.kt +11 -0
  2. package/package.json +1 -1
  3. package/react-native-msal2.podspec +1 -1
  4. package/src/publicClientApplication.ts +9 -0
  5. package/src/types.ts +9 -0
  6. package/app/.bundle/config +0 -2
  7. package/app/.eslintrc.js +0 -4
  8. package/app/.prettierrc.js +0 -7
  9. package/app/.watchman-cookie-Sandeeps-Mac-541-3381 +0 -0
  10. package/app/.watchmanconfig +0 -1
  11. package/app/Gemfile +0 -9
  12. package/app/README.md +0 -79
  13. package/app/android/app/build.gradle +0 -119
  14. package/app/android/app/debug.keystore +0 -0
  15. package/app/android/app/proguard-rules.pro +0 -10
  16. package/app/android/app/src/debug/AndroidManifest.xml +0 -9
  17. package/app/android/app/src/main/AndroidManifest.xml +0 -25
  18. package/app/android/app/src/main/java/com/msal2app/MainActivity.kt +0 -22
  19. package/app/android/app/src/main/java/com/msal2app/MainApplication.kt +0 -45
  20. package/app/android/app/src/main/res/drawable/rn_edit_text_material.xml +0 -36
  21. package/app/android/app/src/main/res/mipmap-hdpi/ic_launcher.png +0 -0
  22. package/app/android/app/src/main/res/mipmap-hdpi/ic_launcher_round.png +0 -0
  23. package/app/android/app/src/main/res/mipmap-mdpi/ic_launcher.png +0 -0
  24. package/app/android/app/src/main/res/mipmap-mdpi/ic_launcher_round.png +0 -0
  25. package/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher.png +0 -0
  26. package/app/android/app/src/main/res/mipmap-xhdpi/ic_launcher_round.png +0 -0
  27. package/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher.png +0 -0
  28. package/app/android/app/src/main/res/mipmap-xxhdpi/ic_launcher_round.png +0 -0
  29. package/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher.png +0 -0
  30. package/app/android/app/src/main/res/mipmap-xxxhdpi/ic_launcher_round.png +0 -0
  31. package/app/android/app/src/main/res/values/strings.xml +0 -3
  32. package/app/android/app/src/main/res/values/styles.xml +0 -9
  33. package/app/android/build.gradle +0 -21
  34. package/app/android/gradle/wrapper/gradle-wrapper.jar +0 -0
  35. package/app/android/gradle/wrapper/gradle-wrapper.properties +0 -7
  36. package/app/android/gradle.properties +0 -41
  37. package/app/android/gradlew +0 -249
  38. package/app/android/gradlew.bat +0 -92
  39. package/app/android/settings.gradle +0 -4
  40. package/app/app.json +0 -4
  41. package/app/babel.config.js +0 -3
  42. package/app/index.js +0 -9
  43. package/app/ios/.xcode.env +0 -11
  44. package/app/ios/Msal2App/AppDelegate.h +0 -6
  45. package/app/ios/Msal2App/AppDelegate.mm +0 -31
  46. package/app/ios/Msal2App/Images.xcassets/AppIcon.appiconset/Contents.json +0 -53
  47. package/app/ios/Msal2App/Images.xcassets/Contents.json +0 -6
  48. package/app/ios/Msal2App/Info.plist +0 -52
  49. package/app/ios/Msal2App/LaunchScreen.storyboard +0 -47
  50. package/app/ios/Msal2App/main.m +0 -10
  51. package/app/ios/Msal2App.xcodeproj/project.pbxproj +0 -698
  52. package/app/ios/Msal2App.xcodeproj/xcshareddata/xcschemes/Msal2App.xcscheme +0 -88
  53. package/app/ios/Msal2App.xcworkspace/contents.xcworkspacedata +0 -10
  54. package/app/ios/Msal2AppTests/Info.plist +0 -24
  55. package/app/ios/Msal2AppTests/Msal2AppTests.m +0 -66
  56. package/app/ios/Podfile +0 -56
  57. package/app/ios/Podfile.lock +0 -1384
  58. package/app/jest.config.js +0 -3
  59. package/app/metro.config.js +0 -11
  60. package/app/package-lock.json +0 -20038
  61. package/app/package.json +0 -37
  62. package/app/react-native-msal2-1.0.0.tgz +0 -0
  63. package/app/src/App.tsx +0 -150
  64. package/app/src/b2cClient.ts +0 -199
  65. package/app/src/msalConfig.ts +0 -20
  66. package/app/tsconfig.json +0 -3
  67. package/app/yarn.lock +0 -6771
  68. package/dist/index.d.ts +0 -3
  69. package/dist/index.js +0 -92
  70. package/dist/index.js.map +0 -7
  71. package/dist/src/publicClientApplication.d.ts +0 -14
  72. package/dist/src/types.d.ts +0 -297
@@ -1,88 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Scheme
3
- LastUpgradeVersion = "1210"
4
- version = "1.3">
5
- <BuildAction
6
- parallelizeBuildables = "YES"
7
- buildImplicitDependencies = "YES">
8
- <BuildActionEntries>
9
- <BuildActionEntry
10
- buildForTesting = "YES"
11
- buildForRunning = "YES"
12
- buildForProfiling = "YES"
13
- buildForArchiving = "YES"
14
- buildForAnalyzing = "YES">
15
- <BuildableReference
16
- BuildableIdentifier = "primary"
17
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
18
- BuildableName = "Msal2App.app"
19
- BlueprintName = "Msal2App"
20
- ReferencedContainer = "container:Msal2App.xcodeproj">
21
- </BuildableReference>
22
- </BuildActionEntry>
23
- </BuildActionEntries>
24
- </BuildAction>
25
- <TestAction
26
- buildConfiguration = "Debug"
27
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
28
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
29
- shouldUseLaunchSchemeArgsEnv = "YES">
30
- <Testables>
31
- <TestableReference
32
- skipped = "NO">
33
- <BuildableReference
34
- BuildableIdentifier = "primary"
35
- BlueprintIdentifier = "00E356ED1AD99517003FC87E"
36
- BuildableName = "Msal2AppTests.xctest"
37
- BlueprintName = "Msal2AppTests"
38
- ReferencedContainer = "container:Msal2App.xcodeproj">
39
- </BuildableReference>
40
- </TestableReference>
41
- </Testables>
42
- </TestAction>
43
- <LaunchAction
44
- buildConfiguration = "Debug"
45
- selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
46
- selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
47
- launchStyle = "0"
48
- useCustomWorkingDirectory = "NO"
49
- ignoresPersistentStateOnLaunch = "NO"
50
- debugDocumentVersioning = "YES"
51
- debugServiceExtension = "internal"
52
- allowLocationSimulation = "YES">
53
- <BuildableProductRunnable
54
- runnableDebuggingMode = "0">
55
- <BuildableReference
56
- BuildableIdentifier = "primary"
57
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
58
- BuildableName = "Msal2App.app"
59
- BlueprintName = "Msal2App"
60
- ReferencedContainer = "container:Msal2App.xcodeproj">
61
- </BuildableReference>
62
- </BuildableProductRunnable>
63
- </LaunchAction>
64
- <ProfileAction
65
- buildConfiguration = "Release"
66
- shouldUseLaunchSchemeArgsEnv = "YES"
67
- savedToolIdentifier = ""
68
- useCustomWorkingDirectory = "NO"
69
- debugDocumentVersioning = "YES">
70
- <BuildableProductRunnable
71
- runnableDebuggingMode = "0">
72
- <BuildableReference
73
- BuildableIdentifier = "primary"
74
- BlueprintIdentifier = "13B07F861A680F5B00A75B9A"
75
- BuildableName = "Msal2App.app"
76
- BlueprintName = "Msal2App"
77
- ReferencedContainer = "container:Msal2App.xcodeproj">
78
- </BuildableReference>
79
- </BuildableProductRunnable>
80
- </ProfileAction>
81
- <AnalyzeAction
82
- buildConfiguration = "Debug">
83
- </AnalyzeAction>
84
- <ArchiveAction
85
- buildConfiguration = "Release"
86
- revealArchiveInOrganizer = "YES">
87
- </ArchiveAction>
88
- </Scheme>
@@ -1,10 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <Workspace
3
- version = "1.0">
4
- <FileRef
5
- location = "group:Msal2App.xcodeproj">
6
- </FileRef>
7
- <FileRef
8
- location = "group:Pods/Pods.xcodeproj">
9
- </FileRef>
10
- </Workspace>
@@ -1,24 +0,0 @@
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>CFBundleDevelopmentRegion</key>
6
- <string>en</string>
7
- <key>CFBundleExecutable</key>
8
- <string>$(EXECUTABLE_NAME)</string>
9
- <key>CFBundleIdentifier</key>
10
- <string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
11
- <key>CFBundleInfoDictionaryVersion</key>
12
- <string>6.0</string>
13
- <key>CFBundleName</key>
14
- <string>$(PRODUCT_NAME)</string>
15
- <key>CFBundlePackageType</key>
16
- <string>BNDL</string>
17
- <key>CFBundleShortVersionString</key>
18
- <string>1.0</string>
19
- <key>CFBundleSignature</key>
20
- <string>????</string>
21
- <key>CFBundleVersion</key>
22
- <string>1</string>
23
- </dict>
24
- </plist>
@@ -1,66 +0,0 @@
1
- #import <UIKit/UIKit.h>
2
- #import <XCTest/XCTest.h>
3
-
4
- #import <React/RCTLog.h>
5
- #import <React/RCTRootView.h>
6
-
7
- #define TIMEOUT_SECONDS 600
8
- #define TEXT_TO_LOOK_FOR @"Welcome to React"
9
-
10
- @interface Msal2AppTests : XCTestCase
11
-
12
- @end
13
-
14
- @implementation Msal2AppTests
15
-
16
- - (BOOL)findSubviewInView:(UIView *)view matching:(BOOL (^)(UIView *view))test
17
- {
18
- if (test(view)) {
19
- return YES;
20
- }
21
- for (UIView *subview in [view subviews]) {
22
- if ([self findSubviewInView:subview matching:test]) {
23
- return YES;
24
- }
25
- }
26
- return NO;
27
- }
28
-
29
- - (void)testRendersWelcomeScreen
30
- {
31
- UIViewController *vc = [[[RCTSharedApplication() delegate] window] rootViewController];
32
- NSDate *date = [NSDate dateWithTimeIntervalSinceNow:TIMEOUT_SECONDS];
33
- BOOL foundElement = NO;
34
-
35
- __block NSString *redboxError = nil;
36
- #ifdef DEBUG
37
- RCTSetLogFunction(
38
- ^(RCTLogLevel level, RCTLogSource source, NSString *fileName, NSNumber *lineNumber, NSString *message) {
39
- if (level >= RCTLogLevelError) {
40
- redboxError = message;
41
- }
42
- });
43
- #endif
44
-
45
- while ([date timeIntervalSinceNow] > 0 && !foundElement && !redboxError) {
46
- [[NSRunLoop mainRunLoop] runMode:NSDefaultRunLoopMode beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
47
- [[NSRunLoop mainRunLoop] runMode:NSRunLoopCommonModes beforeDate:[NSDate dateWithTimeIntervalSinceNow:0.1]];
48
-
49
- foundElement = [self findSubviewInView:vc.view
50
- matching:^BOOL(UIView *view) {
51
- if ([view.accessibilityLabel isEqualToString:TEXT_TO_LOOK_FOR]) {
52
- return YES;
53
- }
54
- return NO;
55
- }];
56
- }
57
-
58
- #ifdef DEBUG
59
- RCTSetLogFunction(RCTDefaultLogFunction);
60
- #endif
61
-
62
- XCTAssertNil(redboxError, @"RedBox error: %@", redboxError);
63
- XCTAssertTrue(foundElement, @"Couldn't find element with text '%@' in %d seconds", TEXT_TO_LOOK_FOR, TIMEOUT_SECONDS);
64
- }
65
-
66
- @end
package/app/ios/Podfile DELETED
@@ -1,56 +0,0 @@
1
- # Resolve react_native_pods.rb with node to allow for hoisting
2
- require Pod::Executable.execute_command('node', ['-p',
3
- 'require.resolve(
4
- "react-native/scripts/react_native_pods.rb",
5
- {paths: [process.argv[1]]},
6
- )', __dir__]).strip
7
-
8
- platform :ios, min_ios_version_supported
9
- prepare_react_native_project!
10
-
11
- # If you are using a `react-native-flipper` your iOS build will fail when `NO_FLIPPER=1` is set.
12
- # because `react-native-flipper` depends on (FlipperKit,...) that will be excluded
13
- #
14
- # To fix this you can also exclude `react-native-flipper` using a `react-native.config.js`
15
- # ```js
16
- # module.exports = {
17
- # dependencies: {
18
- # ...(process.env.NO_FLIPPER ? { 'react-native-flipper': { platforms: { ios: null } } } : {}),
19
- # ```
20
- flipper_config = ENV['NO_FLIPPER'] == "1" ? FlipperConfiguration.disabled : FlipperConfiguration.enabled
21
-
22
- linkage = ENV['USE_FRAMEWORKS']
23
- if linkage != nil
24
- Pod::UI.puts "Configuring Pod with #{linkage}ally linked Frameworks".green
25
- use_frameworks! :linkage => linkage.to_sym
26
- end
27
-
28
- target 'Msal2App' do
29
- config = use_native_modules!
30
-
31
- use_react_native!(
32
- :path => config[:reactNativePath],
33
- # Enables Flipper.
34
- #
35
- # Note that if you have use_frameworks! enabled, Flipper will not work and
36
- # you should disable the next line.
37
- :flipper_configuration => flipper_config,
38
- # An absolute path to your application root.
39
- :app_path => "#{Pod::Config.instance.installation_root}/.."
40
- )
41
- pod 'react-native-msal2', :path => '../..'
42
-
43
- target 'Msal2AppTests' do
44
- inherit! :complete
45
- # Pods for testing
46
- end
47
-
48
- post_install do |installer|
49
- # https://github.com/facebook/react-native/blob/main/packages/react-native/scripts/react_native_pods.rb#L197-L202
50
- react_native_post_install(
51
- installer,
52
- config[:reactNativePath],
53
- :mac_catalyst_enabled => false
54
- )
55
- end
56
- end