-
Notifications
You must be signed in to change notification settings - Fork 0
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
Mikhail Kogan
committed
Mar 2, 2022
1 parent
290bbd7
commit 7ce7469
Showing
171 changed files
with
55,596 additions
and
9 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
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,37 @@ | ||
Pod::Spec.new do |s| | ||
s.name = 'DolyameSDK' | ||
s.summary = 'Dolyame SDK for iOS' | ||
|
||
s.version = '1.0.0' | ||
|
||
s.authors = { | ||
'Isaac Weisberg' => '[email protected]', | ||
'Mikhail Kogan' => '[email protected]', | ||
'Aleksandr Tonkhonoev' => '[email protected]' | ||
} | ||
|
||
s.homepage = 'https://github.com/Tinkoff/dolyamesdk-ios' | ||
|
||
s.license = { type: 'MIT', file: 'LICENSE' } | ||
s.source = { git: 'https://github.com/Tinkoff/dolyamesdk-ios.git', tag: s.version.to_s } | ||
|
||
s.ios.deployment_target = '13.0' | ||
s.swift_version = '5.0' | ||
s.ios.vendored_frameworks = "Framework/#{s.name}.xcframework" | ||
s.resources = [ | ||
"Framework/#{s.name}.xcframework/ios-arm64/#{s.name}.framework/#{s.name}Images.bundle" | ||
] | ||
|
||
# Dependencies | ||
s.dependency 'SnapKit', '~> 5.0.1' | ||
s.dependency 'Keyboard+LayoutGuide', '~> 1.6.0' | ||
s.dependency 'TPKeyboardAvoiding', '~> 1.3.5' | ||
s.dependency 'Insecurity', '~> 3.0.1' | ||
s.dependency 'Kingfisher', '~> 7.1.1' | ||
s.dependency 'KingfisherWebP', '~> 1.4.0' | ||
s.dependency 'TinkoffASDKCore', '~> 3.0.0-alpha7' | ||
s.dependency 'TinkoffASDKUI', '~> 3.0.0-alpha7' | ||
s.dependency 'Amplitude', '~> 8.5.0' | ||
s.dependency 'GzipSwift', '~> 5.1.1' | ||
s.dependency 'SwiftyJSON', '~> 5.0.1' | ||
end |
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,21 @@ | ||
import UIKit | ||
|
||
@main class AppDelegate: UIResponder, UIApplicationDelegate { | ||
var window: UIWindow? | ||
var appCoordinator: ApplicationCoordinator? | ||
|
||
func application(_ application: UIApplication, | ||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { | ||
|
||
let window = UIWindow(frame: UIScreen.main.bounds) | ||
window.makeKeyAndVisible() | ||
self.window = window | ||
|
||
let appCoordinator = ApplicationCoordinator(hostWindow: window) | ||
self.appCoordinator = appCoordinator | ||
|
||
appCoordinator.start() | ||
|
||
return true | ||
} | ||
} |
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,23 @@ | ||
import UIKit | ||
|
||
class ApplicationCoordinator { | ||
let hostWindow: UIWindow | ||
|
||
var cartCoordinator: CartCoordinator? | ||
|
||
init(hostWindow: UIWindow) { | ||
self.hostWindow = hostWindow | ||
} | ||
|
||
func start() { | ||
let emptyViewController = UIViewController(nibName: nil, bundle: nil) | ||
emptyViewController.view.backgroundColor = UIColor(white: 0.9, alpha: 1) | ||
|
||
hostWindow.rootViewController = emptyViewController | ||
|
||
let cartCoordinator = CartCoordinator(modalHostController: emptyViewController) | ||
self.cartCoordinator = cartCoordinator | ||
|
||
cartCoordinator.start() | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
Example/DolyameSDKUsageDemo/Entitlements/DolyameSDKUsageDemo.entitlements
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,10 @@ | ||
<?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>com.apple.developer.in-app-payments</key> | ||
<array> | ||
<string>merchant.ru.dolyame</string> | ||
</array> | ||
</dict> | ||
</plist> |
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,66 @@ | ||
<?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>$(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>$(PRODUCT_BUNDLE_PACKAGE_TYPE)</string> | ||
<key>CFBundleShortVersionString</key> | ||
<string>1.0.0</string> | ||
<key>CFBundleVersion</key> | ||
<string>1090</string> | ||
<key>ITSAppUsesNonExemptEncryption</key> | ||
<false/> | ||
<key>LSRequiresIPhoneOS</key> | ||
<true/> | ||
<key>NSAppTransportSecurity</key> | ||
<dict> | ||
<key>NSExceptionDomains</key> | ||
<dict> | ||
<key>api.statist.v2.dev2.k8s.tcsbank.ru</key> | ||
<dict> | ||
<key>NSExceptionAllowsInsecureHTTPLoads</key> | ||
<true/> | ||
</dict> | ||
<key>qa.tcb-cloud.tinkoff.ru</key> | ||
<dict> | ||
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> | ||
<true/> | ||
</dict> | ||
<key>qa1.tcb-cloud.tinkoff.ru</key> | ||
<dict> | ||
<key>NSTemporaryExceptionAllowsInsecureHTTPLoads</key> | ||
<true/> | ||
</dict> | ||
</dict> | ||
</dict> | ||
<key>UIApplicationSupportsIndirectInputEvents</key> | ||
<true/> | ||
<key>UILaunchStoryboardName</key> | ||
<string>LaunchScreen</string> | ||
<key>UIRequiredDeviceCapabilities</key> | ||
<array> | ||
<string>armv7</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
</array> | ||
<key>UISupportedInterfaceOrientations~ipad</key> | ||
<array> | ||
<string>UIInterfaceOrientationPortrait</string> | ||
<string>UIInterfaceOrientationPortraitUpsideDown</string> | ||
<string>UIInterfaceOrientationLandscapeLeft</string> | ||
<string>UIInterfaceOrientationLandscapeRight</string> | ||
</array> | ||
</dict> | ||
</plist> |
11 changes: 11 additions & 0 deletions
11
Example/DolyameSDKUsageDemo/Resources/Assets.xcassets/AccentColor.colorset/Contents.json
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,11 @@ | ||
{ | ||
"colors" : [ | ||
{ | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+3.46 KB
.../DolyameSDKUsageDemo/Resources/Assets.xcassets/AppIcon.appiconset/1024x1024.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+510 Bytes
.../DolyameSDKUsageDemo/Resources/Assets.xcassets/AppIcon.appiconset/120x120-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+510 Bytes
...le/DolyameSDKUsageDemo/Resources/Assets.xcassets/AppIcon.appiconset/120x120.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+773 Bytes
...le/DolyameSDKUsageDemo/Resources/Assets.xcassets/AppIcon.appiconset/180x180.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+472 Bytes
...e/DolyameSDKUsageDemo/Resources/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+559 Bytes
...e/DolyameSDKUsageDemo/Resources/Assets.xcassets/AppIcon.appiconset/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+360 Bytes
Example/DolyameSDKUsageDemo/Resources/Assets.xcassets/AppIcon.appiconset/40x40.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+443 Bytes
Example/DolyameSDKUsageDemo/Resources/Assets.xcassets/AppIcon.appiconset/60x60.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+381 Bytes
Example/DolyameSDKUsageDemo/Resources/Assets.xcassets/AppIcon.appiconset/80x80.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
62 changes: 62 additions & 0 deletions
62
Example/DolyameSDKUsageDemo/Resources/Assets.xcassets/AppIcon.appiconset/Contents.json
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,62 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "40x40.png", | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "20x20" | ||
}, | ||
{ | ||
"filename" : "60x60.png", | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "20x20" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"filename" : "[email protected]", | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "29x29" | ||
}, | ||
{ | ||
"filename" : "80x80.png", | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"filename" : "120x120.png", | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "40x40" | ||
}, | ||
{ | ||
"filename" : "120x120-1.png", | ||
"idiom" : "iphone", | ||
"scale" : "2x", | ||
"size" : "60x60" | ||
}, | ||
{ | ||
"filename" : "180x180.png", | ||
"idiom" : "iphone", | ||
"scale" : "3x", | ||
"size" : "60x60" | ||
}, | ||
{ | ||
"filename" : "1024x1024.png", | ||
"idiom" : "ios-marketing", | ||
"scale" : "1x", | ||
"size" : "1024x1024" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
6 changes: 6 additions & 0 deletions
6
Example/DolyameSDKUsageDemo/Resources/Assets.xcassets/Contents.json
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,6 @@ | ||
{ | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
12 changes: 12 additions & 0 deletions
12
Example/DolyameSDKUsageDemo/Resources/Assets.xcassets/beeg-yoshi.imageset/Contents.json
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,12 @@ | ||
{ | ||
"images" : [ | ||
{ | ||
"filename" : "beeg-yoshi.jpg", | ||
"idiom" : "universal" | ||
} | ||
], | ||
"info" : { | ||
"author" : "xcode", | ||
"version" : 1 | ||
} | ||
} |
Binary file added
BIN
+74.9 KB
...olyameSDKUsageDemo/Resources/Assets.xcassets/beeg-yoshi.imageset/beeg-yoshi.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.