Skip to content

Commit

Permalink
Update for 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
moonsense-ci committed Oct 13, 2022
1 parent f7222d1 commit 0608743
Show file tree
Hide file tree
Showing 8 changed files with 51 additions and 38 deletions.
21 changes: 17 additions & 4 deletions Package.swift
@@ -1,6 +1,7 @@
// swift-tools-version:5.3

import PackageDescription
import class Foundation.ProcessInfo

let package = Package(
name: "MoonsenseSDK",
Expand All @@ -18,13 +19,25 @@ let package = Package(
targets: [
.binaryTarget(
name: "MoonsenseSDK",
url: "https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseSDK.xcframework/versions/1.1.1/MoonsenseSDK.xcframework-1.1.1.zip",
checksum: "0968de5a85eec0f893c465b5c3d95b27cc19a4891a40d376aa888837155afb23"
url: "https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseSDK.xcframework/versions/1.2.0/MoonsenseSDK.xcframework-1.2.0.zip",
checksum: "0f6840d57d7c2e23dc13853b526f61c9b545cb4741d33dfb7443161507a3953a"
),
.binaryTarget(
name: "MoonsenseSDK-static",
url: "https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseSDK-static.xcframework/versions/1.1.1/MoonsenseSDK-static.xcframework-1.1.1.zip",
checksum: "ffb8141fe5bc0fa28f99b06114134ce0462dbbe2186a0bce843a59e37275c873"
url: "https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseSDK-static.xcframework/versions/1.2.0/MoonsenseSDK-static.xcframework-1.2.0.zip",
checksum: "4a937c62b1c271f36ee5e5e560438c853b1f3d1ca741bf540cfc2a703f745794"
)
]
)

if ProcessInfo.processInfo.environment["MOONSENSE_INCLUDE_CORE_PACKAGES"] != nil {
package.products.append(Product.library(name: "MoonsenseCoreSDK", targets: ["MoonsenseCoreSDK"]))
package.targets.append(Target.binaryTarget(name: "MoonsenseCoreSDK",
url: "https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseCoreSDK.xcframework/versions/1.2.0/MoonsenseCoreSDK.xcframework-1.2.0.zip",
checksum: "62717a2b569943a142f5e2fb7360616dae4594ab19df730a00de6dd8935af53e"))

package.products.append(Product.library(name: "MoonsenseCoreSDK-static", targets: ["MoonsenseCoreSDK-static"]))
package.targets.append(Target.binaryTarget(name: "MoonsenseCoreSDK-static",
url: "https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseCoreSDK-static.xcframework/versions/1.2.0/MoonsenseCoreSDK-static.xcframework-1.2.0.zip",
checksum: "7671be70fbd6a99f501dbd4584af448feab4945d988d322eb8f3e4b7286e64bf"))
}
10 changes: 5 additions & 5 deletions README.md
Expand Up @@ -23,7 +23,7 @@ The `MoonsenseSDK-static.xcframework` contains the statically linked variant of

## Version History

The latest release of the SDK is `1.1.1`. Details about the current and past releases can be found [here](https://github.com/moonsense/moonsense-ios-sdk/releases/).
The latest release of the SDK is `1.2.0`. Details about the current and past releases can be found [here](https://github.com/moonsense/moonsense-ios-sdk/releases/).

## Prerequisites

Expand Down Expand Up @@ -57,16 +57,16 @@ Cocoapods distribution is not currently available but will be supported in an up

The `MoonsenseSDK.xcframework.zip`, `MoonsenseSDK-static.xcframework.zip` and `MoonsenseSDK.doccarchive.zip` artifacts can also be manually integrated into your project. You can download the latest versions from the following links:

* [`MoonsenseSDK.xcframework.zip`](https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseSDK.xcframework/versions/1.1.1/MoonsenseSDK.xcframework-1.1.1.zip)
* [`MoonsenseSDK-static.xcframework.zip`](https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseSDK-static.xcframework/versions/1.1.1/MoonsenseSDK-static.xcframework-1.1.1.zip)
* [`MoonsenseSDK.doccarchive.zip`](https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseSDK.doccarchive/versions/1.1.1/MoonsenseSDK.doccarchive-1.1.1.zip)
* [`MoonsenseSDK.xcframework.zip`](https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseSDK.xcframework/versions/1.2.0/MoonsenseSDK.xcframework-1.2.0.zip)
* [`MoonsenseSDK-static.xcframework.zip`](https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseSDK-static.xcframework/versions/1.2.0/MoonsenseSDK-static.xcframework-1.2.0.zip)
* [`MoonsenseSDK.doccarchive.zip`](https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseSDK.doccarchive/versions/1.2.0/MoonsenseSDK.doccarchive-1.2.0.zip)

Once downloaded, unzip the files and drop the expanded files into your project.

*Note:* The downloads require the authorization token as outlined above. For best results download the artifacts using `curl` with the `-n` option. For example:

```
curl -n -o MoonsenseSDK.xcframework.zip https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseSDK.xcframework/versions/1.1.1/MoonsenseSDK.xcframework-1.1.1.zip
curl -n -o MoonsenseSDK.xcframework.zip https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseSDK.xcframework/versions/1.2.0/MoonsenseSDK.xcframework-1.2.0.zip
```

## Usage
Expand Down
28 changes: 14 additions & 14 deletions SampleApp/SampleApp.xcodeproj/project.pbxproj
Expand Up @@ -19,8 +19,8 @@
24E0513526CED02800D243E0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 24E0513326CED02800D243E0 /* Main.storyboard */; };
24E0513726CED02A00D243E0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 24E0513626CED02A00D243E0 /* Assets.xcassets */; };
24E0513A26CED02A00D243E0 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 24E0513826CED02A00D243E0 /* LaunchScreen.storyboard */; };
63681D1811B04E4BCF7467E3 /* MoonsenseSDK-static in Frameworks */ = {isa = PBXBuildFile; productRef = B4AC233E55BBF61AEAE5475B /* MoonsenseSDK-static */; };
88BC5CD7B097B41BC3837384 /* MoonsenseSDK in Frameworks */ = {isa = PBXBuildFile; productRef = E4054B02B9DFC5E989FFDB6F /* MoonsenseSDK */; };
59EF1DB09BCAD7E8FBAFFD10 /* MoonsenseSDK-static in Frameworks */ = {isa = PBXBuildFile; productRef = 669F979DED8047EF2B144D51 /* MoonsenseSDK-static */; };
EB9B6BDC706B1F9C2C5E2046 /* MoonsenseSDK in Frameworks */ = {isa = PBXBuildFile; productRef = F0DC1EDA774D321036372A91 /* MoonsenseSDK */; };
/* End PBXBuildFile section */

