Integrate Cocoapods and Zcash SDK
This commit is contained in:
parent
a8547041a7
commit
08b9503101
|
@ -0,0 +1,17 @@
|
|||
use_frameworks!
|
||||
target 'accept-zcash-poc' do
|
||||
pod 'ZcashLightClientKit'
|
||||
end
|
||||
|
||||
post_install do |installer|
|
||||
installer.pods_project.targets.each do |target|
|
||||
target.build_configurations.each do |config|
|
||||
|
||||
|
||||
if target.name == 'ZcashLightClientKit'
|
||||
config.build_settings['ZCASH_NETWORK_ENVIRONMENT'] = ENV["ZCASH_NETWORK_ENVIRONMENT"]
|
||||
end
|
||||
config.build_settings['ENABLE_BITCODE'] = 'NO'
|
||||
end
|
||||
end
|
||||
end
|
|
@ -0,0 +1,123 @@
|
|||
PODS:
|
||||
- CGRPCZlib (1.0.0-alpha.19)
|
||||
- CNIOAtomics (2.25.1)
|
||||
- CNIOBoringSSL (2.10.2)
|
||||
- CNIOBoringSSLShims (2.10.2):
|
||||
- CNIOBoringSSL (= 2.10.2)
|
||||
- CNIODarwin (2.25.1)
|
||||
- CNIOHTTPParser (2.25.1)
|
||||
- CNIOLinux (2.25.1)
|
||||
- CNIOSHA1 (2.25.1)
|
||||
- CNIOWindows (2.25.1)
|
||||
- gRPC-Swift (1.0.0-alpha.19):
|
||||
- CGRPCZlib (= 1.0.0-alpha.19)
|
||||
- Logging (< 2, >= 1.2.0)
|
||||
- SwiftNIO (< 3, >= 2.19.0)
|
||||
- SwiftNIOHTTP2 (< 2, >= 1.12.2)
|
||||
- SwiftNIOSSL (< 3, >= 2.8.0)
|
||||
- SwiftNIOTransportServices (< 2, >= 1.6.0)
|
||||
- SwiftProtobuf (< 2, >= 1.9.0)
|
||||
- Logging (1.4.0)
|
||||
- SQLite.swift (0.12.2):
|
||||
- SQLite.swift/standard (= 0.12.2)
|
||||
- SQLite.swift/standard (0.12.2)
|
||||
- SwiftNIO (2.25.1):
|
||||
- CNIOAtomics (= 2.25.1)
|
||||
- CNIODarwin (= 2.25.1)
|
||||
- CNIOLinux (= 2.25.1)
|
||||
- CNIOSHA1 (= 2.25.1)
|
||||
- CNIOWindows (= 2.25.1)
|
||||
- SwiftNIOConcurrencyHelpers (= 2.25.1)
|
||||
- SwiftNIOConcurrencyHelpers (2.25.1):
|
||||
- CNIOAtomics (= 2.25.1)
|
||||
- SwiftNIOFoundationCompat (2.25.1):
|
||||
- SwiftNIO (= 2.25.1)
|
||||
- SwiftNIOHPACK (1.16.2):
|
||||
- SwiftNIO (< 3, >= 2.18.0)
|
||||
- SwiftNIOConcurrencyHelpers (< 3, >= 2.18.0)
|
||||
- SwiftNIOHTTP1 (< 3, >= 2.18.0)
|
||||
- SwiftNIOHTTP1 (2.25.1):
|
||||
- CNIOHTTPParser (= 2.25.1)
|
||||
- SwiftNIO (= 2.25.1)
|
||||
- SwiftNIOConcurrencyHelpers (= 2.25.1)
|
||||
- SwiftNIOHTTP2 (1.16.2):
|
||||
- SwiftNIO (< 3, >= 2.18.0)
|
||||
- SwiftNIOConcurrencyHelpers (< 3, >= 2.18.0)
|
||||
- SwiftNIOHPACK (= 1.16.2)
|
||||
- SwiftNIOHTTP1 (< 3, >= 2.18.0)
|
||||
- SwiftNIOTLS (< 3, >= 2.18.0)
|
||||
- SwiftNIOSSL (2.10.2):
|
||||
- CNIOBoringSSL (= 2.10.2)
|
||||
- CNIOBoringSSLShims (= 2.10.2)
|
||||
- SwiftNIO (< 3, >= 2.15.0)
|
||||
- SwiftNIOConcurrencyHelpers (< 3, >= 2.15.0)
|
||||
- SwiftNIOTLS (< 3, >= 2.15.0)
|
||||
- SwiftNIOTLS (2.25.1):
|
||||
- SwiftNIO (= 2.25.1)
|
||||
- SwiftNIOTransportServices (1.9.1):
|
||||
- SwiftNIO (< 3, >= 2.19.0)
|
||||
- SwiftNIOConcurrencyHelpers (< 3, >= 2.19.0)
|
||||
- SwiftNIOFoundationCompat (< 3, >= 2.19.0)
|
||||
- SwiftNIOTLS (< 3, >= 2.19.0)
|
||||
- SwiftProtobuf (1.15.0)
|
||||
- ZcashLightClientKit (0.9.2):
|
||||
- gRPC-Swift (= 1.0.0-alpha.19)
|
||||
- SQLite.swift (~> 0.12.2)
|
||||
|
||||
DEPENDENCIES:
|
||||
- ZcashLightClientKit
|
||||
|
||||
SPEC REPOS:
|
||||
trunk:
|
||||
- CGRPCZlib
|
||||
- CNIOAtomics
|
||||
- CNIOBoringSSL
|
||||
- CNIOBoringSSLShims
|
||||
- CNIODarwin
|
||||
- CNIOHTTPParser
|
||||
- CNIOLinux
|
||||
- CNIOSHA1
|
||||
- CNIOWindows
|
||||
- gRPC-Swift
|
||||
- Logging
|
||||
- SQLite.swift
|
||||
- SwiftNIO
|
||||
- SwiftNIOConcurrencyHelpers
|
||||
- SwiftNIOFoundationCompat
|
||||
- SwiftNIOHPACK
|
||||
- SwiftNIOHTTP1
|
||||
- SwiftNIOHTTP2
|
||||
- SwiftNIOSSL
|
||||
- SwiftNIOTLS
|
||||
- SwiftNIOTransportServices
|
||||
- SwiftProtobuf
|
||||
- ZcashLightClientKit
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
CGRPCZlib: befd9b92013c647f18aa9b7d9e9231d52e1ced1b
|
||||
CNIOAtomics: 2ae668942b9e7ac71e0fe286d11ac9b4fe329024
|
||||
CNIOBoringSSL: 3d59b923c8ec524308685664ae6388179c678ac7
|
||||
CNIOBoringSSLShims: 18b267690ba0d57b22e4e69dff2904a6b1d030b8
|
||||
CNIODarwin: 3874630a0e3506c3e86f272ad436103d27055831
|
||||
CNIOHTTPParser: 976fcf22759946c80ff74c8a2926728d88954a83
|
||||
CNIOLinux: e6394d7fd56d36ff43ada5796e9d96c14fcb3546
|
||||
CNIOSHA1: 43c4a0cfdea5e8be20927d9d2237ebe4233071f8
|
||||
CNIOWindows: 89048520e4a1484bcd5e20c252edf4089913aa7d
|
||||
gRPC-Swift: 75a7a8d7cd08177165ef971159afb84e5130cfc9
|
||||
Logging: beeb016c9c80cf77042d62e83495816847ef108b
|
||||
SQLite.swift: d2b4642190917051ce6bd1d49aab565fe794eea3
|
||||
SwiftNIO: 3f9a197581f6dfebf65a5c85099f25197d892c8c
|
||||
SwiftNIOConcurrencyHelpers: 3670690a0fb8d8a0a4759804d07aaf89c9599839
|
||||
SwiftNIOFoundationCompat: 707c223452d1606e1619c2309f089aeadbf2943e
|
||||
SwiftNIOHPACK: a86298d347455478dcc0d0178b80bbbd38bdf299
|
||||
SwiftNIOHTTP1: 566744e4a9b4425009b59dce9ed962591052b0d0
|
||||
SwiftNIOHTTP2: 474925ac2ebabc5899892f7cafc0323eceb67f8c
|
||||
SwiftNIOSSL: 39756339a7425d68b48f00c0f9a9e068b8f536d0
|
||||
SwiftNIOTLS: 434418842a6bebc21864ec84229e5e3d2762ca0b
|
||||
SwiftNIOTransportServices: a8a17a43695a09bfdd5a56426f6e515120d5dbf3
|
||||
SwiftProtobuf: 3320217e9d8fb75f36b40282e78c482640fd75dd
|
||||
ZcashLightClientKit: 56d5c41ecf19d290a2aa25437775f11285edb4fe
|
||||
|
||||
PODFILE CHECKSUM: 39abcdbfeeed27079a3b490f92dba01a275172a7
|
||||
|
||||
COCOAPODS: 1.10.1
|
|
@ -11,6 +11,7 @@
|
|||
0D5050AA25DFEFAC00E7A697 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 0D5050A925DFEFAC00E7A697 /* ContentView.swift */; };
|
||||
0D5050AC25DFEFAD00E7A697 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0D5050AB25DFEFAD00E7A697 /* Assets.xcassets */; };
|
||||
0D5050AF25DFEFAD00E7A697 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0D5050AE25DFEFAD00E7A697 /* Preview Assets.xcassets */; };
|
||||
1FCF89290175BCB5B4795603 /* Pods_accept_zcash_poc.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A9B0B872B1F28DA0FADC9000 /* Pods_accept_zcash_poc.framework */; };
|
||||
/* End PBXBuildFile section */
|
||||
|
||||
/* Begin PBXFileReference section */
|
||||
|
@ -20,6 +21,9 @@
|
|||
0D5050AB25DFEFAD00E7A697 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
|
||||
0D5050AE25DFEFAD00E7A697 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
|
||||
0D5050B025DFEFAD00E7A697 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
|
||||
0FD4623E3E250BAFE9075C30 /* Pods-accept-zcash-poc.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-accept-zcash-poc.debug.xcconfig"; path = "Target Support Files/Pods-accept-zcash-poc/Pods-accept-zcash-poc.debug.xcconfig"; sourceTree = "<group>"; };
|
||||
A9B0B872B1F28DA0FADC9000 /* Pods_accept_zcash_poc.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = Pods_accept_zcash_poc.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
||||
FECC11505DE199A21B303C13 /* Pods-accept-zcash-poc.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-accept-zcash-poc.release.xcconfig"; path = "Target Support Files/Pods-accept-zcash-poc/Pods-accept-zcash-poc.release.xcconfig"; sourceTree = "<group>"; };
|
||||
/* End PBXFileReference section */
|
||||
|
||||
/* Begin PBXFrameworksBuildPhase section */
|
||||
|
@ -27,6 +31,7 @@
|
|||
isa = PBXFrameworksBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
1FCF89290175BCB5B4795603 /* Pods_accept_zcash_poc.framework in Frameworks */,
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
};
|
||||
|
@ -38,6 +43,8 @@
|
|||
children = (
|
||||
0D5050A625DFEFAC00E7A697 /* accept-zcash-poc */,
|
||||
0D5050A525DFEFAC00E7A697 /* Products */,
|
||||
7099E12D9E83649407943BB2 /* Pods */,
|
||||
B760925D1487D7EAEF2882A1 /* Frameworks */,
|
||||
);
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
|
@ -69,6 +76,24 @@
|
|||
path = "Preview Content";
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
7099E12D9E83649407943BB2 /* Pods */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
0FD4623E3E250BAFE9075C30 /* Pods-accept-zcash-poc.debug.xcconfig */,
|
||||
FECC11505DE199A21B303C13 /* Pods-accept-zcash-poc.release.xcconfig */,
|
||||
);
|
||||
name = Pods;
|
||||
path = Pods;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
B760925D1487D7EAEF2882A1 /* Frameworks */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
A9B0B872B1F28DA0FADC9000 /* Pods_accept_zcash_poc.framework */,
|
||||
);
|
||||
name = Frameworks;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
/* End PBXGroup section */
|
||||
|
||||
/* Begin PBXNativeTarget section */
|
||||
|
@ -76,9 +101,11 @@
|
|||
isa = PBXNativeTarget;
|
||||
buildConfigurationList = 0D5050B325DFEFAD00E7A697 /* Build configuration list for PBXNativeTarget "accept-zcash-poc" */;
|
||||
buildPhases = (
|
||||
953BB6CCE4A4EDC8A5C9C843 /* [CP] Check Pods Manifest.lock */,
|
||||
0D5050A025DFEFAC00E7A697 /* Sources */,
|
||||
0D5050A125DFEFAC00E7A697 /* Frameworks */,
|
||||
0D5050A225DFEFAC00E7A697 /* Resources */,
|
||||
FDBDCD88D0DB70C7E0E3CDDB /* [CP] Embed Pods Frameworks */,
|
||||
);
|
||||
buildRules = (
|
||||
);
|
||||
|
@ -133,6 +160,48 @@
|
|||
};
|
||||
/* End PBXResourcesBuildPhase section */
|
||||
|
||||
/* Begin PBXShellScriptBuildPhase section */
|
||||
953BB6CCE4A4EDC8A5C9C843 /* [CP] Check Pods Manifest.lock */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
);
|
||||
inputPaths = (
|
||||
"${PODS_PODFILE_DIR_PATH}/Podfile.lock",
|
||||
"${PODS_ROOT}/Manifest.lock",
|
||||
);
|
||||
name = "[CP] Check Pods Manifest.lock";
|
||||
outputFileListPaths = (
|
||||
);
|
||||
outputPaths = (
|
||||
"$(DERIVED_FILE_DIR)/Pods-accept-zcash-poc-checkManifestLockResult.txt",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "diff \"${PODS_PODFILE_DIR_PATH}/Podfile.lock\" \"${PODS_ROOT}/Manifest.lock\" > /dev/null\nif [ $? != 0 ] ; then\n # print error to STDERR\n echo \"error: The sandbox is not in sync with the Podfile.lock. Run 'pod install' or update your CocoaPods installation.\" >&2\n exit 1\nfi\n# This output is used by Xcode 'outputs' to avoid re-running this script phase.\necho \"SUCCESS\" > \"${SCRIPT_OUTPUT_FILE_0}\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
FDBDCD88D0DB70C7E0E3CDDB /* [CP] Embed Pods Frameworks */ = {
|
||||
isa = PBXShellScriptBuildPhase;
|
||||
buildActionMask = 2147483647;
|
||||
files = (
|
||||
);
|
||||
inputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-accept-zcash-poc/Pods-accept-zcash-poc-frameworks-${CONFIGURATION}-input-files.xcfilelist",
|
||||
);
|
||||
name = "[CP] Embed Pods Frameworks";
|
||||
outputFileListPaths = (
|
||||
"${PODS_ROOT}/Target Support Files/Pods-accept-zcash-poc/Pods-accept-zcash-poc-frameworks-${CONFIGURATION}-output-files.xcfilelist",
|
||||
);
|
||||
runOnlyForDeploymentPostprocessing = 0;
|
||||
shellPath = /bin/sh;
|
||||
shellScript = "\"${PODS_ROOT}/Target Support Files/Pods-accept-zcash-poc/Pods-accept-zcash-poc-frameworks.sh\"\n";
|
||||
showEnvVarsInLog = 0;
|
||||
};
|
||||
/* End PBXShellScriptBuildPhase section */
|
||||
|
||||
/* Begin PBXSourcesBuildPhase section */
|
||||
0D5050A025DFEFAC00E7A697 /* Sources */ = {
|
||||
isa = PBXSourcesBuildPhase;
|
||||
|
@ -264,6 +333,7 @@
|
|||
};
|
||||
0D5050B425DFEFAD00E7A697 /* Debug */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = 0FD4623E3E250BAFE9075C30 /* Pods-accept-zcash-poc.debug.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||
|
@ -286,6 +356,7 @@
|
|||
};
|
||||
0D5050B525DFEFAD00E7A697 /* Release */ = {
|
||||
isa = XCBuildConfiguration;
|
||||
baseConfigurationReference = FECC11505DE199A21B303C13 /* Pods-accept-zcash-poc.release.xcconfig */;
|
||||
buildSettings = {
|
||||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
|
||||
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
|
||||
|
|
Binary file not shown.
|
@ -7,7 +7,7 @@
|
|||
<key>accept-zcash-poc.xcscheme_^#shared#^_</key>
|
||||
<dict>
|
||||
<key>orderHint</key>
|
||||
<integer>0</integer>
|
||||
<integer>24</integer>
|
||||
</dict>
|
||||
</dict>
|
||||
</dict>
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "group:accept-zcash-poc.xcodeproj">
|
||||
</FileRef>
|
||||
<FileRef
|
||||
location = "group:Pods/Pods.xcodeproj">
|
||||
</FileRef>
|
||||
</Workspace>
|
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
|
@ -6,10 +6,10 @@
|
|||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
import ZcashLightClientKit
|
||||
struct ContentView: View {
|
||||
var body: some View {
|
||||
Text("Hello, world!")
|
||||
Text("Hello, Zcash \(ZcashSDK.isMainnet ? "MainNet" : "TestNet")")
|
||||
.padding()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue