Really add playground to xcode project

This commit is contained in:
keefertaylor 2019-01-18 01:26:54 +00:00
parent 43abc15407
commit 68bbf6cdd7
4 changed files with 17 additions and 5 deletions

View File

@ -1,5 +0,0 @@
import MnemonicKit
if let mnemonic = Mnemonic.generateMnemonic(strength: 64) {
print("Generate a mnemonic of strength 64: \(mnemonic)");
}

View File

@ -73,6 +73,7 @@
778602D621863BDD0036843F /* MnemonicKitTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MnemonicKitTests.swift; sourceTree = "<group>"; };
778602D821863BDD0036843F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
778602DE2186426A0036843F /* vectors.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = vectors.json; sourceTree = "<group>"; };
77CE32B121F16281006ADABA /* MnemonicKitExample.playground */ = {isa = PBXFileReference; lastKnownFileType = file.playground; name = MnemonicKitExample.playground; path = "New Group/MnemonicKitExample.playground"; sourceTree = SOURCE_ROOT; xcLanguageSpecificationIdentifier = xcode.lang.swift; };
77FE006821BDA092009C3CD1 /* MnemonicKitTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = MnemonicKitTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
F8A8C54321CD490C005684A3 /* CryptoSwift.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = CryptoSwift.framework; path = Carthage/Build/iOS/CryptoSwift.framework; sourceTree = "<group>"; };
F8A8C55A21CD4C86005684A3 /* MnemonicKit.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MnemonicKit.framework; sourceTree = BUILT_PRODUCTS_DIR; };
@ -125,6 +126,7 @@
778602A22186370E0036843F = {
isa = PBXGroup;
children = (
77CE32B221F162BA006ADABA /* Examples */,
778602AD2186370E0036843F /* Sources */,
778602D521863BDD0036843F /* Tests */,
F8A8C55B21CD4C86005684A3 /* MnemonicKit */,
@ -174,6 +176,15 @@
path = Tests;
sourceTree = "<group>";
};
77CE32B221F162BA006ADABA /* Examples */ = {
isa = PBXGroup;
children = (
77CE32B121F16281006ADABA /* MnemonicKitExample.playground */,
);
name = Examples;
path = "New Group";
sourceTree = "<group>";
};
F8A8C55B21CD4C86005684A3 /* MnemonicKit */ = {
isa = PBXGroup;
children = (

View File

@ -0,0 +1,6 @@
import MnemonicKit
let strength = 128
if let mnemonic = Mnemonic.generateMnemonic(strength: strength) {
print("A mnemonic of strength \(strength): \(mnemonic)");
}