add blockies directly

This commit is contained in:
ivan grachev 2023-10-27 21:27:27 +03:00
parent aef6f88a13
commit 685e352a68
47 changed files with 2630 additions and 3451 deletions

View File

@ -2,7 +2,6 @@ inhibit_all_warnings!
use_frameworks!
def shared_pods
pod 'BlockiesSwift'
pod 'Kingfisher'
pod 'TrustWalletCore'
pod 'BigInt'

View File

@ -1,6 +1,5 @@
PODS:
- BigInt (5.2.0)
- BlockiesSwift (0.1.2)
- Kingfisher (7.9.1)
- SwiftProtobuf (1.24.0)
- TrustWalletCore (4.0.1):
@ -12,25 +11,22 @@ PODS:
DEPENDENCIES:
- BigInt
- BlockiesSwift
- Kingfisher
- TrustWalletCore
SPEC REPOS:
trunk:
- BigInt
- BlockiesSwift
- Kingfisher
- SwiftProtobuf
- TrustWalletCore
SPEC CHECKSUMS:
BigInt: f668a80089607f521586bbe29513d708491ef2f7
BlockiesSwift: 22d8d56dd187e6bfd16cb8c8fbd4fd4896c3e65d
Kingfisher: 1d14e9f59cbe19389f591c929000332bf70efd32
SwiftProtobuf: bcfd2bc231cf9ae552cdc7c4e877bd3b41fe57b1
TrustWalletCore: 77c78bda1d1a411390321b7d9f7b81bd1d547b71
PODFILE CHECKSUM: 80600e3a469003bb39f77a8b610658742fa669da
PODFILE CHECKSUM: 63ae34d7b530436a1a7d72f33a0171a22f73d4ad
COCOAPODS: 1.13.0

View File

@ -1,67 +0,0 @@
//
// Color+HSL.swift
// BlockiesSwift
//
// Created by Koray Koska on 22.12.17.
//
#if os(iOS) || os(tvOS) || os(watchOS)
import UIKit
#elseif os(OSX)
import AppKit
#endif
#if os(iOS) || os(tvOS) || os(watchOS)
typealias Color = UIColor
#elseif os(OSX)
typealias Color = NSColor
#endif
extension Color {
/**
* Initializes Color with the given HSL color values.
*
* H must be bigger than 0 and smaller than 360.
*
* S must be between 0 and 1.
*
* L must be between 0 and 1.
*
* - parameter h: The h value.
* - parameter s: The s value.
* - parameter l: The l value.
*/
convenience init?(h: Double, s: Double, l: Double) {
let c = (1 - abs(2 * l - 1)) * s
let x = c * (1 - abs((h / 60).truncatingRemainder(dividingBy: 2) - 1))
let m = l - (c / 2)
let (tmpR, tmpG, tmpB): (Double, Double, Double)
if 0 <= h && h < 60 {
(tmpR, tmpG, tmpB) = (c, x, 0)
} else if 60 <= h && h < 120 {
(tmpR, tmpG, tmpB) = (x, c, 0)
} else if 120 <= h && h < 180 {
(tmpR, tmpG, tmpB) = (0, c, x)
} else if 180 <= h && h < 240 {
(tmpR, tmpG, tmpB) = (0, x, c)
} else if 240 <= h && h < 300 {
(tmpR, tmpG, tmpB) = (x, 0, c)
} else if 300 <= h && h < 360 {
(tmpR, tmpG, tmpB) = (c, 0, x)
} else {
return nil
}
let r = (tmpR + m)
let g = (tmpG + m)
let b = (tmpB + m)
self.init(red: CGFloat(r), green: CGFloat(g), blue: CGFloat(b), alpha: 1)
}
static func fromHSL(h: Double, s: Double, l: Double) -> Color? {
return Color(h: h, s: s, l: l)
}
}

View File

@ -1,21 +0,0 @@
The MIT License (MIT)
Copyright (c) 2017 Boilertalk
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

View File

