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

Replaces Old Project Structure With New SPM Format #4

Open
wants to merge 38 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
0c73ee1
Initial commit of new project structure.
brandonhudson Jan 13, 2021
8a36c95
Fixes launching issue where views did not work inside the new package
brandonhudson Jan 13, 2021
e7d3dec
Adds initial podspec
brandonhudson Jan 13, 2021
ab3dd18
Updates Podspec format and name
brandonhudson Jan 14, 2021
7355b6e
Working commit to test bundle instantation difference for pods and SPM
brandonhudson Jan 14, 2021
f0b96c0
Change all view controllers to selectively build resource bundle base…
brandonhudson Jan 14, 2021
d04d2d7
Re-adds license to projecrt
brandonhudson Jan 14, 2021
f22ce32
Re-adds readme to project
brandonhudson Jan 14, 2021
0723063
Working commit to add initial project for Carthage
brandonhudson Jan 14, 2021
b5296f6
Merge branch 'master' into brandon/newproject
brandonhudson Jan 14, 2021
40f9169
Removes Carthage Compatible Badge
brandonhudson Jan 14, 2021
1284ff1
Fixes SPM Package.swift location to be in root of project
brandonhudson Jan 14, 2021
fa6a98e
Merge branch 'brandon/newproject' of github.com:cardian-team/Cardian-…
brandonhudson Jan 14, 2021
691743d
Move Package.swift back
brandonhudson Jan 14, 2021
f046e4e
Updates package path again
brandonhudson Jan 14, 2021
2ba5ec1
Fixes typo in Package.swift
brandonhudson Jan 14, 2021
be69223
Moves public headers for Swift PM
brandonhudson Jan 14, 2021
b8df1fc
Moves resources to separate folder
brandonhudson Jan 14, 2021
ebc4208
Remove DS Store file
brandonhudson Jan 14, 2021
2805ea6
Removes duplicate readme and PM file. Excludes tests from package.
brandonhudson Jan 14, 2021
ffad46b
Remove unnecessary info.plist from package
brandonhudson Jan 14, 2021
4f05dc6
Fixes path typo for exclusion
brandonhudson Jan 14, 2021
5ec8441
Remove Cardian.h from SPM build
brandonhudson Jan 14, 2021
a049e1b
Hide SwiftPM from build
brandonhudson Jan 14, 2021
93f60b5
Remove SwiftPM public headers
brandonhudson Jan 14, 2021
1ac3f1b
Removes unneded gitignore
brandonhudson Jan 14, 2021
23e8a8e
Removes ds store files
brandonhudson Jan 14, 2021
fe0aaff
Remove extra directory
brandonhudson Jan 14, 2021
fea5243
Remove info.plist
brandonhudson Jan 14, 2021
3439198
Change from process to copy
brandonhudson Jan 14, 2021
be6eb7c
Updates package.swift
brandonhudson Jan 14, 2021
f9ac100
Remove DS Store
brandonhudson Jan 14, 2021
4e46ba2
Remove DS Store
brandonhudson Jan 14, 2021
158e324
Working commit
brandonhudson Jan 14, 2021
bd27fa7
Update gitignore
brandonhudson Jan 14, 2021
5f8e4bf
Remove ObjC test app
brandonhudson Jan 14, 2021
7c6c281
Make package.swift more explicit
brandonhudson Jan 14, 2021
36b7886
Rename to Cardian instead of CardianAPp
brandonhudson Jan 14, 2021
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
35 changes: 0 additions & 35 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,36 +1 @@
## OS X Finder
.DS_Store

## Build generated
build/
DerivedData

## Various settings
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata

## Other
*.xccheckout
*.moved-aside
*.xcuserstate
*.xcscmblueprint

## Obj-C/Swift specific
*.hmap
*.ipa

# Swift Package Manager
.build/

# Carthage
Carthage/Build

### CocoaPods ###
Pods/
36 changes: 18 additions & 18 deletions Cardian.podspec
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
Pod::Spec.new do |spec|
spec.name = "Cardian"
spec.version = "1.0.0"
spec.summary = "Cardian provides developers with the powerful tools they need to create data-driven health & fitness experiences for their users."
spec.homepage = "https://cardian.io"
spec.license = { type: 'Modified MIT', file: 'LICENSE' }
spec.authors = { "CurAegis Technologies" => 'team@cardian.io' }
spec.social_media_url = "https://github.com/cardian-team"

spec.platform = :ios, "12.0"
spec.requires_arc = true
spec.source = { git: "https://github.com/cardian-team/Cardian-iOS-SDK.git", tag: "v#{spec.version}", submodules: true }
spec.source_files = "Cardian/**/*.{h,swift}"
spec.swift_version = "5.0"

