Skip to content

Commit

Permalink
fix package.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
lexrus committed Sep 20, 2020
1 parent 3de24d5 commit afbe07c
Show file tree
Hide file tree
Showing 10 changed files with 46 additions and 225 deletions.
28 changes: 14 additions & 14 deletions LTMorphingLabelDemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -371,9 +371,9 @@
/* End PBXHeadersBuildPhase section */

/* Begin PBXNativeTarget section */
D73DFD001F4DB5CC00F84122 /* LTMorphingLabel_tvOS */ = {
D73DFD001F4DB5CC00F84122 /* MorphingLabel_tvOS */ = {
isa = PBXNativeTarget;
buildConfigurationList = D73DFD171F4DB5CC00F84122 /* Build configuration list for PBXNativeTarget "LTMorphingLabel_tvOS" */;
buildConfigurationList = D73DFD171F4DB5CC00F84122 /* Build configuration list for PBXNativeTarget "MorphingLabel_tvOS" */;
buildPhases = (
D73DFD011F4DB5CC00F84122 /* Sources */,
D73DFD0F1F4DB5CC00F84122 /* Frameworks */,
Expand All @@ -384,7 +384,7 @@
);
dependencies = (
);
name = LTMorphingLabel_tvOS;
name = MorphingLabel_tvOS;
productName = LTMorphingLabel;
productReference = D73DFD1A1F4DB5CC00F84122 /* MorphingLabel.framework */;
productType = "com.apple.product-type.framework";
Expand Down Expand Up @@ -447,9 +447,9 @@
productReference = D7934DC61A63AF1100AE04CE /* LTMorphingLabelTests.xctest */;
productType = "com.apple.product-type.bundle.unit-test";
};
D7D4B01E1A5E87D50087F83D /* LTMorphingLabel */ = {
D7D4B01E1A5E87D50087F83D /* MorphingLabel */ = {
isa = PBXNativeTarget;
buildConfigurationList = D7D4B03D1A5E87D50087F83D /* Build configuration list for PBXNativeTarget "LTMorphingLabel" */;
buildConfigurationList = D7D4B03D1A5E87D50087F83D /* Build configuration list for PBXNativeTarget "MorphingLabel" */;
buildPhases = (
D7D4B01A1A5E87D50087F83D /* Sources */,
D7D4B01B1A5E87D50087F83D /* Frameworks */,
Expand All @@ -460,7 +460,7 @@
);
dependencies = (
);
name = LTMorphingLabel;
name = MorphingLabel;
productName = LTMorphingLabel;
productReference = D7D4B01F1A5E87D50087F83D /* MorphingLabel.framework */;
productType = "com.apple.product-type.framework";
Expand Down Expand Up @@ -512,9 +512,9 @@
projectRoot = "";
targets = (
D74AD96D195171E7009A2ACD /* LTMorphingLabelDemo */,
D7D4B01E1A5E87D50087F83D /* LTMorphingLabel */,
D7D4B01E1A5E87D50087F83D /* MorphingLabel */,
D7934DC51A63AF1100AE04CE /* LTMorphingLabelTests */,
D73DFD001F4DB5CC00F84122 /* LTMorphingLabel_tvOS */,
D73DFD001F4DB5CC00F84122 /* MorphingLabel_tvOS */,
D73DFD1F1F5056A700F84122 /* LTMorphingLabelUITests */,
);
};
Expand Down Expand Up @@ -586,7 +586,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "if which swiftlint >/dev/null; then\nswiftlint\nelse\necho \"SwiftLint does not exist, download from https://github.com/realm/SwiftLint\"\nfi";
shellScript = "if which swiftlint >/dev/null; then\nswiftlint\nelse\necho \"SwiftLint does not exist, download from https://github.com/realm/SwiftLint\"\nfi\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -675,17 +675,17 @@
/* Begin PBXTargetDependency section */
D72A94DE1F7CAF6D007E5157 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = D7D4B01E1A5E87D50087F83D /* LTMorphingLabel */;
target = D7D4B01E1A5E87D50087F83D /* MorphingLabel */;
targetProxy = D72A94DD1F7CAF6D007E5157 /* PBXContainerItemProxy */;
};
D72A94E31F7CAFAA007E5157 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = D7D4B01E1A5E87D50087F83D /* LTMorphingLabel */;
target = D7D4B01E1A5E87D50087F83D /* MorphingLabel */;
targetProxy = D72A94E21F7CAFAA007E5157 /* PBXContainerItemProxy */;
};
D73C19F91AC2823900C1A824 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = D7D4B01E1A5E87D50087F83D /* LTMorphingLabel */;
target = D7D4B01E1A5E87D50087F83D /* MorphingLabel */;
targetProxy = D73C19F81AC2823900C1A824 /* PBXContainerItemProxy */;
};
D73C19FC1AC28DAA00C1A824 /* PBXTargetDependency */ = {
Expand Down Expand Up @@ -1065,7 +1065,7 @@
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
D73DFD171F4DB5CC00F84122 /* Build configuration list for PBXNativeTarget "LTMorphingLabel_tvOS" */ = {
D73DFD171F4DB5CC00F84122 /* Build configuration list for PBXNativeTarget "MorphingLabel_tvOS" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D73DFD181F4DB5CC00F84122 /* Debug */,
Expand Down Expand Up @@ -1110,7 +1110,7 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
D7D4B03D1A5E87D50087F83D /* Build configuration list for PBXNativeTarget "LTMorphingLabel" */ = {
D7D4B03D1A5E87D50087F83D /* Build configuration list for PBXNativeTarget "MorphingLabel" */ = {
isa = XCConfigurationList;
buildConfigurations = (
D7D4B0391A5E87D50087F83D /* Debug */,
Expand Down
Binary file not shown.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@
<dict>
<key>SchemeUserState</key>
<dict>
<key>LTMorphingLabel.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>LTMorphingLabelDemo.xcscheme</key>
<dict>
<key>orderHint</key>
Expand All @@ -19,7 +14,12 @@
<key>orderHint</key>
<integer>1</integer>
</dict>
<key>LTMorphingLabel_tvOS.xcscheme_^#shared#^_</key>
<key>MorphingLabel.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
<key>MorphingLabel_tvOS.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>2</integer>
Expand Down
2 changes: 1 addition & 1 deletion LTMorphingLabelTests/LTMorphingLabelTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import XCTest
import LTMorphingLabel
import MorphingLabel

class LTMorphingLabelTests : XCTestCase {

Expand Down
2 changes: 1 addition & 1 deletion LTMorphingLabelUITests/LTMorphingLabelUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
//

import XCTest
import LTMorphingLabel
import MorphingLabel

class LTMorphingLabelUITests: XCTestCase {

Expand Down
22 changes: 13 additions & 9 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@
import PackageDescription

let package = Package(
name: "LTMorphingLabel",
name: "MorphingLabel",
products: [
.library(name: "LTMorphingLabel", targets: ["LTMorphingLabel"]),
.library(name: "LTMorphingLabelXCFramework", targets: ["LTMorphingLabelXCFramework"])
.library(name: "MorphingLabel", targets: ["MorphingLabel"]),
.library(name: "MorphingLabelDynamic", type: .dynamic, targets: ["MorphingLabel"]),
.library(name: "MorphinglabelXCFramework", targets: ["LTMorphingLabel"])
],
targets: [
.target(
name: "LTMorphingLabel",
name: "MorphingLabel",
path: "LTMorphingLabel",
exclude: ["LTMorphingLabel/SwiftUI/MorphingText.swift"]
exclude: ["SwiftUI"],
resources: [
.process("Particles/*.png")
]
),
.target(
name: "LTMorphingLabelXCFramework",
url: "https://github.com/lexrus/LTMorphingLabel/releases/download/0.9.1/LTMorphingLabel.framework.zip",
checksum: "c40d71025beb8be5855cf78c0a4ab8d16762d183adce2b5196cff3d3a3c65c2e"
.binaryTarget(
name: "LTMorphingLabel",
url: "https://github.com/lexrus/LTMorphingLabel/releases/download/0.9.2/LTMorphingLabel.xcframework.zip",
checksum: "a3a12be1e08b84b7d9a1dd99806bc524b4515c277794d325155bb6e06ed2584a"
)
]
)
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,11 @@ public var body: some View {

1. File > Swift Packages > Add Package Dependency
2. Copy & paste `https://github.com/lexrus/LTMorphingLabel` then follow the instruction
3. Select the source framework or the xcframework

### [XCFramework](https://developer.apple.com/videos/play/wwdc2019/416/)

XCFramework is a new option intruduced in Xcode 11.
Download the pre-compiled LTMorphingLabel.xcframework.zip from the [Releases](https://github.com/lexrus/LTMorphingLabel/releases) page.
You may also use the binaryTarget of Swift Package Manager with Xcode 12.
XCFramework is a new option introduced in Xcode 11.
You can manually download the pre-compiled LTMorphingLabel.xcframework.zip from the [Releases](https://github.com/lexrus/LTMorphingLabel/releases) page. Then drag and drop it into your project.

### [Carthage](https://github.com/Carthage/Carthage)

Expand Down
Loading

0 comments on commit afbe07c

Please sign in to comment.