@ -1,119 +0,0 @@
<a href="https://github.com/Boilertalk/VaporFacebookBot">
<img src="https://storage.googleapis.com/boilertalk/logo.svg" width="100%" height="256">
</a>
<p align="center">
<a href="https://travis-ci.org/Boilertalk/BlockiesSwift">
<img src="http://img.shields.io/travis/Boilertalk/BlockiesSwift.svg?style=flat" alt="CI Status">
</a>
<a href="http://cocoapods.org/pods/BlockiesSwift">
<img src="https://img.shields.io/cocoapods/v/BlockiesSwift.svg?style=flat" alt="Version">
</a>
<a href="http://cocoapods.org/pods/BlockiesSwift">
<img src="https://img.shields.io/cocoapods/l/BlockiesSwift.svg?style=flat" alt="License">
</a>
<a href="http://cocoapods.org/pods/BlockiesSwift">
<img src="https://img.shields.io/cocoapods/p/BlockiesSwift.svg?style=flat" alt="Platform">
</a>
<a href="https://github.com/Carthage/Carthage">
<img src="https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat" alt="Carthage compatible">
</a>
</p>
# :alembic: BlockiesSwift
<p align="center">
<img src="https://github.com/Boilertalk/BlockiesSwift/raw/master/sample.png" alt="Sample Blockies">
</p>
This library is a Swift implementation of the [Ethereum fork of Blockies](https://github.com/ethereum/blockies) which is intended to be used in iOS, watchOS, tvOS and macOS apps.
Blockies generates unique images (identicons) for a given seed string. Those can be used to create images representing an Ethereum (or other Cryptocurrency) Wallet address or really anything else.
## Example
To run the example project, run `pod try BlockiesSwift`. Or clone the repo, and run `pod install` from the Example directory.
## Installation
### CocoaPods
BlockiesSwift is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your `Podfile`:
```ruby
pod 'BlockiesSwift'
```
### Carthage
BlockiesSwift is compatible with [Carthage](https://github.com/Carthage/Carthage), a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To install it, simply add the following line to your `Cartfile`:
```
github "Boilertalk/BlockiesSwift"
```
## Usage
Basic usage is very straight forward. You just create an instance of `Blockies` with your seed and call `createImage()` to get your image.
```Swift
import BlockiesSwift
let blockies = Blockies(seed: "0x869bb8979d38a8bc07b619f9d6a0756199e2c724")
let img = blockies.createImage()
yourImageView.image = img
```
This will generate an image with `size` set to 8 and `scale` set to 4. `size` is the width and height of the Blockies image in blocks, `scale` is the width and height of one block in pixels.
Per default, random colors are generated for the given seed. You can change that but keep in mind that the pattern will also change if you provide custom colors as there will be less calls to the internal `random()` function.
The following is a full example.
```Swift
import BlockiesSwift
let blockies = Blockies(
seed: "0x869bb8979d38a8bc07b619f9d6a0756199e2c724",
size: 5,
scale: 10,
color: UIColor.green,
bgColor: UIColor.gray,
spotColor: UIColor.orange
)
let img = blockies.createImage()
yourImageView.image = img
```
The following sizes work well for most cases.
* size: 8, scale: 3
* size: 5, scale: 10
Sizes above 10 generate more noisy structures. If you want to generate bigger images, you can go for a set of `size` and `scale` from the above and pass a `customScale` value to `createImage(_:)`.
```Swift
import BlockiesSwift
let blockies = Blockies(
seed: "0x869bb8979d38a8bc07b619f9d6a0756199e2c724",
size: 8,
scale: 3
)
let img = blockies.createImage(customScale: 10)
yourImageView.image = img
```
The image in this example would be `8 * 3 = 24x24` pixels without a custom scale. With the `customScale` set to `10` it will be `8 * 3 * 10 = 240x240` pixels. The `customScale` lets you generate bigger images with the same structure quality as the smaller ones.
## Author
Koray Koska, koray@koska.at
## License
BlockiesSwift is available under the MIT license. See the LICENSE file for more info.

6
Pods/Manifest.lock generated
View File

@ -1,6 +1,5 @@
PODS:
- BigInt (5.2.0)
- BlockiesSwift (0.1.2)
- Kingfisher (7.9.1)
- SwiftProtobuf (1.24.0)
- TrustWalletCore (4.0.1):
@ -12,25 +11,22 @@ PODS:
DEPENDENCIES:
- BigInt
- BlockiesSwift
- Kingfisher
- TrustWalletCore
SPEC REPOS:
trunk:
- BigInt
- BlockiesSwift
- Kingfisher
- SwiftProtobuf
- TrustWalletCore
SPEC CHECKSUMS:
BigInt: f668a80089607f521586bbe29513d708491ef2f7
BlockiesSwift: 22d8d56dd187e6bfd16cb8c8fbd4fd4896c3e65d
Kingfisher: 1d14e9f59cbe19389f591c929000332bf70efd32
SwiftProtobuf: bcfd2bc231cf9ae552cdc7c4e877bd3b41fe57b1
TrustWalletCore: 77c78bda1d1a411390321b7d9f7b81bd1d547b71
PODFILE CHECKSUM: 80600e3a469003bb39f77a8b610658742fa669da
PODFILE CHECKSUM: 63ae34d7b530436a1a7d72f33a0171a22f73d4ad
COCOAPODS: 1.13.0

File diff suppressed because it is too large Load Diff

View File

@ -1,26 +0,0 @@
<?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>CFBundleDevelopmentRegion</key>
<string>${PODS_DEVELOPMENT_LANGUAGE}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.1.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${CURRENT_PROJECT_VERSION}</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>

View File

@ -1,5 +0,0 @@
#import <Foundation/Foundation.h>
@interface PodsDummy_BlockiesSwift_iOS : NSObject
@end
@implementation PodsDummy_BlockiesSwift_iOS
@end

View File

@ -1,12 +0,0 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif

View File

@ -1,16 +0,0 @@
#ifdef __OBJC__
#import <UIKit/UIKit.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double BlockiesSwiftVersionNumber;
FOUNDATION_EXPORT const unsigned char BlockiesSwiftVersionString[];

View File

@ -1,14 +0,0 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO
CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-iOS
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
LIBRARY_SEARCH_PATHS = $(inherited) "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift
OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -suppress-warnings
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE}
PODS_ROOT = ${SRCROOT}
PODS_TARGET_SRCROOT = ${PODS_ROOT}/BlockiesSwift
PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates
PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
SKIP_INSTALL = YES
USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES

View File

@ -1,6 +0,0 @@
framework module BlockiesSwift {
umbrella header "BlockiesSwift-iOS-umbrella.h"
export *
module * { export * }
}

View File

@ -1,14 +0,0 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO
CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-iOS
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
LIBRARY_SEARCH_PATHS = $(inherited) "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift
OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -suppress-warnings
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE}
PODS_ROOT = ${SRCROOT}
PODS_TARGET_SRCROOT = ${PODS_ROOT}/BlockiesSwift
PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates
PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
SKIP_INSTALL = YES
USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES

