Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,15 @@ name: Test
on: pull_request
jobs:
test:
runs-on: macOS-latest
runs-on: macos-latest
strategy:
matrix:
destination: ['platform=iOS Simulator,OS=13.7,name=iPhone 11']
destination: ['platform=iOS Simulator,OS=14.0,name=iPhone 11 Pro Max']
steps:
- name: Checkout
uses: actions/checkout@master
- name: Force XCode 11.7
run: sudo xcode-select -switch /Applications/Xcode_11.7.app
- name: Force XCode 12
run: sudo xcode-select -switch /Applications/Xcode_12.app
- name: Install Dependences
run: |
cd Example
Expand Down
21 changes: 7 additions & 14 deletions Cotter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -12,40 +12,33 @@ Pod::Spec.new do |s|
s.summary = 'Cotter is the client SDK for Cotter authentication services'
s.swift_versions = '5.0'

# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!

s.description = <<-DESC
CotterIOS simplifies client's integration with Cotter. It is an SDK that provides necessary pages and API services that connects your application to Cotter authentication services.
DESC

s.homepage = 'https://github.com/cotterapp/ios-sdk.git'
# s.screenshots = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
s.license = { :type => 'BSD', :file => 'LICENSE' }
s.author = { 'Cotter Team' => 'team@cotter.app' }
s.source = { :git => 'https://github.com/cotterapp/ios-sdk.git', :tag => s.version.to_s }
# s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'

s.platform = :ios
s.ios.deployment_target = '10.0'

s.source_files = 'Source/**/*.swift'
s.resource_bundles = {
'Cotter' => ['Source/**/*.{png,storyboard,lproj,xib,xcassets}']
'Assets' => ['Source/**/*.{png,storyboard,lproj,xib,xcassets}']
}

# s.public_header_files = 'Pod/Classes/**/*.h'
s.static_framework = true
s.frameworks = 'UIKit'
s.dependency 'TTGSnackbar', '1.10.3'
s.dependency 'OneSignal', '2.15.3'
s.dependency 'OneSignal', '~> 3.0'
s.pod_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }
s.user_target_xcconfig = { 'EXCLUDED_ARCHS[sdk=iphonesimulator*]' => 'arm64' }

# s.test_spec 'Tests' do |test_spec|
# test_spec.source_files = 'Example/Tests/**/*.{swift}'
# end
s.test_spec 'Tests' do |test_spec|
test_spec.requires_app_host = true
test_spec.source_files = 'Example/Tests/Cases/{Services,Models}/*.{swift}'
test_spec.dependency 'Nimble', '~> 8.0'
end
end
43 changes: 0 additions & 43 deletions Cotter/0.0.1/CotterIOS.podspec

This file was deleted.

43 changes: 0 additions & 43 deletions Cotter/0.0.2/CotterIOS.podspec

This file was deleted.

