Skip to content

Commit

Permalink
Swift package support (#213)
Browse files Browse the repository at this point in the history
* - Supported Swift package
- Changed source code structure
  • Loading branch information
mayur1407 authored and haoliu-amp committed Nov 21, 2019
1 parent 0356de2 commit 0f098f2
Show file tree
Hide file tree
Showing 41 changed files with 42 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

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

4 changes: 2 additions & 2 deletions Amplitude-iOS.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Pod::Spec.new do |s|
s.source = { :git => "https://github.com/amplitude/Amplitude-iOS.git", :tag => "v4.8.2" }
s.ios.deployment_target = '8.0'
s.tvos.deployment_target = '9.0'
s.source_files = 'Amplitude/*.{h,m}', 'Amplitude/SSLCertificatePinning/*.{h,m}'
s.resources = 'Amplitude/*.der'
s.source_files = 'Sources/Amplitude/*.{h,m}', 'Sources/Amplitude/SSLCertificatePinning/*.{h,m}'
s.resources = 'Sources/Amplitude/*.der'
s.requires_arc = true
s.library = 'sqlite3.0'
end
11 changes: 10 additions & 1 deletion Amplitude.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,14 @@
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
02267F682355C80800E1F8E2 /* Sources */ = {
isa = PBXGroup;
children = (
E98C05251A48E7FE00800C63 /* Amplitude */,
);
path = Sources;
sourceTree = "<group>";
};
343AB4181CC99F4F00962943 /* AmplitudeFramework */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -320,7 +328,7 @@
E98C051A1A48E7FE00800C63 = {
isa = PBXGroup;
children = (
E98C05251A48E7FE00800C63 /* Amplitude */,
02267F682355C80800E1F8E2 /* Sources */,
E98C052F1A48E7FE00800C63 /* AmplitudeTests */,
343AB4181CC99F4F00962943 /* AmplitudeFramework */,
600CBC601E2EF5B0001F58A9 /* AmplitudeTVOSTests */,
Expand Down Expand Up @@ -580,6 +588,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
);
mainGroup = E98C051A1A48E7FE00800C63;
Expand Down
21 changes: 21 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
// swift-tools-version:4.2
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
name: "Amplitude",
products: [
.library(
name: "Amplitude",
targets: ["Amplitude"]),
],
targets: [
.target(
name: "Amplitude",
path: "Sources",
exclude: [],
sources: ["Amplitude", "Amplitude/"],
publicHeadersPath: "Amplitude"),
]
)
4 changes: 2 additions & 2 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ DEPENDENCIES:
- OCMock (~> 3.2.1)

SPEC REPOS:
https://github.com/cocoapods/specs.git:
https://github.com/CocoaPods/Specs.git:
- OCMock

SPEC CHECKSUMS:
OCMock: 18c9b7e67d4c2770e95bb77a9cc1ae0c91fe3835

PODFILE CHECKSUM: ffab5ccb87c60a8697a7f2dd2dfe3e86cef2ac90

COCOAPODS: 1.5.3
COCOAPODS: 1.8.3
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 0f098f2

Please sign in to comment.