View File

@ -1,26 +0,0 @@
<?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>CFBundleDevelopmentRegion</key>
<string>${PODS_DEVELOPMENT_LANGUAGE}</string>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIdentifier</key>
<string>${PRODUCT_BUNDLE_IDENTIFIER}</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>FMWK</string>
<key>CFBundleShortVersionString</key>
<string>0.1.2</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>${CURRENT_PROJECT_VERSION}</string>
<key>NSPrincipalClass</key>
<string></string>
</dict>
</plist>

View File

@ -1,5 +0,0 @@
#import <Foundation/Foundation.h>
@interface PodsDummy_BlockiesSwift_macOS : NSObject
@end
@implementation PodsDummy_BlockiesSwift_macOS
@end

View File

@ -1,12 +0,0 @@
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif

View File

@ -1,16 +0,0 @@
#ifdef __OBJC__
#import <Cocoa/Cocoa.h>
#else
#ifndef FOUNDATION_EXPORT
#if defined(__cplusplus)
#define FOUNDATION_EXPORT extern "C"
#else
#define FOUNDATION_EXPORT extern
#endif
#endif
#endif
FOUNDATION_EXPORT double BlockiesSwiftVersionNumber;
FOUNDATION_EXPORT const unsigned char BlockiesSwiftVersionString[];

View File

@ -1,15 +0,0 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO
CODE_SIGN_IDENTITY =
CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-macOS
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
LIBRARY_SEARCH_PATHS = $(inherited) "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift
OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -suppress-warnings
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE}
PODS_ROOT = ${SRCROOT}
PODS_TARGET_SRCROOT = ${PODS_ROOT}/BlockiesSwift
PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates
PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
SKIP_INSTALL = YES
USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES

View File

@ -1,6 +0,0 @@
framework module BlockiesSwift {
umbrella header "BlockiesSwift-macOS-umbrella.h"
export *
module * { export * }
}

View File

@ -1,15 +0,0 @@
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO
CODE_SIGN_IDENTITY =
CONFIGURATION_BUILD_DIR = ${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-macOS
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
LIBRARY_SEARCH_PATHS = $(inherited) "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift
OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS -suppress-warnings
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)
PODS_DEVELOPMENT_LANGUAGE = ${DEVELOPMENT_LANGUAGE}
PODS_ROOT = ${SRCROOT}
PODS_TARGET_SRCROOT = ${PODS_ROOT}/BlockiesSwift
PODS_XCFRAMEWORKS_BUILD_DIR = $(PODS_CONFIGURATION_BUILD_DIR)/XCFrameworkIntermediates
PRODUCT_BUNDLE_IDENTIFIER = org.cocoapods.${PRODUCT_NAME:rfc1034identifier}
SKIP_INSTALL = YES
USE_RECURSIVE_SCRIPT_INPUTS_IN_SCRIPT_PHASES = YES

View File

