react-native-oauth-essentials 1.0.12 → 1.2.0
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/OauthEssentials.podspec +17 -2
- package/README.md +385 -361
- package/android/build.gradle +15 -10
- package/android/src/main/java/com/oauthessentials/CredentialError.kt +4 -1
- package/android/src/main/java/com/oauthessentials/CredentialFactory.kt +24 -2
- package/android/src/main/java/com/oauthessentials/CustomTabsActivity.kt +14 -1
- package/android/src/main/java/com/oauthessentials/OauthEssentialsModule.kt +445 -187
- package/app.plugin.js +1 -0
- package/ios/AppleIdRetriever.swift +25 -26
- package/ios/CredentialError.swift +3 -0
- package/ios/CredentialFactory.swift +38 -20
- package/ios/CredentialsType.swift +1 -0
- package/ios/GoogleIdRetriever.swift +132 -56
- package/ios/HybridRetriever.swift +12 -18
- package/ios/OauthEssentials.h +0 -3
- package/ios/OauthEssentials.mm +45 -2
- package/ios/OauthEssentialsModule.swift +266 -57
- package/ios/PasskeyRetriever.swift +31 -49
- package/ios/PasswordRetriever.swift +10 -30
- package/ios/RCTPromiseSettler.swift +125 -0
- package/jest/index.js +149 -0
- package/lib/module/NativeOauthEssentials.js +10 -1
- package/lib/module/NativeOauthEssentials.js.map +1 -1
- package/lib/module/errors.js +38 -0
- package/lib/module/errors.js.map +1 -0
- package/lib/module/index.js +432 -58
- package/lib/module/index.js.map +1 -1
- package/lib/module/oauth.js +97 -0
- package/lib/module/oauth.js.map +1 -0
- package/lib/module/platform.js +108 -0
- package/lib/module/platform.js.map +1 -0
- package/lib/module/types.js +46 -1
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/src/NativeOauthEssentials.d.ts +70 -16
- package/lib/typescript/src/NativeOauthEssentials.d.ts.map +1 -1
- package/lib/typescript/src/errors.d.ts +18 -0
- package/lib/typescript/src/errors.d.ts.map +1 -0
- package/lib/typescript/src/index.d.ts +235 -40
- package/lib/typescript/src/index.d.ts.map +1 -1
- package/lib/typescript/src/oauth.d.ts +32 -0
- package/lib/typescript/src/oauth.d.ts.map +1 -0
- package/lib/typescript/src/platform.d.ts +39 -0
- package/lib/typescript/src/platform.d.ts.map +1 -0
- package/lib/typescript/src/types.d.ts +190 -2
- package/lib/typescript/src/types.d.ts.map +1 -1
- package/package.json +9 -5
- package/plugin/withOauthEssentials.js +291 -0
- package/src/NativeOauthEssentials.ts +91 -17
- package/src/errors.ts +49 -0
- package/src/index.tsx +587 -80
- package/src/oauth.ts +140 -0
- package/src/platform.ts +121 -0
- package/src/types.ts +200 -1
package/OauthEssentials.podspec
CHANGED
|
@@ -10,13 +10,28 @@ Pod::Spec.new do |s|
|
|
|
10
10
|
s.license = package["license"]
|
|
11
11
|
s.authors = package["author"]
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
# iOS 16 is the minimum (passkeys; GoogleSignIn 10 itself needs 15).
|
|
14
|
+
s.platforms = { :ios => [Gem::Version.new(min_ios_version_supported), Gem::Version.new("16.0")].max.to_s }
|
|
14
15
|
s.source = { :git => "https://github.com/lucaswitch/react-native-oauth-essentials.git", :tag => "#{s.version}" }
|
|
15
16
|
|
|
16
17
|
s.source_files = "ios/**/*.{h,m,mm,swift,cpp}"
|
|
17
18
|
s.private_header_files = "ios/**/*.h"
|
|
18
19
|
|
|
19
|
-
s.dependency "GoogleSignIn"
|
|
20
|
+
s.dependency "GoogleSignIn", "~> 10.1"
|
|
21
|
+
|
|
22
|
+
# AppCheckCore (a GoogleSignIn dependency) is Swift: as static libraries, CocoaPods only integrates it if
|
|
23
|
+
# these pods define modules. Enable it here so apps do not have to edit their Podfile.
|
|
24
|
+
begin
|
|
25
|
+
# The ivar: `podfile` would parse the Podfile again while it is still being evaluated.
|
|
26
|
+
podfile = Pod::Config.instance.instance_variable_get(:@podfile)
|
|
27
|
+
(podfile ? podfile.target_definition_list : []).each do |target|
|
|
28
|
+
%w[GoogleUtilities RecaptchaInterop].each do |name|
|
|
29
|
+
target.set_use_modular_headers_for_pod(name, true)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
rescue StandardError, NoMethodError
|
|
33
|
+
# Internal CocoaPods API: if it changes, apps fall back to declaring the pods in their Podfile.
|
|
34
|
+
end
|
|
20
35
|
|
|
21
36
|
install_modules_dependencies(s)
|
|
22
37
|
end
|