# Dependencies
# spec.dependency "---", "~> 1.0.0"
spec.dependency Alamofire
end
spec.name = "Cardian"
spec.version = "0.9.0"
spec.summary = "Cardian is a free service that makes it easy for mobile app developers to build data-driven, health & fitness apps."
spec.description = <<-DESC
Cardian is a free service that makes it easy for mobile app developers to build data-driven, health & fitness apps. This plugin simplifies how you integrate your native iOS app with Apple HealthKit to just three lines of code.
DESC
spec.homepage = "https://cardian.io"
spec.license = { :type => "MIT", :file => "LICENSE" }
spec.author = { "author" => "team@cardian.io" }
spec.documentation_url = "https://github.com/cardian-team/Cardian-iOS-SDK"
spec.platforms = { :ios => "12.0" }
spec.swift_version = "5.3"
spec.requires_arc = true
spec.source = { :git => "https://github.com/cardian-team/Cardian-iOS-SDK.git", :tag => "#{spec.version}", submodules: true }
spec.source_files = "Cardian/Sources/Cardian/**/*.{h,swift}"
spec.xcconfig = { "SWIFT_VERSION" => "5.3" }
spec.dependency "Alamofire"
end
1,164 changes: 0 additions & 1,164 deletions Cardian.xcodeproj/project.pbxproj

This file was deleted.

This file was deleted.

This file was deleted.

6 changes: 3 additions & 3 deletions Cardian.xcworkspace/contents.xcworkspacedata

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

16 changes: 16 additions & 0 deletions Cardian.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"object": {
"pins": [
{
"package": "Alamofire",
"repositoryURL": "https://github.com/Alamofire/Alamofire.git",
"state": {
"branch": null,
"revision": "eaf6e622dd41b07b251d8f01752eab31bc811493",
"version": "5.4.1"
}
}
]
},
"version": 1
}
Binary file not shown.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
// Copyright © 2020 Curaegis. All rights reserved.
//

public let CardianApp = Control.default;
public let Cardian = Control.default;
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,14 @@ class ConfirmationController: BaseViewController {
init(appName: String? = nil, actionButtonTitle: String = "Continue") {
self.appName = appName
self.actionButtonTitle = actionButtonTitle
let bundle = Bundle(for: ConfirmationController.self)
super.init(nibName: ConfirmationController.nibName, bundle: bundle)

#if SWIFT_PACKAGE
let resourceBundle = Bundle.module
#else
let resourceBundle = Bundle(for: ConfirmationController.self)
#endif

super.init(nibName: ConfirmationController.nibName, bundle: resourceBundle)
}

required init?(coder: NSCoder) {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,14 @@ class DataBreakdownController: BaseViewController, UITableViewDataSource, UITabl
// MARK: Functions
init(dataSource: BreakdownDataSource, showDismissButton: Bool = true) {
self.dataSource = dataSource
let bundle = Bundle(for: DataBreakdownController.self)
super.init(nibName: DataBreakdownController.nibName, bundle: bundle)

#if SWIFT_PACKAGE
let resourceBundle = Bundle.module
#else
let resourceBundle = Bundle(for: DataBreakdownController.self)
#endif

super.init(nibName: DataBreakdownController.nibName, bundle: resourceBundle)

// self.iconImage.image = icon
// self.dismissButton.isHidden = !showDismissButton
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,14 @@ class DisclosureViewController: BaseViewController {
// MARK: Functions
init(currentConfiguration: CardianConfiguration, showDismissButton: Bool = true) {
self.currentConfiguration = currentConfiguration
let bundle = Bundle(for: DisclosureViewController.self)
super.init(nibName: DisclosureViewController.nibName, bundle: bundle)

#if SWIFT_PACKAGE
let resourceBundle = Bundle.module
#else
let resourceBundle = Bundle(for: DisclosureViewController.self)
#endif

super.init(nibName: DisclosureViewController.nibName, bundle: resourceBundle)
}

required init?(coder: NSCoder) {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,14 @@ class MetricDescriptionController: BaseViewController {
// MARK: Functions
init(dataSource: MetricDescriptionDataSource) {
self.dataSource = dataSource
let bundle = Bundle(for: MetricDescriptionController.self)
super.init(nibName: MetricDescriptionController.nibName, bundle: bundle)

#if SWIFT_PACKAGE
let resourceBundle = Bundle.module
#else
let resourceBundle = Bundle(for: MetricDescriptionController.self)
#endif

super.init(nibName: MetricDescriptionController.nibName, bundle: resourceBundle)
}

required init?(coder: NSCoder) {
Expand Down
File renamed without changes.
15 changes: 15 additions & 0 deletions Cardian/Tests/CardianTests/CardianTests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import XCTest
@testable import Cardian

final class CardianTests: XCTestCase {
func testExample() {
// This is an example of a functional test case.
// Use XCTAssert and related functions to verify your tests produce the correct
// results.
XCTAssertEqual(Cardian().text, "Hello, World!")
}

static var allTests = [
("testExample", testExample),
]
}
9 changes: 9 additions & 0 deletions Cardian/Tests/CardianTests/XCTestManifests.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import XCTest

#if !canImport(ObjectiveC)
public func allTests() -> [XCTestCaseEntry] {
return [
testCase(CardianTests.allTests),
]
}
#endif
7 changes: 7 additions & 0 deletions Cardian/Tests/LinuxMain.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import XCTest

import CardianTests

var tests = [XCTestCaseEntry]()
tests += CardianTests.allTests()
XCTMain(tests)
Binary file added CardianTestApp/.DS_Store
Binary file not shown.
Loading