@ -25,31 +25,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
## BlockiesSwift
The MIT License (MIT)
Copyright (c) 2017 Boilertalk
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
## Kingfisher
The MIT License (MIT)

View File

@ -46,37 +46,6 @@ SOFTWARE.
<key>FooterText</key>
<string>The MIT License (MIT)
Copyright (c) 2017 Boilertalk
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
</string>
<key>License</key>
<string>MIT</string>
<key>Title</key>
<string>BlockiesSwift</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>The MIT License (MIT)
Copyright (c) 2019 Wei Wang
Permission is hereby granted, free of charge, to any person obtaining a copy

View File

@ -1,6 +1,5 @@
${PODS_ROOT}/Target Support Files/Pods-Tokenary iOS/Pods-Tokenary iOS-frameworks.sh
${BUILT_PRODUCTS_DIR}/BigInt-iOS/BigInt.framework
${BUILT_PRODUCTS_DIR}/BlockiesSwift-iOS/BlockiesSwift.framework
${BUILT_PRODUCTS_DIR}/Kingfisher-iOS/Kingfisher.framework
${BUILT_PRODUCTS_DIR}/SwiftProtobuf-iOS/SwiftProtobuf.framework
${BUILT_PRODUCTS_DIR}/TrustWalletCore-iOS/WalletCore.framework

View File

@ -1,5 +1,4 @@
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BigInt.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BlockiesSwift.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Kingfisher.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftProtobuf.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WalletCore.framework

View File

@ -1,6 +1,5 @@
${PODS_ROOT}/Target Support Files/Pods-Tokenary iOS/Pods-Tokenary iOS-frameworks.sh
${BUILT_PRODUCTS_DIR}/BigInt-iOS/BigInt.framework
${BUILT_PRODUCTS_DIR}/BlockiesSwift-iOS/BlockiesSwift.framework
${BUILT_PRODUCTS_DIR}/Kingfisher-iOS/Kingfisher.framework
${BUILT_PRODUCTS_DIR}/SwiftProtobuf-iOS/SwiftProtobuf.framework
${BUILT_PRODUCTS_DIR}/TrustWalletCore-iOS/WalletCore.framework

View File

@ -1,5 +1,4 @@
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BigInt.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BlockiesSwift.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Kingfisher.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftProtobuf.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WalletCore.framework

View File

