Skip to content

Commit 2739478

Browse files
Initial public release of iOS SDK, sample app
1 parent 5e79f78 commit 2739478

File tree

109 files changed

+6062
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

109 files changed

+6062
-0
lines changed

.gitignore

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Created by https://www.toptal.com/developers/gitignore/api/xcode,cocoapods
2+
# Edit at https://www.toptal.com/developers/gitignore?templates=xcode,cocoapods
3+
4+
### CocoaPods ###
5+
## CocoaPods GitIgnore Template
6+
7+
# CocoaPods - Only use to conserve bandwidth / Save time on Pushing
8+
# - Also handy if you have a large number of dependant pods
9+
# - AS PER https://guides.cocoapods.org/using/using-cocoapods.html NEVER IGNORE THE LOCK FILE
10+
Pods/
11+
12+
### Xcode ###
13+
# Xcode
14+
#
15+
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
16+
17+
## User settings
18+
xcuserdata/
19+
20+
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
21+
*.xcscmblueprint
22+
*.xccheckout
23+
24+
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
25+
build/
26+
DerivedData/
27+
*.moved-aside
28+
*.pbxuser
29+
!default.pbxuser
30+
*.mode1v3
31+
!default.mode1v3
32+
*.mode2v3
33+
!default.mode2v3
34+
*.perspectivev3
35+
!default.perspectivev3
36+
37+
## Gcc Patch
38+
/*.gcno
39+
40+
### Xcode Patch ###
41+
*.xcodeproj/*
42+
!*.xcodeproj/project.pbxproj
43+
!*.xcodeproj/xcshareddata/
44+
!*.xcworkspace/contents.xcworkspacedata
45+
**/xcshareddata/WorkspaceSettings.xcsettings
46+
47+
# End of https://www.toptal.com/developers/gitignore/api/xcode,cocoapods
48+
49+
**/.DS_Store

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
[submodule "ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb"]
2+
path = ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb
3+
url = https://github.com/garmin/ActiveCaptainCommunitySDK-common.git
4+
branch = main

ActiveCaptainCommunitySDK.podspec

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
sdkBase = "ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK"
2+
cppBase = "#{sdkBase}/cpp/acdb"
3+
submoduleBase = "#{cppBase}/submodules"
4+
5+
Pod::Spec.new do |spec|
6+
7+
spec.name = "ActiveCaptainCommunitySDK"
8+
spec.version = "2.0.0"
9+
spec.summary = "Garmin ActiveCaptain Community SDK"
10+
spec.description = <<-DESC
11+
SDK for maintaining and retrieving data from Garmin ActiveCaptain Community SQLite database.
12+
DESC
13+
14+
spec.homepage = "https://activecaptain.garmin.com/Developer"
15+
spec.license = "Apache License, Version 2.0"
16+
spec.author = "Garmin Ltd."
17+
18+
spec.platform = :ios
19+
20+
spec.source = { :git => "https://github.com/garmin/ActiveCaptainCommunitySDK-ios.git", :tag => "v2.0.0", :submodules => true }
21+
22+
spec.ios.deployment_target = '12.0'
23+
spec.source_files = "#{sdkBase}/*.{h,m,mm}", "#{cppBase}/*.{c,cpp}", "#{cppBase}/{Adapters,DTO,Json,Navionics,Presentation,Presentation/Field,Presentation/Section,Queries,Thirdparty,Thirdparty/Navionics/Extensions}/*.{c,cpp}", "#{submoduleBase}/SQLiteCpp/sqlite3/sqlite3.c", "#{submoduleBase}/SQLiteCpp/src/*.cpp"
24+
spec.exclude_files = "#{cppBase}/Thirdparty/FileUtilWindows.cpp"
25+
spec.preserve_paths = "#{cppBase}/Include/**/*.{h,hpp}", "#{cppBase}/Navionics/**/*.{h,hpp}", "#{cppBase}/submodules/**/*.{h,hpp}", "#{cppBase}/Thirdparty/**/*.{h,hpp}"
26+
spec.public_header_files = "#{sdkBase}/*.h"
27+
spec.resource_bundles = {
28+
'ActiveCaptainCommunitySDK' => ["#{sdkBase}/assets/acdb/img/*.png", "#{sdkBase}/assets/acdb/img/map/*.bmp"]
29+
}
30+
spec.compiler_flags = "-DSQLITE_ENABLE_FTS5 -DSQLITE_ENABLE_RTREE -DSQLITE_TEMP_STORE=3"
31+
spec.requires_arc = true
32+
33+
spec.pod_target_xcconfig = {
34+
'HEADER_SEARCH_PATHS' => '"$(inherited)" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Include/Private" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Include/Private/Acdb" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Include/Public" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Include/Public/Acdb" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Navionics" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Navionics/Stubs" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/submodules/mustache" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/submodules/rapidjson/include" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/submodules/SQLiteCpp/include" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/submodules/SQLiteCpp/sqlite3" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Thirdparty/Include/Private" "$(PODS_TARGET_SRCROOT)/ActiveCaptainCommunitySDK/ActiveCaptainCommunitySDK/cpp/acdb/Thirdparty/Navionics/Extensions"',
35+
'USER_HEADER_SEARCH_PATHS' => '"$(PODS_TARGET_SRCROOT)"',
36+
'USE_HEADERMAP' => 'NO',
37+
'ALWAYS_SEARCH_USER_PATHS' => 'NO'
38+
}
39+
end

0 commit comments

Comments
 (0)