Skip to content

Commit

Permalink
iOS: Rename library to LibSloth in preparation for new functionalities
Browse files Browse the repository at this point in the history
  • Loading branch information
lambdapioneer committed Feb 22, 2024
1 parent 8a3aed1 commit 7c8ff8f
Show file tree
Hide file tree
Showing 17 changed files with 28 additions and 28 deletions.
File renamed without changes.
12 changes: 6 additions & 6 deletions ios/RainbowSloth/Package.swift → ios/LibSloth/Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,25 @@
import PackageDescription

let package = Package(
name: "RainbowSloth",
name: "LibSloth",
platforms: [.iOS(.v14)],
products: [
.library(
name: "RainbowSloth",
targets: ["RainbowSloth"])
name: "LibSloth",
targets: ["LibSloth"])
],
dependencies: [
.package(url: "https://github.com/jedisct1/swift-sodium.git", from: "0.9.1")
],
targets: [
.target(
name: "RainbowSloth",
name: "LibSloth",
dependencies: [
.product(name: "Sodium", package: "swift-sodium")
]
),
.testTarget(
name: "RainbowSlothTests",
dependencies: ["RainbowSloth"])
name: "LibSlothTests",
dependencies: ["LibSloth"])
]
)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testable import RainbowSloth
@testable import LibSloth
import XCTest

final class HkdfTests: XCTestCase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testable import RainbowSloth
@testable import LibSloth
import XCTest