@ -177,14 +177,12 @@ code_sign_if_enabled() {
if [[ "$CONFIGURATION" == "Debug" ]]; then
install_framework "${BUILT_PRODUCTS_DIR}/BigInt-iOS/BigInt.framework"
install_framework "${BUILT_PRODUCTS_DIR}/BlockiesSwift-iOS/BlockiesSwift.framework"
install_framework "${BUILT_PRODUCTS_DIR}/Kingfisher-iOS/Kingfisher.framework"
install_framework "${BUILT_PRODUCTS_DIR}/SwiftProtobuf-iOS/SwiftProtobuf.framework"
install_framework "${BUILT_PRODUCTS_DIR}/TrustWalletCore-iOS/WalletCore.framework"
fi
if [[ "$CONFIGURATION" == "Release" ]]; then
install_framework "${BUILT_PRODUCTS_DIR}/BigInt-iOS/BigInt.framework"
install_framework "${BUILT_PRODUCTS_DIR}/BlockiesSwift-iOS/BlockiesSwift.framework"
install_framework "${BUILT_PRODUCTS_DIR}/Kingfisher-iOS/Kingfisher.framework"
install_framework "${BUILT_PRODUCTS_DIR}/SwiftProtobuf-iOS/SwiftProtobuf.framework"
install_framework "${BUILT_PRODUCTS_DIR}/TrustWalletCore-iOS/WalletCore.framework"

View File

@ -1,12 +1,12 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS" "${PODS_ROOT}/TrustWalletCore" "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core"
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS" "${PODS_ROOT}/TrustWalletCore" "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS/BigInt.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-iOS/BlockiesSwift.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS/Kingfisher.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS/SwiftProtobuf.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS/WalletCore.framework/Headers"
HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS/BigInt.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS/Kingfisher.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS/SwiftProtobuf.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS/WalletCore.framework/Headers"
LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/Frameworks' '@loader_path/Frameworks'
LIBRARY_SEARCH_PATHS = $(inherited) "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift
OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS/BigInt.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-iOS/BlockiesSwift.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS/Kingfisher.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS/SwiftProtobuf.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS/WalletCore.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-iOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS" -iframework "${PODS_ROOT}/TrustWalletCore" -iframework "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS"
OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "Accelerate" -framework "BigInt" -framework "BlockiesSwift" -framework "CFNetwork" -framework "Kingfisher" -framework "SwiftProtobuf" -framework "WalletCore" -weak_framework "Combine" -weak_framework "SwiftUI"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS/BigInt.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS/Kingfisher.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS/SwiftProtobuf.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS/WalletCore.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS" -iframework "${PODS_ROOT}/TrustWalletCore" -iframework "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS"
OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "Accelerate" -framework "BigInt" -framework "CFNetwork" -framework "Kingfisher" -framework "SwiftProtobuf" -framework "WalletCore" -weak_framework "Combine" -weak_framework "SwiftUI"
OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

View File

@ -1,12 +1,12 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS" "${PODS_ROOT}/TrustWalletCore" "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core"
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS" "${PODS_ROOT}/TrustWalletCore" "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS/BigInt.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-iOS/BlockiesSwift.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS/Kingfisher.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS/SwiftProtobuf.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS/WalletCore.framework/Headers"
HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS/BigInt.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS/Kingfisher.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS/SwiftProtobuf.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS/WalletCore.framework/Headers"
LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/Frameworks' '@loader_path/Frameworks'
LIBRARY_SEARCH_PATHS = $(inherited) "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift
OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS/BigInt.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-iOS/BlockiesSwift.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS/Kingfisher.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS/SwiftProtobuf.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS/WalletCore.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-iOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS" -iframework "${PODS_ROOT}/TrustWalletCore" -iframework "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS"
OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "Accelerate" -framework "BigInt" -framework "BlockiesSwift" -framework "CFNetwork" -framework "Kingfisher" -framework "SwiftProtobuf" -framework "WalletCore" -weak_framework "Combine" -weak_framework "SwiftUI"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS/BigInt.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS/Kingfisher.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS/SwiftProtobuf.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS/WalletCore.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-iOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-iOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-iOS" -iframework "${PODS_ROOT}/TrustWalletCore" -iframework "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-iOS"
OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "Accelerate" -framework "BigInt" -framework "CFNetwork" -framework "Kingfisher" -framework "SwiftProtobuf" -framework "WalletCore" -weak_framework "Combine" -weak_framework "SwiftUI"
OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

View File

@ -25,31 +25,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
## BlockiesSwift
The MIT License (MIT)
Copyright (c) 2017 Boilertalk
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
## Kingfisher
The MIT License (MIT)

View File

@ -46,37 +46,6 @@ SOFTWARE.
<key>FooterText</key>
<string>The MIT License (MIT)
Copyright (c) 2017 Boilertalk
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
</string>
<key>License</key>
<string>MIT</string>
<key>Title</key>
<string>BlockiesSwift</string>
<key>Type</key>
<string>PSGroupSpecifier</string>
</dict>
<dict>
<key>FooterText</key>
<string>The MIT License (MIT)
Copyright (c) 2019 Wei Wang
Permission is hereby granted, free of charge, to any person obtaining a copy

View File

@ -1,6 +1,5 @@
${PODS_ROOT}/Target Support Files/Pods-Tokenary/Pods-Tokenary-frameworks.sh
${BUILT_PRODUCTS_DIR}/BigInt-macOS/BigInt.framework
${BUILT_PRODUCTS_DIR}/BlockiesSwift-macOS/BlockiesSwift.framework
${BUILT_PRODUCTS_DIR}/Kingfisher-macOS/Kingfisher.framework
${BUILT_PRODUCTS_DIR}/SwiftProtobuf-macOS/SwiftProtobuf.framework
${BUILT_PRODUCTS_DIR}/TrustWalletCore-macOS/WalletCore.framework

View File

@ -1,5 +1,4 @@
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BigInt.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BlockiesSwift.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Kingfisher.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftProtobuf.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WalletCore.framework

View File

@ -1,6 +1,5 @@
${PODS_ROOT}/Target Support Files/Pods-Tokenary/Pods-Tokenary-frameworks.sh
${BUILT_PRODUCTS_DIR}/BigInt-macOS/BigInt.framework
${BUILT_PRODUCTS_DIR}/BlockiesSwift-macOS/BlockiesSwift.framework
${BUILT_PRODUCTS_DIR}/Kingfisher-macOS/Kingfisher.framework
${BUILT_PRODUCTS_DIR}/SwiftProtobuf-macOS/SwiftProtobuf.framework
${BUILT_PRODUCTS_DIR}/TrustWalletCore-macOS/WalletCore.framework

View File

@ -1,5 +1,4 @@
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BigInt.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/BlockiesSwift.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/Kingfisher.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/SwiftProtobuf.framework
${TARGET_BUILD_DIR}/${FRAMEWORKS_FOLDER_PATH}/WalletCore.framework

View File

@ -177,14 +177,12 @@ code_sign_if_enabled() {
if [[ "$CONFIGURATION" == "Debug" ]]; then
install_framework "${BUILT_PRODUCTS_DIR}/BigInt-macOS/BigInt.framework"
install_framework "${BUILT_PRODUCTS_DIR}/BlockiesSwift-macOS/BlockiesSwift.framework"
install_framework "${BUILT_PRODUCTS_DIR}/Kingfisher-macOS/Kingfisher.framework"
install_framework "${BUILT_PRODUCTS_DIR}/SwiftProtobuf-macOS/SwiftProtobuf.framework"
install_framework "${BUILT_PRODUCTS_DIR}/TrustWalletCore-macOS/WalletCore.framework"
fi
if [[ "$CONFIGURATION" == "Release" ]]; then
install_framework "${BUILT_PRODUCTS_DIR}/BigInt-macOS/BigInt.framework"
install_framework "${BUILT_PRODUCTS_DIR}/BlockiesSwift-macOS/BlockiesSwift.framework"
install_framework "${BUILT_PRODUCTS_DIR}/Kingfisher-macOS/Kingfisher.framework"
install_framework "${BUILT_PRODUCTS_DIR}/SwiftProtobuf-macOS/SwiftProtobuf.framework"
install_framework "${BUILT_PRODUCTS_DIR}/TrustWalletCore-macOS/WalletCore.framework"

View File

@ -1,12 +1,12 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS" "${PODS_ROOT}/TrustWalletCore" "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core"
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS" "${PODS_ROOT}/TrustWalletCore" "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS/BigInt.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-macOS/BlockiesSwift.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS/Kingfisher.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS/SwiftProtobuf.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS/WalletCore.framework/Headers"
HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS/BigInt.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS/Kingfisher.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS/SwiftProtobuf.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS/WalletCore.framework/Headers"
LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/../Frameworks' '@loader_path/Frameworks' "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
LIBRARY_SEARCH_PATHS = $(inherited) "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift
OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS/BigInt.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-macOS/BlockiesSwift.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS/Kingfisher.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS/SwiftProtobuf.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS/WalletCore.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-macOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS" -iframework "${PODS_ROOT}/TrustWalletCore" -iframework "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS"
OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "Accelerate" -framework "BigInt" -framework "BlockiesSwift" -framework "CFNetwork" -framework "Kingfisher" -framework "SwiftProtobuf" -framework "WalletCore" -weak_framework "Combine" -weak_framework "SwiftUI"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS/BigInt.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS/Kingfisher.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS/SwiftProtobuf.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS/WalletCore.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS" -iframework "${PODS_ROOT}/TrustWalletCore" -iframework "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS"
OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "Accelerate" -framework "BigInt" -framework "CFNetwork" -framework "Kingfisher" -framework "SwiftProtobuf" -framework "WalletCore" -weak_framework "Combine" -weak_framework "SwiftUI"
OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

View File

@ -1,12 +1,12 @@
ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES
CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = NO
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS" "${PODS_ROOT}/TrustWalletCore" "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core"
FRAMEWORK_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS" "${PODS_ROOT}/TrustWalletCore" "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core"
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) COCOAPODS=1
HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS/BigInt.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-macOS/BlockiesSwift.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS/Kingfisher.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS/SwiftProtobuf.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS/WalletCore.framework/Headers"
HEADER_SEARCH_PATHS = $(inherited) "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS/BigInt.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS/Kingfisher.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS/SwiftProtobuf.framework/Headers" "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS/WalletCore.framework/Headers"
LD_RUNPATH_SEARCH_PATHS = $(inherited) /usr/lib/swift '@executable_path/../Frameworks' '@loader_path/Frameworks' "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}"
LIBRARY_SEARCH_PATHS = $(inherited) "${TOOLCHAIN_DIR}/usr/lib/swift/${PLATFORM_NAME}" /usr/lib/swift
OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS/BigInt.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-macOS/BlockiesSwift.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS/Kingfisher.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS/SwiftProtobuf.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS/WalletCore.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/BlockiesSwift-macOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS" -iframework "${PODS_ROOT}/TrustWalletCore" -iframework "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS"
OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "Accelerate" -framework "BigInt" -framework "BlockiesSwift" -framework "CFNetwork" -framework "Kingfisher" -framework "SwiftProtobuf" -framework "WalletCore" -weak_framework "Combine" -weak_framework "SwiftUI"
OTHER_CFLAGS = $(inherited) -isystem "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS/BigInt.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS/Kingfisher.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS/SwiftProtobuf.framework/Headers" -isystem "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS/WalletCore.framework/Headers" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/BigInt-macOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/Kingfisher-macOS" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/SwiftProtobuf-macOS" -iframework "${PODS_ROOT}/TrustWalletCore" -iframework "${PODS_XCFRAMEWORKS_BUILD_DIR}/TrustWalletCore/Core" -iframework "${PODS_CONFIGURATION_BUILD_DIR}/TrustWalletCore-macOS"
OTHER_LDFLAGS = $(inherited) -ObjC -l"c++" -framework "Accelerate" -framework "BigInt" -framework "CFNetwork" -framework "Kingfisher" -framework "SwiftProtobuf" -framework "WalletCore" -weak_framework "Combine" -weak_framework "SwiftUI"
OTHER_SWIFT_FLAGS = $(inherited) -D COCOAPODS
PODS_BUILD_DIR = ${BUILD_DIR}
PODS_CONFIGURATION_BUILD_DIR = ${PODS_BUILD_DIR}/$(CONFIGURATION)$(EFFECTIVE_PLATFORM_NAME)

View File

@ -1,3 +1,5 @@
// https://github.com/Boilertalk/BlockiesSwift
//
// Blockies.swift
// BlockiesSwift
@ -11,7 +13,7 @@
import AppKit
#endif
public final class Blockies {
final class Blockies {
// MARK: - Properties
@ -204,7 +206,7 @@ public final class Blockies {
}
}
class BlockiesHelper {
private class BlockiesHelper {
/**
* Creates the initial version of the 4 UInt32 array for the given seed.
@ -228,7 +230,7 @@ class BlockiesHelper {
}
}
extension Double {
private extension Double {
/**
* Generates a random number between 0 and 1 with `arc4random()`.
@ -238,7 +240,7 @@ extension Double {
}
}
extension Character {
private extension Character {
/**
* Returns the value of the first 8 bits of this unicode character.
@ -252,3 +254,58 @@ extension Character {
}
}
}
#if os(iOS) || os(tvOS) || os(watchOS)
private typealias Color = UIColor
#elseif os(OSX)
private typealias Color = NSColor
#endif
private extension Color {
/**
* Initializes Color with the given HSL color values.
*
* H must be bigger than 0 and smaller than 360.
*
* S must be between 0 and 1.
*
* L must be between 0 and 1.
*
* - parameter h: The h value.
* - parameter s: The s value.
* - parameter l: The l value.
*/
convenience init?(h: Double, s: Double, l: Double) {
let c = (1 - abs(2 * l - 1)) * s
let x = c * (1 - abs((h / 60).truncatingRemainder(dividingBy: 2) - 1))
let m = l - (c / 2)
let (tmpR, tmpG, tmpB): (Double, Double, Double)
if 0 <= h && h < 60 {
(tmpR, tmpG, tmpB) = (c, x, 0)
} else if 60 <= h && h < 120 {
(tmpR, tmpG, tmpB) = (x, c, 0)
} else if 120 <= h && h < 180 {
(tmpR, tmpG, tmpB) = (0, c, x)
} else if 180 <= h && h < 240 {
(tmpR, tmpG, tmpB) = (0, x, c)
} else if 240 <= h && h < 300 {
(tmpR, tmpG, tmpB) = (x, 0, c)
} else if 300 <= h && h < 360 {
(tmpR, tmpG, tmpB) = (c, 0, x)
} else {
return nil
}
let r = (tmpR + m)
let g = (tmpG + m)
let b = (tmpB + m)
self.init(red: CGFloat(r), green: CGFloat(g), blue: CGFloat(b), alpha: 1)
}
static func fromHSL(h: Double, s: Double, l: Double) -> Color? {
return Color(h: h, s: s, l: l)
}
}

View File

@ -1,7 +1,6 @@
// Copyright © 2022 Tokenary. All rights reserved.
import WalletCore
import BlockiesSwift
extension Account {

View File

@ -1,7 +1,6 @@
// Copyright © 2021 Tokenary. All rights reserved.
import UIKit
import BlockiesSwift
enum DataState: CaseIterable {
case hasData, loading, failedToLoad, noData, unknown

View File

@ -1,7 +1,6 @@
// Copyright © 2021 Tokenary. All rights reserved.
import UIKit
import BlockiesSwift
protocol AccountTableViewCellDelegate: AnyObject {

View File

@ -1,7 +1,6 @@
// Copyright © 2021 Tokenary. All rights reserved.
import UIKit
import BlockiesSwift
import WalletCore
class ApproveTransactionViewController: UIViewController {

View File

@ -1,7 +1,6 @@
// Copyright © 2021 Tokenary. All rights reserved.
import UIKit
import BlockiesSwift
import WalletCore
class ApproveViewController: UIViewController {

View File

@ -1,7 +1,6 @@
// Copyright © 2021 Tokenary. All rights reserved.
import Cocoa
import BlockiesSwift
import WalletCore
class AccountCellView: NSTableRowView {

View File

@ -99,6 +99,8 @@
2C8944C62AEAFF97006A711F /* UInt.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C8944C42AEAFF97006A711F /* UInt.swift */; };
2C8944CB2AEB0C10006A711F /* EthereumRPC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C8944CA2AEB0C10006A711F /* EthereumRPC.swift */; };
2C8944CC2AEB0C10006A711F /* EthereumRPC.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C8944CA2AEB0C10006A711F /* EthereumRPC.swift */; };
2C8944CE2AEC34EB006A711F /* Blockies.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C8944CD2AEC34EB006A711F /* Blockies.swift */; };
2C8944CF2AEC34EB006A711F /* Blockies.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C8944CD2AEC34EB006A711F /* Blockies.swift */; };
2C89D26827BADCA9006C0C8D /* DappRequestAction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C89D26727BADCA9006C0C8D /* DappRequestAction.swift */; };
2C89D26927BADCA9006C0C8D /* DappRequestAction.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C89D26727BADCA9006C0C8D /* DappRequestAction.swift */; };
2C8A09C6267513FC00993638 /* Agent.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2C8A09C5267513FC00993638 /* Agent.swift */; };
@ -316,6 +318,7 @@
2C81556C2ADFC7C400F4559B /* popup.html */ = {isa = PBXFileReference; lastKnownFileType = text.html; path = popup.html; sourceTree = "<group>"; };
2C8944C42AEAFF97006A711F /* UInt.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UInt.swift; sourceTree = "<group>"; };
2C8944CA2AEB0C10006A711F /* EthereumRPC.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = EthereumRPC.swift; sourceTree = "<group>"; };
2C8944CD2AEC34EB006A711F /* Blockies.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Blockies.swift; sourceTree = "<group>"; };
2C89D26727BADCA9006C0C8D /* DappRequestAction.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DappRequestAction.swift; sourceTree = "<group>"; };
2C89D26A27BAF2A3006C0C8D /* yarn.lock */ = {isa = PBXFileReference; lastKnownFileType = text; name = yarn.lock; path = "web3-provider/yarn.lock"; sourceTree = "<group>"; };
2C89D26B27BAF2A3006C0C8D /* package-lock.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; name = "package-lock.json"; path = "web3-provider/package-lock.json"; sourceTree = "<group>"; };
@ -607,6 +610,14 @@
path = Views;
sourceTree = "<group>";
};
2C8944D02AEC34F2006A711F /* Utilities */ = {
isa = PBXGroup;
children = (
2C8944CD2AEC34EB006A711F /* Blockies.swift */,
);
path = Utilities;
sourceTree = "<group>";
};
2C8A09C2267513A700993638 /* Ethereum */ = {
isa = PBXGroup;
children = (
@ -739,8 +750,9 @@
2CF255A4275A483600AE54B9 /* Services */,
2CF2559F275A47B600AE54B9 /* Extension */,
2CD0668826B213BB00728C20 /* Wallets */,
2CF255AF275A490600AE54B9 /* Supporting Files */,
2CF25596275A468B00AE54B9 /* Models */,
2C8944D02AEC34F2006A711F /* Utilities */,
2CF255AF275A490600AE54B9 /* Supporting Files */,
);
path = Shared;
sourceTree = "<group>";
@ -1257,6 +1269,7 @@
2C264BDC27B5AC5400234393 /* EthereumResponseToExtension.swift in Sources */,
2C03D1D5269B428C00EF10EA /* Notification.swift in Sources */,
2C1995562674D0F300A8E370 /* Ethereum.swift in Sources */,
2C8944CE2AEC34EB006A711F /* Blockies.swift in Sources */,
2C8A09DF267579EA00993638 /* AccountsListViewController.swift in Sources */,
2C917429267D2A6E00049075 /* Keychain.swift in Sources */,
);
@ -1285,6 +1298,7 @@
2CF2559D275A479800AE54B9 /* TokenaryWallet.swift in Sources */,
2CC8C5B4276A96760083FB1B /* Haptic.swift in Sources */,
2CF255AB275A48CF00AE54B9 /* Ethereum.swift in Sources */,
2C8944CF2AEC34EB006A711F /* Blockies.swift in Sources */,
2CC8C5A22767D3B30083FB1B /* GasPriceSliderTableViewCell.swift in Sources */,
2C8944C62AEAFF97006A711F /* UInt.swift in Sources */,
2CC6EF0D275E64810040CC62 /* UIViewController.swift in Sources */,