Skip to content

Commit

Permalink
Minimize app size
Browse files Browse the repository at this point in the history
Excluding unnessesary libraries
  • Loading branch information
vikmeup committed Aug 21, 2018
1 parent 6a0b233 commit 45d0260
Show file tree
Hide file tree
Showing 17 changed files with 10 additions and 95 deletions.
2 changes: 0 additions & 2 deletions Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ target 'Trust' do
pod 'RealmSwift'
pod 'Moya', '~> 10.0.1'
pod 'CryptoSwift', '~> 0.10.0'
pod 'Fabric'
pod 'Crashlytics', '~> 3.10'
pod 'Kingfisher', '~> 4.0'
pod 'TrustCore', :git=>'https://github.com/TrustWallet/trust-core', :branch=>'master'
pod 'TrustKeystore', :git=>'https://github.com/TrustWallet/trust-keystore', :branch=>'master'
Expand Down
11 changes: 1 addition & 10 deletions Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,8 @@ PODS:
- Branch (0.25.3):
- Branch/Core (= 0.25.3)
- Branch/Core (0.25.3)
- Crashlytics (3.10.7):
- Fabric (~> 1.7.11)
- CryptoSwift (0.10.0)
- Eureka (4.2.0)
- Fabric (1.7.11)
- JSONRPCKit (2.0.0):
- Result (~> 3.0)
- KeychainSwift (10.0.0)
Expand Down Expand Up @@ -65,10 +62,8 @@ DEPENDENCIES:
- APIKit
- BigInt (~> 3.0)
- Branch
- Crashlytics (~> 3.10)
- CryptoSwift (~> 0.10.0)
- Eureka
- Fabric
- JSONRPCKit (from `https://github.com/bricklife/JSONRPCKit.git`)
- KeychainSwift
- Kingfisher (~> 4.0)
Expand All @@ -95,10 +90,8 @@ SPEC REPOS:
- APIKit
- BigInt
- Branch
- Crashlytics
- CryptoSwift
- Eureka
- Fabric
- KeychainSwift
- Kingfisher
- MBProgressHUD
Expand Down Expand Up @@ -161,10 +154,8 @@ SPEC CHECKSUMS:
APIKit: 7460983f490d3bde6aaaaa4164d18c9865a6f91d
BigInt: 8e8a52161c745cd3ab78e3dc346a9fbee51e6cf6
Branch: 9917f91a5381bc88ed8e4f080a18213267cf44e6
Crashlytics: ccaac42660eb9351b9960c0d66106b0bcf99f4fa
CryptoSwift: 6c778d69282bed3b4e975ff97a79d074f20bb011
Eureka: 0748c7bbb2560130e43c7bfa83e99c98854a1f42
Fabric: f233c9492b3bbc1f04e3882986740f7988a58edb
JSONRPCKit: 22132c575ba2dc6f2f4ae72fda4943a63efca686
KeychainSwift: f9f7910449a0c0fd2cabc889121530dd2c477c33
Kingfisher: 868c1149679a7ab6869be118faa9b5aed154aaf0
Expand All @@ -189,6 +180,6 @@ SPEC CHECKSUMS:
TrustWeb3Provider: 50fa391bdf170feb43dd4419992931510a5751d8
URLNavigator: 2357a32f3b3787b748bf87deb927761f8b0f7f53

PODFILE CHECKSUM: 0a029f2f808f19f1790e0729ea36c57af35a9b49
PODFILE CHECKSUM: 30a4ddccde066176b63c4f1326409df048b754a1

