Skip to content

Commit

Permalink
feat(ios): #1 ios plugin setup
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Oberwasserlechner committed Oct 3, 2018
1 parent ddb1431 commit 3207cea
Show file tree
Hide file tree
Showing 168 changed files with 17,980 additions and 7 deletions.
13 changes: 13 additions & 0 deletions TeamConductorCapacitorOAuth2.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@

Pod::Spec.new do |s|
s.name = 'TeamconductorCapacitorOAuth2'
s.version = '1.4.0'
s.summary = 'Capacitor OAuth2 plugin'
s.license = 'MIT'
s.homepage = 'https://github.com/moberwasserlechner/capacitor-oauth2'
s.author = 'Michael Oberwasserlechner'
s.source = { :git => 'https://github.com/moberwasserlechner/capacitor-oauth2', :tag => s.version.to_s }
s.source_files = 'ios/Plugin/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
s.ios.deployment_target = '10.0'
s.dependency 'Capacitor'
end
564 changes: 564 additions & 0 deletions ios/Plugin/Plugin.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>Plugin.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>Plugin.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>5</integer>
</dict>
</dict>
</dict>
</plist>
10 changes: 10 additions & 0 deletions ios/Plugin/Plugin.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
Binary file not shown.
Binary file not shown.
24 changes: 24 additions & 0 deletions ios/Plugin/Plugin/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
<string>$(EXECUTABLE_NAME)</string>
<key>CFBundleIdentifier</key>
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>$(PRODUCT_NAME)</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>1.0.0-alpha.44</string>
<key>CFBundleVersion</key>
<string>$(CURRENT_PROJECT_VERSION)</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>
10 changes: 10 additions & 0 deletions ios/Plugin/Plugin/Plugin.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#import <UIKit/UIKit.h>

//! Project version number for Plugin.
FOUNDATION_EXPORT double PluginVersionNumber;

//! Project version string for Plugin.
FOUNDATION_EXPORT const unsigned char PluginVersionString[];

// In this header, you should import all the public headers of your framework using statements like #import <Plugin/PublicHeader.h>

8 changes: 8 additions & 0 deletions ios/Plugin/Plugin/Plugin.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#import <Foundation/Foundation.h>
#import <Capacitor/Capacitor.h>

// Define the plugin using the CAP_PLUGIN Macro, and
// each method the plugin supports using the CAP_PLUGIN_METHOD macro.
CAP_PLUGIN(OAuth2Plugin, "OAuth2ClientPlugin",
CAP_PLUGIN_METHOD(authenticate, CAPPluginReturnPromise);
)
16 changes: 16 additions & 0 deletions ios/Plugin/Plugin/Plugin.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import Foundation
import Capacitor

@objc(OAuth2ClientPlugin)
public class OAuth2ClientPlugin: CAPPlugin {

@objc func authenticate(_ call: CAPPluginCall) {
let customHandlerClassname = call.getString("ios.customHandlerClass")


// ...

call.resolve()
}

}
16 changes: 16 additions & 0 deletions ios/Plugin/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Uncomment the next line to define a global platform for your project
platform :ios, '10.0'

target 'Plugin' do
# Comment the next line if you're not using Swift and don't want to use dynamic frameworks
use_frameworks!

# Pods for IonicRunner
pod 'Capacitor'
end

target 'PluginTests' do
use_frameworks!

pod 'Capacitor'
end
26 changes: 26 additions & 0 deletions ios/Plugin/Podfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
PODS:
- Capacitor (0.0.113):
- CapacitorCordova (= 0.0.113)
- GCDWebServer (~> 3.0)
- CapacitorCordova (0.0.113)
- GCDWebServer (3.4.2):
- GCDWebServer/Core (= 3.4.2)
- GCDWebServer/Core (3.4.2)

DEPENDENCIES:
- Capacitor

SPEC REPOS:
https://github.com/cocoapods/specs.git:
- Capacitor
- CapacitorCordova
- GCDWebServer

SPEC CHECKSUMS:
Capacitor: b37060b0b2685257bedbc69e49a54a74ef30fb9a
CapacitorCordova: a923a32bc7ad5f1f3d69664ca86ff69580343ed3
GCDWebServer: 8d67ee9f634b4bb91eb4b8aee440318a5fc6debd

PODFILE CHECKSUM: 57e6d463d83fe9e2081ca17be52456b12c5e148c

COCOAPODS: 1.5.3
23 changes: 23 additions & 0 deletions ios/Plugin/Pods/Capacitor/LICENSE

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

44 changes: 44 additions & 0 deletions ios/Plugin/Pods/Capacitor/README.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 3207cea

Please sign in to comment.