Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #88

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Binary file removed .DS_Store
Binary file not shown.
33 changes: 16 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,22 @@ name: Test
on: pull_request
jobs:
test:
runs-on: macOS-latest
runs-on: macos-10.15
strategy:
matrix:
destination: ['platform=iOS Simulator,OS=13.7,name=iPhone 11']
destination: ["platform=iOS Simulator,OS=13.7,name=iPhone 11"]
steps:
- name: Checkout
uses: actions/checkout@master
- name: Force XCode 11.7
run: sudo xcode-select -switch /Applications/Xcode_11.7.app
- name: Install Dependences
run: |
cd Example
pod repo update
pod install
shell: bash
- name: Build and Test
run: |
set -o pipefail && xcodebuild clean test -enableCodeCoverage YES -workspace Example/CotterIOS.xcworkspace -scheme Cotter -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty --color
env:
destination: ${{ matrix.destination }}
- name: Checkout
uses: actions/checkout@master
- name: Force XCode 11.7
run: sudo xcode-select -switch /Applications/Xcode_11.7.app
- name: Install Dependences
run: |
pod repo update
pod install
shell: bash
- name: Build and Test
run: |
set -o pipefail && xcodebuild clean test -enableCodeCoverage YES -workspace Cotter.xcworkspace -scheme Cotter -destination "${destination}" CODE_SIGN_IDENTITY="" CODE_SIGNING_REQUIRED=NO ONLY_ACTIVE_ARCH=NO | xcpretty --color
env:
destination: ${{ matrix.destination }}
10 changes: 10 additions & 0 deletions Assets/Assets.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
//
// Assets.swift
// Assets
//
// Created by Albert Purnama on 12/17/20.
//

class Assets {

}
25 changes: 9 additions & 16 deletions Cotter.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,44 +8,37 @@

Pod::Spec.new do |s|
s.name = 'Cotter'
s.version = '1.5.20'
s.version = '1.5.21-alpha.1'
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' => '[email protected]' }
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.source_files = 'Cotter/**/*.swift'
s.resource_bundles = {
'Cotter' => ['Source/**/*.{png,storyboard,lproj,xib,xcassets}']
'Assets' => ['Cotter/**/*.{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 = 'Tests/Cases/{Services,Models}/*.{swift}'
test_spec.dependency 'Nimble', '~> 8.0'
end
end
1,509 changes: 1,509 additions & 0 deletions Cotter.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.

91 changes: 91 additions & 0 deletions Cotter.xcodeproj/xcshareddata/xcschemes/Cotter.xcscheme
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1230"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"
buildImplicitDependencies = "YES">
<BuildActionEntries>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "YES"
buildForProfiling = "YES"
buildForArchiving = "YES"
buildForAnalyzing = "YES">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "857B6357258B5292001C5AC2"
BuildableName = "Cotter.framework"
BlueprintName = "Cotter"
ReferencedContainer = "container:Cotter.xcodeproj">
</BuildableReference>
</BuildActionEntry>
<BuildActionEntry
buildForTesting = "YES"
buildForRunning = "NO"
buildForProfiling = "NO"
buildForArchiving = "NO"
buildForAnalyzing = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "859D2F0A258C6641001C24BF"
BuildableName = "CotterTests.xctest"
BlueprintName = "CotterTests"
ReferencedContainer = "container:Cotter.xcodeproj">
</BuildableReference>
</BuildActionEntry>
</BuildActionEntries>
</BuildAction>
<TestAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
shouldUseLaunchSchemeArgsEnv = "YES">
<Testables>
<TestableReference
skipped = "NO">
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "859D2F0A258C6641001C24BF"
BuildableName = "CotterTests.xctest"
BlueprintName = "CotterTests"
ReferencedContainer = "container:Cotter.xcodeproj">
</BuildableReference>
</TestableReference>
</Testables>
</TestAction>
<LaunchAction
buildConfiguration = "Debug"
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
launchStyle = "0"
useCustomWorkingDirectory = "NO"
ignoresPersistentStateOnLaunch = "NO"
debugDocumentVersioning = "YES"
debugServiceExtension = "internal"
allowLocationSimulation = "YES">
</LaunchAction>
<ProfileAction
buildConfiguration = "Release"
shouldUseLaunchSchemeArgsEnv = "YES"
savedToolIdentifier = ""
useCustomWorkingDirectory = "NO"
debugDocumentVersioning = "YES">
<MacroExpansion>
<BuildableReference
BuildableIdentifier = "primary"
BlueprintIdentifier = "857B6357258B5292001C5AC2"
BuildableName = "Cotter.framework"
BlueprintName = "Cotter"
ReferencedContainer = "container:Cotter.xcodeproj">
</BuildableReference>
</MacroExpansion>
</ProfileAction>
<AnalyzeAction
buildConfiguration = "Debug">
</AnalyzeAction>
<ArchiveAction
buildConfiguration = "Release"
revealArchiveInOrganizer = "YES">
</ArchiveAction>
</Scheme>

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

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.

File renamed without changes.
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.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Calvin Tjoeng on 2/21/20.
//

import Foundation
import UIKit

public class ColorSchemeObject: NSObject {
private let DEFAULT_PRIMARY = "#21CE99"
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by Albert Purnama on 7/1/20.
//

import Foundation
import UIKit

public let DEFAULT_COTTER_HEADING_FONT: UIFont = UIFont.boldSystemFont(ofSize: 20.0)
public let DEFAULT_COTTER_TITLE_FONT: UIFont = UIFont.boldSystemFont(ofSize: 18.0)
Expand Down
File renamed without changes.
18 changes: 18 additions & 0 deletions Cotter/Cotter.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
//
// Cotter.h
// Cotter
//
// Created by Albert Purnama on 12/17/20.
//

#import <Foundation/Foundation.h>

//! Project version number for Cotter.
FOUNDATION_EXPORT double CotterVersionNumber;

//! Project version string for Cotter.
FOUNDATION_EXPORT const unsigned char CotterVersionString[];

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


Loading