COCOAPODS: 1.5.3
18 changes: 0 additions & 18 deletions Trust.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@
293E62711FA2F63500CB0A66 /* InitialWalletCreationCoordinator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 293E62701FA2F63500CB0A66 /* InitialWalletCreationCoordinator.swift */; };
293E62731FA3165C00CB0A66 /* InitialWalletCreationCoordinatorTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 293E62721FA3165C00CB0A66 /* InitialWalletCreationCoordinatorTests.swift */; };
294BB5112086CE4A00430EFA /* DAppRequster.swift in Sources */ = {isa = PBXBuildFile; fileRef = 294BB5102086CE4A00430EFA /* DAppRequster.swift */; };
294DFB981FDF8CBB004CEB56 /* CrashReportInitializer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 294DFB971FDF8CBB004CEB56 /* CrashReportInitializer.swift */; };
294DFBA01FE0CADE004CEB56 /* TransactionDetailsViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 294DFB9F1FE0CADD004CEB56 /* TransactionDetailsViewModel.swift */; };
294DFBA31FE0E2EA004CEB56 /* TransactionValue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 294DFBA21FE0E2EA004CEB56 /* TransactionValue.swift */; };
294DFBA61FE11CAE004CEB56 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = 290B2B561F8F50030053C83E /* Localizable.strings */; };
Expand Down Expand Up @@ -552,7 +551,6 @@
293E62701FA2F63500CB0A66 /* InitialWalletCreationCoordinator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InitialWalletCreationCoordinator.swift; sourceTree = "<group>"; };
293E62721FA3165C00CB0A66 /* InitialWalletCreationCoordinatorTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = InitialWalletCreationCoordinatorTests.swift; sourceTree = "<group>"; };
294BB5102086CE4A00430EFA /* DAppRequster.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DAppRequster.swift; sourceTree = "<group>"; };
294DFB971FDF8CBB004CEB56 /* CrashReportInitializer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CrashReportInitializer.swift; sourceTree = "<group>"; };
294DFB9F1FE0CADD004CEB56 /* TransactionDetailsViewModel.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = TransactionDetailsViewModel.swift; sourceTree = "<group>"; };
294DFBA21FE0E2EA004CEB56 /* TransactionValue.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TransactionValue.swift; sourceTree = "<group>"; };
294DFBA41FE0F437004CEB56 /* es */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = es; path = es.lproj/Localizable.strings; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1887,7 +1885,6 @@
29FC9BC51F830880000209CD /* MirgrationInitializer.swift */,
2923D9B01FDA49D8000CF3F8 /* Initializer.swift */,
2923D9B21FDA49F8000CF3F8 /* SkipBackupFilesInitializer.swift */,
294DFB971FDF8CBB004CEB56 /* CrashReportInitializer.swift */,
77B806A42075C33D005FDCBE /* SharedMigrationInitializer.swift */,
);
path = Initializers;
Expand Down Expand Up @@ -2540,7 +2537,6 @@
F291FF6299FBB0600050DA49 /* [CP] Embed Pods Frameworks */,
2909B06A324FDD6FB858F676 /* [CP] Copy Pods Resources */,
29282B511F7629DB0067F88D /* Run SwiftLint */,
294DFB961FDF8C6A004CEB56 /* ShellScript */,
);
buildRules = (
);
Expand Down Expand Up @@ -2744,19 +2740,6 @@
shellPath = /bin/sh;
shellScript = "\"$PODS_ROOT/R.swift/rswift\" generate \"$SRCROOT/Trust\"\n";
};
294DFB961FDF8C6A004CEB56 /* ShellScript */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "\"${PODS_ROOT}/Fabric/run\" 74d3fa8b5038a154c0c05555d27112a0d4a80d68 8973b953bafdeaf177a2bae935a2bfba6158575b615f75305af25cf01a6adac6\n";
};
558B94C30BF51EDC00493AF8 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
Expand Down Expand Up @@ -2929,7 +2912,6 @@
779141DB21055B72007E8E16 /* MultiCoinMigration.swift in Sources */,
29FC9BC61F830899000209CD /* MirgrationInitializer.swift in Sources */,
29AD8A091F93F8B2008E10E7 /* Session.swift in Sources */,
294DFB981FDF8CBB004CEB56 /* CrashReportInitializer.swift in Sources */,
291F52B91F6B880F00B369AB /* EtherKeystore.swift in Sources */,
779141CA210271DB007E8E16 /* BalanceNetworkProvider.swift in Sources */,
29BB94971F6FCD60009B09CC /* SendViewModel.swift in Sources */,
Expand Down
1 change: 0 additions & 1 deletion Trust/AppCoordinator.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ class AppCoordinator: NSObject, Coordinator {
paths.append(keystore.keysDirectory)

let initializers: [Initializer] = [
CrashReportInitializer(),
SkipBackupFilesInitializer(paths: paths),
]
initializers.forEach { $0.perform() }
Expand Down
2 changes: 1 addition & 1 deletion Trust/Browser/Storage/CookiesStore.swift
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class CookiesStore {
fetchCookies()
}.done { cookies in
save(cookies: cookies)
}
}.catch { _ in }
}