Empty file removed Cotter/Assets/.gitkeep
Empty file.
Empty file removed Cotter/Classes/.gitkeep
Empty file.
Empty file removed Cotter/Classes/ReplaceMe.swift
Empty file.
24 changes: 2 additions & 22 deletions Example/CotterIOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,11 @@
607FACEC1AFB9204008FA782 /* Tests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 607FACEB1AFB9204008FA782 /* Tests.swift */; };
6C0AD45B24378E5200D59998 /* Environment.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C0AD45A24378E5200D59998 /* Environment.swift */; };
6C638BFE2468E8890089CE30 /* APIServiceTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C638BFD2468E8890089CE30 /* APIServiceTests.swift */; };
6C7AAAB8245109E6005A10F8 /* PINFinalViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAAB7245109E6005A10F8 /* PINFinalViewControllerTests.swift */; };
6C7AAABA24510F76005A10F8 /* PINViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAAB924510F76005A10F8 /* PINViewControllerTests.swift */; };
6C7AAABC24510F93005A10F8 /* PINConfirmViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAABB24510F93005A10F8 /* PINConfirmViewControllerTests.swift */; };
6C7AAABE24511525005A10F8 /* UserInfoTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAABD24511525005A10F8 /* UserInfoTests.swift */; };
6C7AAAC024511543005A10F8 /* CotterImagesTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAABF24511543005A10F8 /* CotterImagesTests.swift */; };
6C7AAAC224511574005A10F8 /* CotterStringsTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAAC124511574005A10F8 /* CotterStringsTests.swift */; };
6C7AAAC424511592005A10F8 /* ImageObjectTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAAC324511592005A10F8 /* ImageObjectTests.swift */; };
6C7AAAC6245115B7005A10F8 /* LanguageObjectTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAAC5245115B7005A10F8 /* LanguageObjectTests.swift */; };
6C7AAAC824523633005A10F8 /* TransactionPINViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAAC724523633005A10F8 /* TransactionPINViewControllerTests.swift */; };
6C7AAACA24524829005A10F8 /* ResetPINViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAAC924524829005A10F8 /* ResetPINViewControllerTests.swift */; };
6C7AAACC24525330005A10F8 /* ResetNewPINViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAACB24525330005A10F8 /* ResetNewPINViewControllerTests.swift */; };
6C7AAACE24525928005A10F8 /* ResetConfirmPINViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAACD24525928005A10F8 /* ResetConfirmPINViewControllerTests.swift */; };
6C7AAAD224528D48005A10F8 /* UpdatePINViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAAD124528D48005A10F8 /* UpdatePINViewControllerTests.swift */; };
6C7AAAD424533EAC005A10F8 /* UpdateCreateNewPINViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAAD324533EAC005A10F8 /* UpdateCreateNewPINViewControllerTests.swift */; };
6C7AAAD624534347005A10F8 /* UpdateConfirmNewPINViewControllerTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AAAD524534347005A10F8 /* UpdateConfirmNewPINViewControllerTests.swift */; };
6C7AABA32468A1BD005A10F8 /* APIClientTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6C7AABA22468A1BD005A10F8 /* APIClientTests.swift */; };
85292E4223EC21CB008363AB /* CryptoViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 85292E4123EC21CB008363AB /* CryptoViewController.swift */; };
8594181023F55A3F00B4DA6D /* LoginViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8594180F23F55A3F00B4DA6D /* LoginViewController.swift */; };
Expand Down Expand Up @@ -520,11 +510,11 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-CotterIOS_Example/Pods-CotterIOS_Example-resources.sh",
"${PODS_CONFIGURATION_BUILD_DIR}/Cotter/Cotter.bundle",
"${PODS_CONFIGURATION_BUILD_DIR}/Cotter/Assets.bundle",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Cotter.bundle",
"${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}/Assets.bundle",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
Expand Down Expand Up @@ -586,24 +576,14 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
6C7AAAD424533EAC005A10F8 /* UpdateCreateNewPINViewControllerTests.swift in Sources */,
6C7AAAC024511543005A10F8 /* CotterImagesTests.swift in Sources */,
6C638BFE2468E8890089CE30 /* APIServiceTests.swift in Sources */,
6C7AAACC24525330005A10F8 /* ResetNewPINViewControllerTests.swift in Sources */,
6C7AAAC424511592005A10F8 /* ImageObjectTests.swift in Sources */,
6C7AAAB8245109E6005A10F8 /* PINFinalViewControllerTests.swift in Sources */,
6C7AAACA24524829005A10F8 /* ResetPINViewControllerTests.swift in Sources */,
6C7AAAC224511574005A10F8 /* CotterStringsTests.swift in Sources */,
6C7AAABA24510F76005A10F8 /* PINViewControllerTests.swift in Sources */,
6C7AAABE24511525005A10F8 /* UserInfoTests.swift in Sources */,
6C7AAABC24510F93005A10F8 /* PINConfirmViewControllerTests.swift in Sources */,
607FACEC1AFB9204008FA782 /* Tests.swift in Sources */,
6C7AAAD224528D48005A10F8 /* UpdatePINViewControllerTests.swift in Sources */,
6C7AAAD624534347005A10F8 /* UpdateConfirmNewPINViewControllerTests.swift in Sources */,
6C7AAAC6245115B7005A10F8 /* LanguageObjectTests.swift in Sources */,
6C7AABA32468A1BD005A10F8 /* APIClientTests.swift in Sources */,
6C7AAAC824523633005A10F8 /* TransactionPINViewControllerTests.swift in Sources */,
6C7AAACE24525928005A10F8 /* ResetConfirmPINViewControllerTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@
<EnvironmentVariable
key = "COTTER_API_SECRET_KEY"
value = ""
isEnabled = "YES">
isEnabled = "NO">
</EnvironmentVariable>
<EnvironmentVariable
key = "COTTER_API_KEY_ID"
value = ""
value = "b6e64a6d-ecc9-4582-b8bb-cdd1715b063b"
isEnabled = "YES">
</EnvironmentVariable>
</EnvironmentVariables>
Expand Down
6 changes: 3 additions & 3 deletions Example/CotterIOS/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,23 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD

// custom coloring
let color = ColorSchemeObject(primary: CotterColor.purple, accent: CotterColor.orange)

Cotter.configureWithLaunchOptions(
launchOptions: launchOptions,
apiSecretKey: apiSecretKey,
apiKeyID: apiKeyID,
configuration: [
"colors": color,
"images": img,

// Other configuration
// "base_url": "http://192.168.86.33:1234/api/v0",
// "passwordless_base_url": "https://s.js.cotter.app/app",
// "language": lang
// "fonts": customFont,
]
)

// Granting user permission using notification center
UNUserNotificationCenter.current() // 1
.requestAuthorization(options: [.alert, .sound, .badge]) { // 2
Expand Down
3 changes: 1 addition & 2 deletions Example/Podfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# Comment use_frameworks! to accomodate for iOS 13.3.1 devices
use_frameworks!
# use_modular_headers!

target 'CotterIOS_Example' do
pod 'TweeTextField'
pod 'TTGSnackbar', '1.10.3'
pod 'OneSignal', '2.15.3'
pod 'OneSignal', '~> 3.0'
pod 'Cotter', :path => '../'

target 'CotterIOS_Tests' do
Expand Down
14 changes: 7 additions & 7 deletions Example/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
PODS:
- Cotter (1.5.12):
- OneSignal (= 2.15.3)
- Cotter (1.5.20):
- OneSignal (~> 3.0)
- TTGSnackbar (= 1.10.3)
- Nimble (8.1.2)
- OneSignal (2.15.3)
- OneSignal (3.0.0)
- Sourcery (1.0.0)
- TTGSnackbar (1.10.3)
- TweeTextField (1.6.3)

DEPENDENCIES:
- Cotter (from `../`)
- Nimble (~> 8.0)
- OneSignal (= 2.15.3)
- OneSignal (~> 3.0)
- Sourcery
- TTGSnackbar (= 1.10.3)
- TweeTextField
Expand All @@ -29,13 +29,13 @@ EXTERNAL SOURCES:
:path: "../"

SPEC CHECKSUMS:
Cotter: ee8c6085e39012471e88a5b46434dea1da5206f6
Cotter: 1a7ef5bb803abc2d4072d377eea8caec3785d1fb
Nimble: 3864815b4703c7ebffba875973c70e854489fbae
OneSignal: d85b81aa313ed8040522b884f556267883d652c2
OneSignal: e291067823e1f35d57bcafafc7327d2b514ae69d
Sourcery: 928a146ea9b777fa64b0c6ce915c4128b4488cff
TTGSnackbar: 97c033600de8a9c8f4a093f25a08543a03946bcc
TweeTextField: 47bf8e7f0433364a7f7e119c45e7f278ea50eb62

PODFILE CHECKSUM: f8cf607b1a98df9ed743bc77a368381b23ef2226
PODFILE CHECKSUM: 2023634113f547a5a75213e1a16f47c73a9b3d7f

COCOAPODS: 1.9.3
23 changes: 18 additions & 5 deletions Example/Pods/Local Podspecs/Cotter.podspec.json

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

Loading