/* Begin PBXCopyFilesBuildPhase section */
Expand Down Expand Up @@ -54,15 +54,15 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
63681D1811B04E4BCF7467E3 /* MoonsenseSDK-static in Frameworks */,
59EF1DB09BCAD7E8FBAFFD10 /* MoonsenseSDK-static in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
24E0512726CED02800D243E0 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
88BC5CD7B097B41BC3837384 /* MoonsenseSDK in Frameworks */,
EB9B6BDC706B1F9C2C5E2046 /* MoonsenseSDK in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -118,7 +118,7 @@
);
name = "SampleApp-Static";
packageProductDependencies = (
B4AC233E55BBF61AEAE5475B /* MoonsenseSDK-static */,
669F979DED8047EF2B144D51 /* MoonsenseSDK-static */,
);
productName = SampleApp;
productReference = 245DB37D26FA545B003A5B73 /* SampleApp-Static.app */;
Expand All @@ -139,7 +139,7 @@
);
name = SampleApp;
packageProductDependencies = (
E4054B02B9DFC5E989FFDB6F /* MoonsenseSDK */,
F0DC1EDA774D321036372A91 /* MoonsenseSDK */,
);
productName = SampleApp;
productReference = 24E0512A26CED02800D243E0 /* SampleApp.app */;
Expand All @@ -153,7 +153,7 @@
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1300;
LastUpgradeCheck = 1340;
LastUpgradeCheck = 1400;
ORGANIZATIONNAME = "Moonsense, Inc.";
TargetAttributes = {
24E0512926CED02800D243E0 = {
Expand All @@ -171,7 +171,7 @@
);
mainGroup = 24E0512126CED02800D243E0;
packageReferences = (
DEB6A3E733BA59A0758528CC /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */,
6987160EC0358AB85199AD66 /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */,
);
productRefGroup = 24E0512B26CED02800D243E0 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -510,25 +510,25 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
DEB6A3E733BA59A0758528CC /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */ = {
6987160EC0358AB85199AD66 /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/moonsense/moonsense-ios-sdk";
requirement = {
kind = upToNextMinorVersion;
minimumVersion = 1.1.1;
minimumVersion = 1.2.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
B4AC233E55BBF61AEAE5475B /* MoonsenseSDK-static */ = {
669F979DED8047EF2B144D51 /* MoonsenseSDK-static */ = {
isa = XCSwiftPackageProductDependency;
package = DEB6A3E733BA59A0758528CC /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */;
package = 6987160EC0358AB85199AD66 /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */;
productName = "MoonsenseSDK-static";
};
E4054B02B9DFC5E989FFDB6F /* MoonsenseSDK */ = {
F0DC1EDA774D321036372A91 /* MoonsenseSDK */ = {
isa = XCSwiftPackageProductDependency;
package = DEB6A3E733BA59A0758528CC /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */;
package = 6987160EC0358AB85199AD66 /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */;
productName = MoonsenseSDK;
};
/* End XCSwiftPackageProductDependency section */
Expand Down
8 changes: 4 additions & 4 deletions SampleCoreApp/README.md
Expand Up @@ -12,16 +12,16 @@ The `SampleCoreApp` project demonstrates the use of the Moonsense iOS Core SDK w

At this time, the `MoonsenseCoreSDK.xcframework.zip`, `MoonsenseCoreSDK-static.xcframework.zip` and `MoonsenseCoreSDK.doccarchive.zip` artifacts must be manually integrated into your project. You can download the latest versions from the following links:

* [`MoonsenseCoreSDK.xcframework.zip`](https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseCoreSDK.xcframework/versions/1.1.1/MoonsenseCoreSDK.xcframework-1.1.1.zip)
* [`MoonsenseCoreSDK-static.xcframework.zip`](https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseCoreSDK-static.xcframework/versions/1.1.1/MoonsenseCoreSDK-static.xcframework-1.1.1.zip)
* [`MoonsenseCoreSDK.doccarchive.zip`](https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseCoreSDK.doccarchive/versions/1.1.1/MoonsenseCoreSDK.doccarchive-1.1.1.zip)
* [`MoonsenseCoreSDK.xcframework.zip`](https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseCoreSDK.xcframework/versions/1.2.0/MoonsenseCoreSDK.xcframework-1.2.0.zip)
* [`MoonsenseCoreSDK-static.xcframework.zip`](https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseCoreSDK-static.xcframework/versions/1.2.0/MoonsenseCoreSDK-static.xcframework-1.2.0.zip)
* [`MoonsenseCoreSDK.doccarchive.zip`](https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseCoreSDK.doccarchive/versions/1.2.0/MoonsenseCoreSDK.doccarchive-1.2.0.zip)

Once downloaded, unzip the files and drop the expanded files into your project.

*Note:* The downloads require the authorization token as outlined in the main [`README.md`](../README.md/#configuring-netrc-for-authorizing-downloads). For best results download the artifacts using `curl` with the `-n` option. For example:

```
curl -n -o MoonsenseCoreSDK.xcframework.zip https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseCoreSDK.xcframework/versions/1.1.1/MoonsenseCoreSDK.xcframework-1.1.1.zip
curl -n -o MoonsenseCoreSDK.xcframework.zip https://dl.moonsense.io/basic/sdk/raw/names/MoonsenseCoreSDK.xcframework/versions/1.2.0/MoonsenseCoreSDK.xcframework-1.2.0.zip
```

## Terms Of Service
Expand Down
2 changes: 1 addition & 1 deletion SampleCoreApp/SampleCoreApp.xcodeproj/project.pbxproj
Expand Up @@ -231,7 +231,7 @@
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1300;
LastUpgradeCheck = 1340;
LastUpgradeCheck = 1400;
ORGANIZATIONNAME = "Moonsense, Inc.";
TargetAttributes = {
24E0512926CED02800D243E0 = {
Expand Down
Expand Up @@ -178,7 +178,7 @@
attributes = {
BuildIndependentTargetsInParallel = 1;
LastSwiftUpdateCheck = 1300;
LastUpgradeCheck = 1340;
LastUpgradeCheck = 1400;
ORGANIZATIONNAME = "Moonsense, Inc.";
TargetAttributes = {
24889C4E2714BE2700F70CCF = {
Expand Down
16 changes: 8 additions & 8 deletions SamplePaymentSDK/SamplePaymentSDK.xcodeproj/project.pbxproj
Expand Up @@ -26,7 +26,7 @@
24AADF8D2739C57200474E5C /* CVVEntryView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24AADF8B2739C57200474E5C /* CVVEntryView.swift */; };
24AADF8E2739C57200474E5C /* CVVEntryView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 24AADF8C2739C57200474E5C /* CVVEntryView.xib */; };
24AADF9F273DC34200474E5C /* StringExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24AADF9E273DC34200474E5C /* StringExtensions.swift */; };
AB06181F052F85FBE7619117 /* MoonsenseSDK-static in Frameworks */ = {isa = PBXBuildFile; productRef = F923372579B560F1B12A61C9 /* MoonsenseSDK-static */; };
C0D4D813F51BB0559537A741 /* MoonsenseSDK-static in Frameworks */ = {isa = PBXBuildFile; productRef = FA4CEF582A282C1FB47208C2 /* MoonsenseSDK-static */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand Down Expand Up @@ -59,7 +59,7 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
AB06181F052F85FBE7619117 /* MoonsenseSDK-static in Frameworks */,
C0D4D813F51BB0559537A741 /* MoonsenseSDK-static in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -202,7 +202,7 @@
);
name = SamplePaymentSDK;
packageProductDependencies = (
F923372579B560F1B12A61C9 /* MoonsenseSDK-static */,
FA4CEF582A282C1FB47208C2 /* MoonsenseSDK-static */,
);
productName = SamplePaymentSDK;
productReference = 24889C8427171ECE00F70CCF /* SamplePaymentSDK.framework */;
Expand Down Expand Up @@ -233,7 +233,7 @@
);
mainGroup = 24889C7A27171ECE00F70CCF;
packageReferences = (
B4C11E10BC9168063F773859 /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */,
B65904E437B3C932BF843026 /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */,
);
productRefGroup = 24889C8527171ECE00F70CCF /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -490,20 +490,20 @@
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
B4C11E10BC9168063F773859 /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */ = {
B65904E437B3C932BF843026 /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/moonsense/moonsense-ios-sdk";
requirement = {
kind = upToNextMinorVersion;
minimumVersion = 1.1.1;
minimumVersion = 1.2.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
F923372579B560F1B12A61C9 /* MoonsenseSDK-static */ = {
FA4CEF582A282C1FB47208C2 /* MoonsenseSDK-static */ = {
isa = XCSwiftPackageProductDependency;
package = B4C11E10BC9168063F773859 /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */;
package = B65904E437B3C932BF843026 /* XCRemoteSwiftPackageReference "moonsense-ios-sdk" */;
productName = "MoonsenseSDK-static";
};
/* End XCSwiftPackageProductDependency section */
Expand Down
2 changes: 1 addition & 1 deletion SamplePaymentSDK/SamplePaymentSDK/Payment.swift
Expand Up @@ -73,7 +73,7 @@ public class Payment {
// Capture sensors that produce data on intervals at 50Hz.
// Generate bundles every half second.
// When no SessionConfig is provided when starting a session, capture these sensors:
let sdkConfig = SDKConfig(sensorTypes: [.touch, .focusChange, .keyPress, .textChange],
let sdkConfig = SDKConfig(sensorTypes: [.touch, .focusChange, .inputChange, .keyPress],
globalSamplingRate: 50,
bundleGenerationInterval: 0.5)

Expand Down

0 comments on commit 0608743

Please sign in to comment.