static func load() {
Expand Down
25 changes: 0 additions & 25 deletions Trust/Core/Initializers/CrashReportInitializer.swift

This file was deleted.

6 changes: 3 additions & 3 deletions Trust/InCoordinator+Navigable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ extension InCoordinator: URLNavigable {
return true
}

navigator.handle("trust://sign-transaction") { url, _, _ in
navigator.handle("app://sign-transaction") { url, _, _ in
return self.localSchemeCoordinator?.trustWalletSDK.handleOpen(url: url as! URL) ?? false
}

navigator.handle("trust://sign-message") { url, _, _ in
navigator.handle("app://sign-message") { url, _, _ in
return self.localSchemeCoordinator?.trustWalletSDK.handleOpen(url: url as! URL) ?? false
}

navigator.handle("trust://sign-personal-message") { url, _, _ in
navigator.handle("app://sign-personal-message") { url, _, _ in
return self.localSchemeCoordinator?.trustWalletSDK.handleOpen(url: url as! URL) ?? false
}
}
Expand Down
18 changes: 2 additions & 16 deletions Trust/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,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>CFBundleAllowMixedLocalizations</key>
<string>true</string>
<key>CFBundleDevelopmentRegion</key>
<string>$(DEVELOPMENT_LANGUAGE)</string>
<key>CFBundleExecutable</key>
Expand Down Expand Up @@ -29,20 +31,6 @@
</array>
<key>CFBundleVersion</key>
<string>288</string>
<key>Fabric</key>
<dict>
<key>APIKey</key>
<string>74d3fa8b5038a154c0c05555d27112a0d4a80d68</string>
<key>Kits</key>
<array>
<dict>
<key>KitInfo</key>
<dict/>
<key>KitName</key>
<string>Crashlytics</string>
</dict>
</array>
</dict>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationQueriesSchemes</key>
Expand Down Expand Up @@ -110,7 +98,5 @@
</dict>
<key>com.apple.security.get-task-allow</key>
<true/>
<key>CFBundleAllowMixedLocalizations</key>
<string>true</string>
</dict>
</plist>
7 changes: 1 addition & 6 deletions Trust/Settings/Types/Constants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
import Foundation

public struct Constants {
public static let coinbaseWidgetCode = "88d6141a-ff60-536c-841c-8f830adaacfd"
public static let shapeShiftPublicKey = "c4097b033e02163da6114fbbc1bf15155e759ddfd8352c88c55e7fef162e901a800e7eaecf836062a0c075b2b881054e0b9aa2324be7bc3694578493faf59af4"
public static let changellyRefferalID = "968d4f0f0bf9"
//
public static let keychainKeyPrefix = "trustwallet"
public static let keychainTestsKeyPrefix = "trustwallet-tests"

Expand All @@ -20,7 +16,6 @@ public struct Constants {

// support
public static let supportEmail = "[email protected]"
public static let donationAddress = "0x9f8284ce2cf0c8ce10685f537b1fff418104a317"

public static let dappsBrowserURL = "https://dapps.trustwalletapp.com/"
public static let dappsOpenSea = "https://opensea.io"
Expand All @@ -37,6 +32,6 @@ public struct UnitConfiguration {
}

public struct URLSchemes {
public static let trust = "trust://"
public static let trust = "app://"
public static let browser = trust + "browser"
}
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import UIKit
import Eureka
import Branch
import Crashlytics
import TrustCore
import KeychainSwift

Expand Down
1 change: 0 additions & 1 deletion Trust/Settings/ViewControllers/PrivacyViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import UIKit
import Eureka
import Branch
import Crashlytics

final class PrivacyViewController: FormViewController {

Expand Down
2 changes: 1 addition & 1 deletion Trust/Tokens/Types/TokenBalanceOperation.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ final class TokenBalanceOperation: TrustOperation {
return
}
strongSelf.updateModel(with: balance)
}
}.catch { _ in }
}

private func updateModel(with balance: BigInt) {
Expand Down
1 change: 0 additions & 1 deletion Trust/Tokens/Utils/TokenImage.swift
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,3 @@ extension Coin {
}
}
}

2 changes: 1 addition & 1 deletion Trust/Tokens/ViewModels/EditTokenViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ final class EditTokenViewModel {
$0.isDisabled = false
}
completion?(tokens.filter { !filterSet.contains($0) })
}
}.catch { _ in }
}

func searchLocal(token searchText: String?) -> [TokenObject] {
Expand Down
1 change: 0 additions & 1 deletion Trust/Tokens/ViewModels/NewTokenViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import Foundation
import PromiseKit
import Crashlytics

struct NewTokenViewModel {

Expand Down
1 change: 0 additions & 1 deletion Trust/Tokens/ViewModels/TokenObjectViewModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,3 @@ struct TokenObjectViewModel {
}
}
}

6 changes: 0 additions & 6 deletions Trust/Trust.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@
<dict>
<key>aps-environment</key>
<string>development</string>
<key>com.apple.developer.associated-domains</key>
<array>
<string>applinks:eps2.app.link</string>
<string>applinks:eps2-alternate.app.link</string>
<string>applinks:links.trustwalletapp.com</string>
</array>
<key>com.apple.developer.default-data-protection</key>
<string>NSFileProtectionComplete</string>
</dict>
Expand Down

0 comments on commit 45d0260

Please sign in to comment.