final class PwHashTests: XCTestCase {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testable import RainbowSloth
@testable import LibSloth
import XCTest

final class ReHashToEcTests: XCTestCase {
Expand Down
32 changes: 16 additions & 16 deletions ios/Sloth/Sloth.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
objects = {

/* Begin PBXBuildFile section */
295AAC9F2B87AA7300B0D95D /* RainbowSlothTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 295AAC9E2B87AA7300B0D95D /* RainbowSlothTests.swift */; };
29AAF9C12B0B55A800E12423 /* SlothApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29AAF9C02B0B55A800E12423 /* SlothApp.swift */; };
29AAF9C32B0B55A800E12423 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29AAF9C22B0B55A800E12423 /* ContentView.swift */; };
29AAF9C52B0B55A900E12423 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 29AAF9C42B0B55A900E12423 /* Assets.xcassets */; };
29AAF9C82B0B55A900E12423 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 29AAF9C72B0B55A900E12423 /* Preview Assets.xcassets */; };
29AAF9EE2B0B5FA400E12423 /* RainbowSlothTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29AAF9ED2B0B5FA400E12423 /* RainbowSlothTests.swift */; };
29AAF9F02B0B5FF700E12423 /* SecureEnclaveTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29AAF9EF2B0B5FF700E12423 /* SecureEnclaveTests.swift */; };
29AAF9F22B0B618300E12423 /* UIDevice.swift in Sources */ = {isa = PBXBuildFile; fileRef = 29AAF9F12B0B618300E12423 /* UIDevice.swift */; };
29AAF9F52B0B61AC00E12423 /* RainbowSloth in Frameworks */ = {isa = PBXBuildFile; productRef = 29AAF9F42B0B61AC00E12423 /* RainbowSloth */; };
29AAF9F72B0B624200E12423 /* RainbowSloth in Frameworks */ = {isa = PBXBuildFile; productRef = 29AAF9F62B0B624200E12423 /* RainbowSloth */; };
29AAF9F52B0B61AC00E12423 /* LibSloth in Frameworks */ = {isa = PBXBuildFile; productRef = 29AAF9F42B0B61AC00E12423 /* LibSloth */; };
29AAF9F72B0B624200E12423 /* LibSloth in Frameworks */ = {isa = PBXBuildFile; productRef = 29AAF9F62B0B624200E12423 /* LibSloth */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
Expand All @@ -29,14 +29,14 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
295AAC9E2B87AA7300B0D95D /* RainbowSlothTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RainbowSlothTests.swift; sourceTree = "<group>"; };
29AAF9BD2B0B55A800E12423 /* Sloth.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Sloth.app; sourceTree = BUILT_PRODUCTS_DIR; };
29AAF9C02B0B55A800E12423 /* SlothApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SlothApp.swift; sourceTree = "<group>"; };
29AAF9C22B0B55A800E12423 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
29AAF9C42B0B55A900E12423 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
29AAF9C72B0B55A900E12423 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
29AAF9CD2B0B55A900E12423 /* SlothTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = SlothTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
29AAF9EA2B0B55F300E12423 /* RainbowSloth */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = RainbowSloth; path = ../../RainbowSloth; sourceTree = "<group>"; };
29AAF9ED2B0B5FA400E12423 /* RainbowSlothTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RainbowSlothTests.swift; sourceTree = "<group>"; };
29AAF9EA2B0B55F300E12423 /* LibSloth */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = LibSloth; path = ../../LibSloth; sourceTree = "<group>"; };
29AAF9EF2B0B5FF700E12423 /* SecureEnclaveTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SecureEnclaveTests.swift; sourceTree = "<group>"; };
29AAF9F12B0B618300E12423 /* UIDevice.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIDevice.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */
Expand All @@ -46,15 +46,15 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
29AAF9F52B0B61AC00E12423 /* RainbowSloth in Frameworks */,
29AAF9F52B0B61AC00E12423 /* LibSloth in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
29AAF9CA2B0B55A900E12423 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
29AAF9F72B0B624200E12423 /* RainbowSloth in Frameworks */,
29AAF9F72B0B624200E12423 /* LibSloth in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -83,7 +83,7 @@
29AAF9BF2B0B55A800E12423 /* Sloth */ = {
isa = PBXGroup;
children = (
29AAF9EA2B0B55F300E12423 /* RainbowSloth */,
29AAF9EA2B0B55F300E12423 /* LibSloth */,
29AAF9C02B0B55A800E12423 /* SlothApp.swift */,
29AAF9C22B0B55A800E12423 /* ContentView.swift */,
29AAF9F12B0B618300E12423 /* UIDevice.swift */,
Expand All @@ -104,7 +104,7 @@
29AAF9D02B0B55A900E12423 /* SlothTests */ = {
isa = PBXGroup;
children = (
29AAF9ED2B0B5FA400E12423 /* RainbowSlothTests.swift */,
295AAC9E2B87AA7300B0D95D /* RainbowSlothTests.swift */,
29AAF9EF2B0B5FF700E12423 /* SecureEnclaveTests.swift */,
);
path = SlothTests;
Expand Down Expand Up @@ -134,7 +134,7 @@
);
name = Sloth;
packageProductDependencies = (
29AAF9F42B0B61AC00E12423 /* RainbowSloth */,
29AAF9F42B0B61AC00E12423 /* LibSloth */,
);
productName = Sloth;
productReference = 29AAF9BD2B0B55A800E12423 /* Sloth.app */;
Expand All @@ -155,7 +155,7 @@
);
name = SlothTests;
packageProductDependencies = (
29AAF9F62B0B624200E12423 /* RainbowSloth */,
29AAF9F62B0B624200E12423 /* LibSloth */,
);
productName = SlothTests;
productReference = 29AAF9CD2B0B55A900E12423 /* SlothTests.xctest */;
Expand Down Expand Up @@ -233,7 +233,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
29AAF9EE2B0B5FA400E12423 /* RainbowSlothTests.swift in Sources */,
295AAC9F2B87AA7300B0D95D /* RainbowSlothTests.swift in Sources */,
29AAF9F02B0B5FF700E12423 /* SecureEnclaveTests.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -497,13 +497,13 @@
/* End XCConfigurationList section */

/* Begin XCSwiftPackageProductDependency section */
29AAF9F42B0B61AC00E12423 /* RainbowSloth */ = {
29AAF9F42B0B61AC00E12423 /* LibSloth */ = {
isa = XCSwiftPackageProductDependency;
productName = RainbowSloth;
productName = LibSloth;
};
29AAF9F62B0B624200E12423 /* RainbowSloth */ = {
29AAF9F62B0B624200E12423 /* LibSloth */ = {
isa = XCSwiftPackageProductDependency;
productName = RainbowSloth;
productName = LibSloth;
};
/* End XCSwiftPackageProductDependency section */
};
Expand Down
2 changes: 1 addition & 1 deletion ios/Sloth/Sloth/ContentView.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import RainbowSloth
import LibSloth
import SwiftUI

func runExperiment(experiment: String, n: Int, iterations: Int) throws -> [Double] {
Expand Down
2 changes: 1 addition & 1 deletion ios/Sloth/SlothTests/RainbowSlothTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import RainbowSloth
import LibSloth
import XCTest

/// These tests must live in a target of an app to get the right entitlements to access the key chain / SecureEnclave.
Expand Down
2 changes: 1 addition & 1 deletion ios/Sloth/SlothTests/SecureEnclaveTests.swift
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@testable import RainbowSloth
@testable import LibSloth
import XCTest

/// These tests must live in a target of an app to get the right entitlements to access the key chain / SlothSecureEnclave.
Expand Down

0 comments on commit 7c8ff8f

Please sign in to comment.