-
Notifications
You must be signed in to change notification settings - Fork 446
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Alex Vlasov
committed
Dec 21, 2017
1 parent
8508c68
commit 84565e3
Showing
127 changed files
with
2,860 additions
and
9,861 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
platform :ios, '11.2' | ||
|
||
target 'web3swiftExample' do | ||
use_frameworks! | ||
# pod 'Alamofire', '~> 4.5' | ||
# pod 'BigInt', '~> 3.0.1' | ||
# pod 'PromiseKit', '~> 4.4' | ||
# pod 'AwaitKit', '~> 3.0.1' | ||
# pod 'PromiseKit/Alamofire', '~> 4.0' | ||
# pod 'CryptoSwift' | ||
# pod 'libsodium' | ||
# pod 'secp256k1_ios', '~> 0.0.6' | ||
pod 'web3swift', :git => 'https://github.com/bankex/web3swift.git' | ||
|
||
end |
327 changes: 327 additions & 0 deletions
327
Example/web3swiftExample/web3swiftExample.xcodeproj/project.pbxproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,327 @@ | ||
// !$*UTF8*$! | ||
{ | ||
archiveVersion = 1; | ||
classes = { | ||
}; | ||
objectVersion = 48; | ||
objects = { | ||
|
||
/* Begin PBXBuildFile section */ | ||
8161009A1FEC716200DE842E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 816100991FEC716200DE842E /* AppDelegate.swift */; }; | ||
8161009C1FEC716200DE842E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8161009B1FEC716200DE842E /* ViewController.swift */; }; | ||
8161009F1FEC716200DE842E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 8161009D1FEC716200DE842E /* Main.storyboard */; }; | ||
816100A11FEC716200DE842E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 816100A01FEC716200DE842E /* Assets.xcassets */; }; | ||
816100A41FEC716200DE842E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 816100A21FEC716200DE842E /* LaunchScreen.storyboard */; }; | ||
/* End PBXBuildFile section */ | ||
|
||
/* Begin PBXFileReference section */ | ||
816100961FEC716200DE842E /* web3swiftExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = web3swiftExample.app; sourceTree = BUILT_PRODUCTS_DIR; }; | ||
816100991FEC716200DE842E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; }; | ||
8161009B1FEC716200DE842E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; }; | ||
8161009E1FEC716200DE842E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; }; | ||
816100A01FEC716200DE842E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; }; | ||
816100A31FEC716200DE842E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; }; | ||
816100A51FEC716200DE842E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; }; | ||
/* End PBXFileReference section */ | ||
|
||
/* Begin PBXFrameworksBuildPhase section */ | ||
816100931FEC716200DE842E /* Frameworks */ = { | ||
isa = PBXFrameworksBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXFrameworksBuildPhase section */ | ||
|
||
/* Begin PBXGroup section */ | ||
8161008D1FEC716200DE842E = { | ||
isa = PBXGroup; | ||
children = ( | ||
816100981FEC716200DE842E /* web3swiftExample */, | ||
816100971FEC716200DE842E /* Products */, | ||
); | ||
sourceTree = "<group>"; | ||
}; | ||
816100971FEC716200DE842E /* Products */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
816100961FEC716200DE842E /* web3swiftExample.app */, | ||
); | ||
name = Products; | ||
sourceTree = "<group>"; | ||
}; | ||
816100981FEC716200DE842E /* web3swiftExample */ = { | ||
isa = PBXGroup; | ||
children = ( | ||
816100991FEC716200DE842E /* AppDelegate.swift */, | ||
8161009B1FEC716200DE842E /* ViewController.swift */, | ||
8161009D1FEC716200DE842E /* Main.storyboard */, | ||
816100A01FEC716200DE842E /* Assets.xcassets */, | ||
816100A21FEC716200DE842E /* LaunchScreen.storyboard */, | ||
816100A51FEC716200DE842E /* Info.plist */, | ||
); | ||
path = web3swiftExample; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXGroup section */ | ||
|
||
/* Begin PBXNativeTarget section */ | ||
816100951FEC716200DE842E /* web3swiftExample */ = { | ||
isa = PBXNativeTarget; | ||
buildConfigurationList = 816100A81FEC716200DE842E /* Build configuration list for PBXNativeTarget "web3swiftExample" */; | ||
buildPhases = ( | ||
816100921FEC716200DE842E /* Sources */, | ||
816100931FEC716200DE842E /* Frameworks */, | ||
816100941FEC716200DE842E /* Resources */, | ||
); | ||
buildRules = ( | ||
); | ||
dependencies = ( | ||
); | ||
name = web3swiftExample; | ||
productName = web3swiftExample; | ||
productReference = 816100961FEC716200DE842E /* web3swiftExample.app */; | ||
productType = "com.apple.product-type.application"; | ||
}; | ||
/* End PBXNativeTarget section */ | ||
|
||
/* Begin PBXProject section */ | ||
8161008E1FEC716200DE842E /* Project object */ = { | ||
isa = PBXProject; | ||
attributes = { | ||
LastSwiftUpdateCheck = 0920; | ||
LastUpgradeCheck = 0920; | ||
ORGANIZATIONNAME = "Alexander Vlasov"; | ||
TargetAttributes = { | ||
816100951FEC716200DE842E = { | ||
CreatedOnToolsVersion = 9.2; | ||
ProvisioningStyle = Automatic; | ||
}; | ||
}; | ||
}; | ||
buildConfigurationList = 816100911FEC716200DE842E /* Build configuration list for PBXProject "web3swiftExample" */; | ||
compatibilityVersion = "Xcode 8.0"; | ||
developmentRegion = en; | ||
hasScannedForEncodings = 0; | ||
knownRegions = ( | ||
en, | ||
Base, | ||
); | ||
mainGroup = 8161008D1FEC716200DE842E; | ||
productRefGroup = 816100971FEC716200DE842E /* Products */; | ||
projectDirPath = ""; | ||
projectRoot = ""; | ||
targets = ( | ||
816100951FEC716200DE842E /* web3swiftExample */, | ||
); | ||
}; | ||
/* End PBXProject section */ | ||
|
||
/* Begin PBXResourcesBuildPhase section */ | ||
816100941FEC716200DE842E /* Resources */ = { | ||
isa = PBXResourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
816100A41FEC716200DE842E /* LaunchScreen.storyboard in Resources */, | ||
816100A11FEC716200DE842E /* Assets.xcassets in Resources */, | ||
8161009F1FEC716200DE842E /* Main.storyboard in Resources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXResourcesBuildPhase section */ | ||
|
||
/* Begin PBXSourcesBuildPhase section */ | ||
816100921FEC716200DE842E /* Sources */ = { | ||
isa = PBXSourcesBuildPhase; | ||
buildActionMask = 2147483647; | ||
files = ( | ||
8161009C1FEC716200DE842E /* ViewController.swift in Sources */, | ||
8161009A1FEC716200DE842E /* AppDelegate.swift in Sources */, | ||
); | ||
runOnlyForDeploymentPostprocessing = 0; | ||
}; | ||
/* End PBXSourcesBuildPhase section */ | ||
|
||
/* Begin PBXVariantGroup section */ | ||
8161009D1FEC716200DE842E /* Main.storyboard */ = { | ||
isa = PBXVariantGroup; | ||
children = ( | ||
8161009E1FEC716200DE842E /* Base */, | ||
); | ||
name = Main.storyboard; | ||
sourceTree = "<group>"; | ||
}; | ||
816100A21FEC716200DE842E /* LaunchScreen.storyboard */ = { | ||
isa = PBXVariantGroup; | ||
children = ( | ||
816100A31FEC716200DE842E /* Base */, | ||
); | ||
name = LaunchScreen.storyboard; | ||
sourceTree = "<group>"; | ||
}; | ||
/* End PBXVariantGroup section */ | ||
|
||
/* Begin XCBuildConfiguration section */ | ||
816100A61FEC716200DE842E /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
CLANG_ANALYZER_NONNULL = YES; | ||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; | ||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; | ||
CLANG_CXX_LIBRARY = "libc++"; | ||
CLANG_ENABLE_MODULES = YES; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; | ||
CLANG_WARN_BOOL_CONVERSION = YES; | ||
CLANG_WARN_COMMA = YES; | ||
CLANG_WARN_CONSTANT_CONVERSION = YES; | ||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | ||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | ||
CLANG_WARN_EMPTY_BODY = YES; | ||
CLANG_WARN_ENUM_CONVERSION = YES; | ||
CLANG_WARN_INFINITE_RECURSION = YES; | ||
CLANG_WARN_INT_CONVERSION = YES; | ||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; | ||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; | ||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | ||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; | ||
CLANG_WARN_STRICT_PROTOTYPES = YES; | ||
CLANG_WARN_SUSPICIOUS_MOVE = YES; | ||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; | ||
CLANG_WARN_UNREACHABLE_CODE = YES; | ||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | ||
CODE_SIGN_IDENTITY = "iPhone Developer"; | ||
COPY_PHASE_STRIP = NO; | ||
DEBUG_INFORMATION_FORMAT = dwarf; | ||
ENABLE_STRICT_OBJC_MSGSEND = YES; | ||
ENABLE_TESTABILITY = YES; | ||
GCC_C_LANGUAGE_STANDARD = gnu11; | ||
GCC_DYNAMIC_NO_PIC = NO; | ||
GCC_NO_COMMON_BLOCKS = YES; | ||
GCC_OPTIMIZATION_LEVEL = 0; | ||
GCC_PREPROCESSOR_DEFINITIONS = ( | ||
"DEBUG=1", | ||
"$(inherited)", | ||
); | ||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | ||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | ||
GCC_WARN_UNDECLARED_SELECTOR = YES; | ||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||
GCC_WARN_UNUSED_FUNCTION = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 11.2; | ||
MTL_ENABLE_DEBUG_INFO = YES; | ||
ONLY_ACTIVE_ARCH = YES; | ||
SDKROOT = iphoneos; | ||
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; | ||
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; | ||
}; | ||
name = Debug; | ||
}; | ||
816100A71FEC716200DE842E /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ALWAYS_SEARCH_USER_PATHS = NO; | ||
CLANG_ANALYZER_NONNULL = YES; | ||
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; | ||
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; | ||
CLANG_CXX_LIBRARY = "libc++"; | ||
CLANG_ENABLE_MODULES = YES; | ||
CLANG_ENABLE_OBJC_ARC = YES; | ||
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; | ||
CLANG_WARN_BOOL_CONVERSION = YES; | ||
CLANG_WARN_COMMA = YES; | ||
CLANG_WARN_CONSTANT_CONVERSION = YES; | ||
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; | ||
CLANG_WARN_DOCUMENTATION_COMMENTS = YES; | ||
CLANG_WARN_EMPTY_BODY = YES; | ||
CLANG_WARN_ENUM_CONVERSION = YES; | ||
CLANG_WARN_INFINITE_RECURSION = YES; | ||
CLANG_WARN_INT_CONVERSION = YES; | ||
CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; | ||
CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; | ||
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; | ||
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; | ||
CLANG_WARN_STRICT_PROTOTYPES = YES; | ||
CLANG_WARN_SUSPICIOUS_MOVE = YES; | ||
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; | ||
CLANG_WARN_UNREACHABLE_CODE = YES; | ||
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; | ||
CODE_SIGN_IDENTITY = "iPhone Developer"; | ||
COPY_PHASE_STRIP = NO; | ||
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; | ||
ENABLE_NS_ASSERTIONS = NO; | ||
ENABLE_STRICT_OBJC_MSGSEND = YES; | ||
GCC_C_LANGUAGE_STANDARD = gnu11; | ||
GCC_NO_COMMON_BLOCKS = YES; | ||
GCC_WARN_64_TO_32_BIT_CONVERSION = YES; | ||
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; | ||
GCC_WARN_UNDECLARED_SELECTOR = YES; | ||
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; | ||
GCC_WARN_UNUSED_FUNCTION = YES; | ||
GCC_WARN_UNUSED_VARIABLE = YES; | ||
IPHONEOS_DEPLOYMENT_TARGET = 11.2; | ||
MTL_ENABLE_DEBUG_INFO = NO; | ||
SDKROOT = iphoneos; | ||
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; | ||
VALIDATE_PRODUCT = YES; | ||
}; | ||
name = Release; | ||
}; | ||
816100A91FEC716200DE842E /* Debug */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
CODE_SIGN_STYLE = Automatic; | ||
DEVELOPMENT_TEAM = 62V9CKQN89; | ||
INFOPLIST_FILE = web3swiftExample/Info.plist; | ||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; | ||
PRODUCT_BUNDLE_IDENTIFIER = org.bankexfoundation.web3swiftExample; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
SWIFT_VERSION = 4.0; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
}; | ||
name = Debug; | ||
}; | ||
816100AA1FEC716200DE842E /* Release */ = { | ||
isa = XCBuildConfiguration; | ||
buildSettings = { | ||
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; | ||
CODE_SIGN_STYLE = Automatic; | ||
DEVELOPMENT_TEAM = 62V9CKQN89; | ||
INFOPLIST_FILE = web3swiftExample/Info.plist; | ||
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; | ||
PRODUCT_BUNDLE_IDENTIFIER = org.bankexfoundation.web3swiftExample; | ||
PRODUCT_NAME = "$(TARGET_NAME)"; | ||
SWIFT_VERSION = 4.0; | ||
TARGETED_DEVICE_FAMILY = "1,2"; | ||
}; | ||
name = Release; | ||
}; | ||
/* End XCBuildConfiguration section */ | ||
|
||
/* Begin XCConfigurationList section */ | ||
816100911FEC716200DE842E /* Build configuration list for PBXProject "web3swiftExample" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
816100A61FEC716200DE842E /* Debug */, | ||
816100A71FEC716200DE842E /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
816100A81FEC716200DE842E /* Build configuration list for PBXNativeTarget "web3swiftExample" */ = { | ||
isa = XCConfigurationList; | ||
buildConfigurations = ( | ||
816100A91FEC716200DE842E /* Debug */, | ||
816100AA1FEC716200DE842E /* Release */, | ||
); | ||
defaultConfigurationIsVisible = 0; | ||
defaultConfigurationName = Release; | ||
}; | ||
/* End XCConfigurationList section */ | ||
}; | ||
rootObject = 8161008E1FEC716200DE842E /* Project object */; | ||
} |
7 changes: 7 additions & 0 deletions
7
.../web3swiftExample/web3swiftExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
46 changes: 46 additions & 0 deletions
46
Example/web3swiftExample/web3swiftExample/AppDelegate.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
// | ||
// AppDelegate.swift | ||
// web3swiftExample | ||
// | ||
// Created by Alexander Vlasov on 22.12.2017. | ||
// Copyright © 2017 Alexander Vlasov. All rights reserved. | ||
// | ||
|
||
import UIKit | ||
|
||
@UIApplicationMain | ||
class AppDelegate: UIResponder, UIApplicationDelegate { | ||
|
||
var window: UIWindow? | ||
|
||
|
||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { | ||
// Override point for customization after application launch. | ||
return true | ||
} | ||
|
||
func applicationWillResignActive(_ application: UIApplication) { | ||
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state. | ||
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game. | ||
} | ||
|
||
func applicationDidEnterBackground(_ application: UIApplication) { | ||
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later. | ||
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits. | ||
} | ||
|
||
func applicationWillEnterForeground(_ application: UIApplication) { | ||
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background. | ||
} | ||
|
||
func applicationDidBecomeActive(_ application: UIApplication) { | ||
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface. | ||
} | ||
|
||
func applicationWillTerminate(_ application: UIApplication) { | ||
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:. | ||
} | ||
|
||
|
||
} | ||
|
Oops, something went wrong.