Skip to content

Commit

Permalink
fix: use lowercase 'a'
Browse files Browse the repository at this point in the history
To resolve this error:

```
The name of the given podspec `CapacitorCommunityGenericOAuth2` doesn't match the expected one `CapacitorCommunityGenericOauth2`
```
  • Loading branch information
tafelnl committed May 2, 2024
1 parent e01bb0b commit c9492e1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion CapacitorCommunityGenericOAuth2.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ require 'json'
package = JSON.parse(File.read(File.join(__dir__, 'package.json')))

Pod::Spec.new do |s|
s.name = 'CapacitorCommunityGenericOAuth2'
s.name = 'CapacitorCommunityGenericOauth2'
s.version = package['version']
s.summary = package['description']
s.license = package['license']
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ These parameters are overrideable in every platform

| parameter | default | required | description | since |
|-------------------- |--------- |---------- |------------------------------------------------------------------------------------------------ |------- |
| customHandlerClass | | | Provide a class name implementing `CapacitorCommunityGenericOAuth2.OAuth2CustomHandler` | |
| customHandlerClass | | | Provide a class name implementing `CapacitorCommunityGenericOauth2.OAuth2CustomHandler` | |
| siwaUseScope | | | SiWA default scope is `name email` if you want to use the configured one set this param `true` | 2.1.0 |


Expand Down Expand Up @@ -416,7 +416,7 @@ This plugin should be as generic as possible, so I don't want to include provide

Therefore, I created a mechanism which let developers integrate custom SDK features in this plugin.
Simply configure the class name in the option property `ios.customHandlerClass`.
This class has to implement `CapacitorCommunityGenericOAuth2.OAuth2CustomHandler`.
This class has to implement `CapacitorCommunityGenericOauth2.OAuth2CustomHandler`.

See a full working example below!

Expand Down Expand Up @@ -1018,7 +1018,7 @@ install! 'cocoapods', :disable_input_output_paths => true
def capacitor_pods
pod 'Capacitor', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorCordova', :path => '../../node_modules/@capacitor/ios'
pod 'CapacitorCommunityGenericOAuth2', :path => '../../node_modules/@capacitor-community/generic-oauth2'
pod 'CapacitorCommunityGenericOauth2', :path => '../../node_modules/@capacitor-community/generic-oauth2'
# core plugins
pod 'CapacitorApp', :path => '../../node_modules/@capacitor/app'
pod 'CapacitorDevice', :path => '../../node_modules/@capacitor/device'
Expand Down Expand Up @@ -1067,7 +1067,7 @@ import Foundation
import FacebookCore
import FacebookLogin
import Capacitor
import CapacitorCommunityGenericOAuth2
import CapacitorCommunityGenericOauth2

@objc class YourIOsFacebookOAuth2Handler: NSObject, OAuth2CustomHandler {

Expand Down

0 comments on commit c9492e1

Please sign in to comment.