Skip to content

Commit

Permalink
Merge pull request #45 from litecoin-foundation/techdebt/add-develop-…
Browse files Browse the repository at this point in the history
…keys-files-43

🦺[Tech debt] Add develop & GS keys file 43
  • Loading branch information
kcw-grunt authored May 8, 2021
2 parents 22092f2 + 1a9d6ce commit c10dc3c
Show file tree
Hide file tree
Showing 11 changed files with 309 additions and 76 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,6 @@ fastlane/screenshots
fastlane/test_output
Screenshots/shots
.DS_Store
loafwallet/partner-keys.plist
loafwallet/GoogleService-Info.plist
partner-keys.plist

36 changes: 28 additions & 8 deletions loafwallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@
22A9A9641DF61FE7000F0016 /* Security.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22A9A9631DF61FE7000F0016 /* Security.framework */; };
22A9A9661DF61FEE000F0016 /* WebKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 22A9A9651DF61FEE000F0016 /* WebKit.framework */; };
22A9A9A31DF63497000F0016 /* libbz2.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = 22A9A9671DF61FF8000F0016 /* libbz2.tbd */; };
24016D8E23F887C3006A6791 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 24016D8D23F887C2006A6791 /* GoogleService-Info.plist */; };
24016D9023F913C1006A6791 /* LWAnalytics.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24016D8F23F913C1006A6791 /* LWAnalytics.swift */; };
2427342D2381C21800E2D22F /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2427342B2381C21800E2D22F /* MainViewController.swift */; };
24306797238F3DF900EBEA99 /* BartyCrouch.swift in Sources */ = {isa = PBXBuildFile; fileRef = 24306796238F3DF900EBEA99 /* BartyCrouch.swift */; };
Expand Down Expand Up @@ -269,6 +268,11 @@
C30AFB4E2598FC1B00CDCF69 /* LitewalletPartnerAPI in Frameworks */ = {isa = PBXBuildFile; productRef = C30AFB4D2598FC1B00CDCF69 /* LitewalletPartnerAPI */; };
C30AFB642598FFB200CDCF69 /* PartnerAPIManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = C30AFB632598FFB200CDCF69 /* PartnerAPIManager.swift */; };
C316CF49261887FC00E4C09B /* UIApplication+Extension.swift in Sources */ = {isa = PBXBuildFile; fileRef = C316CF48261887FC00E4C09B /* UIApplication+Extension.swift */; };
C3188E2726431E750008ADD1 /* Debug-GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = C3188E2526431E750008ADD1 /* Debug-GoogleService-Info.plist */; };
C3188E2826431E750008ADD1 /* debug-partner-keys.plist in Resources */ = {isa = PBXBuildFile; fileRef = C3188E2626431E750008ADD1 /* debug-partner-keys.plist */; };
C3188E2B26431E810008ADD1 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = C3188E2926431E810008ADD1 /* GoogleService-Info.plist */; };
C3188E2C26431E810008ADD1 /* partner-keys.plist in Resources */ = {isa = PBXBuildFile; fileRef = C3188E2A26431E810008ADD1 /* partner-keys.plist */; };
C3188E3326445EA20008ADD1 /* FileTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3188E3226445EA20008ADD1 /* FileTests.swift */; };
C32142EA25C97CD900BECCD0 /* TransactionCellView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C32142E925C97CD900BECCD0 /* TransactionCellView.swift */; };
C32142FA25C988C800BECCD0 /* TransactionCellViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = C32142F925C988C800BECCD0 /* TransactionCellViewModel.swift */; };
C3270B99259BF7F20073DA7B /* LitecoinCardUser.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3270B98259BF7F20073DA7B /* LitecoinCardUser.swift */; };
Expand Down Expand Up @@ -307,7 +311,6 @@
C3D783A72565EA4B0004FF70 /* UnstoppableDomainView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3D783A62565EA4A0004FF70 /* UnstoppableDomainView.swift */; };
C3D783B72565EA6B0004FF70 /* UnstoppableDomainViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3D783B62565EA6B0004FF70 /* UnstoppableDomainViewModel.swift */; };
C3D783C02565ECF60004FF70 /* UnstoppableDomainViewModelTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3D783BF2565ECF60004FF70 /* UnstoppableDomainViewModelTests.swift */; };
C3EB574C257D95B7003E3949 /* partner-keys.plist in Resources */ = {isa = PBXBuildFile; fileRef = C3EB574B257D95B7003E3949 /* partner-keys.plist */; };
C3F55645255A193D005F786F /* SupportLitecoinFoundationView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3F55644255A193D005F786F /* SupportLitecoinFoundationView.swift */; };
C3F55655255A195B005F786F /* SupportLitecoinFoundationViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3F55654255A195B005F786F /* SupportLitecoinFoundationViewModel.swift */; };
C3F7BCDC25FEC6AD00694C28 /* FailedAlertView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C3F7BCD925FEC6AC00694C28 /* FailedAlertView.swift */; };
Expand Down Expand Up @@ -741,7 +744,6 @@
22A9A9A91DF64B97000F0016 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = Modules/libbz2/Info.plist; sourceTree = SOURCE_ROOT; };
22A9A9AA1DF64B97000F0016 /* iphone.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; name = iphone.modulemap; path = Modules/libbz2/iphone.modulemap; sourceTree = SOURCE_ROOT; };
22A9A9AB1DF64B97000F0016 /* iphonesim.modulemap */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.module-map"; name = iphonesim.modulemap; path = Modules/libbz2/iphonesim.modulemap; sourceTree = SOURCE_ROOT; };
24016D8D23F887C2006A6791 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
24016D8F23F913C1006A6791 /* LWAnalytics.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LWAnalytics.swift; sourceTree = "<group>"; };
2427342B2381C21800E2D22F /* MainViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = "<group>"; };
24306796238F3DF900EBEA99 /* BartyCrouch.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BartyCrouch.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1444,6 +1446,11 @@
C30899782616426800EE6A40 /* ForgotAlertViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ForgotAlertViewModel.swift; sourceTree = "<group>"; };
C30AFB632598FFB200CDCF69 /* PartnerAPIManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PartnerAPIManager.swift; sourceTree = "<group>"; };
C316CF48261887FC00E4C09B /* UIApplication+Extension.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UIApplication+Extension.swift"; sourceTree = "<group>"; };
C3188E2526431E750008ADD1 /* Debug-GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "Debug-GoogleService-Info.plist"; sourceTree = "<group>"; };
C3188E2626431E750008ADD1 /* debug-partner-keys.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "debug-partner-keys.plist"; sourceTree = "<group>"; };
C3188E2926431E810008ADD1 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
C3188E2A26431E810008ADD1 /* partner-keys.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "partner-keys.plist"; sourceTree = "<group>"; };
C3188E3226445EA20008ADD1 /* FileTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FileTests.swift; sourceTree = "<group>"; };
C32142E925C97CD900BECCD0 /* TransactionCellView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TransactionCellView.swift; sourceTree = "<group>"; };
C32142F925C988C800BECCD0 /* TransactionCellViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TransactionCellViewModel.swift; sourceTree = "<group>"; };
C3270B98259BF7F20073DA7B /* LitecoinCardUser.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LitecoinCardUser.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1483,7 +1490,6 @@
C3D783A62565EA4A0004FF70 /* UnstoppableDomainView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UnstoppableDomainView.swift; sourceTree = "<group>"; };
C3D783B62565EA6B0004FF70 /* UnstoppableDomainViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UnstoppableDomainViewModel.swift; sourceTree = "<group>"; };
C3D783BF2565ECF60004FF70 /* UnstoppableDomainViewModelTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UnstoppableDomainViewModelTests.swift; sourceTree = "<group>"; };
C3EB574B257D95B7003E3949 /* partner-keys.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "partner-keys.plist"; sourceTree = "<group>"; };
C3F55644255A193D005F786F /* SupportLitecoinFoundationView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SupportLitecoinFoundationView.swift; sourceTree = "<group>"; };
C3F55654255A195B005F786F /* SupportLitecoinFoundationViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SupportLitecoinFoundationViewModel.swift; sourceTree = "<group>"; };
C3F7BCD925FEC6AC00694C28 /* FailedAlertView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = FailedAlertView.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -2169,6 +2175,7 @@
2465873723A5AAD100A32E9E /* loafwalletTests */ = {
isa = PBXGroup;
children = (
C3188E3126445E5E0008ADD1 /* File Tests */,
C3B7C3EC255FF56100E98A64 /* Constants Tests */,
24470E3923A5FF5700ADDA27 /* TestHelpers.swift */,
24470E4323A6088700ADDA27 /* Class Tests */,
Expand Down Expand Up @@ -2965,7 +2972,10 @@
75A2A7921DA5934300A983D8 /* loafwallet */ = {
isa = PBXGroup;
children = (
C3EB574B257D95B7003E3949 /* partner-keys.plist */,
C3188E2526431E750008ADD1 /* Debug-GoogleService-Info.plist */,
C3188E2626431E750008ADD1 /* debug-partner-keys.plist */,
C3188E2926431E810008ADD1 /* GoogleService-Info.plist */,
C3188E2A26431E810008ADD1 /* partner-keys.plist */,
C35ABD07257404C6002BB9BB /* SwiftUI+UIKit */,
75A2A87C1DA59E4E00A983D8 /* loafwallet.entitlements */,
75A2A7931DA5934300A983D8 /* AppDelegate.swift */,
Expand Down Expand Up @@ -3007,7 +3017,6 @@
75A2A79F1DA5934300A983D8 /* Info.plist */,
24B523AF238A53DC0030594D /* BIP39Words.plist */,
2485F7CE23728C19005962F1 /* RELEASE_NOTES.md */,
24016D8D23F887C2006A6791 /* GoogleService-Info.plist */,
C3ACF2DE25DED601008671D4 /* CHANGELOG.md */,
);
path = loafwallet;
Expand Down Expand Up @@ -3075,6 +3084,14 @@
path = Modules/sqlite3;
sourceTree = "<group>";
};
C3188E3126445E5E0008ADD1 /* File Tests */ = {
isa = PBXGroup;
children = (
C3188E3226445EA20008ADD1 /* FileTests.swift */,
);
path = "File Tests";
sourceTree = "<group>";
};
C32142E825C97CB900BECCD0 /* Transactions */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -3874,19 +3891,21 @@
CE5E6C9A1EB9135000A476DB /* Icon.xcassets in Resources */,
24D5F25022599C0B00225462 /* BarlowSemiCondensed-Light.ttf in Resources */,
2494037F23AE0C7100369261 /* SyncProgressHeaderView.xib in Resources */,
C3188E2726431E750008ADD1 /* Debug-GoogleService-Info.plist in Resources */,
CE29901A1EFD6DE50093A0F2 /* Localizable.strings in Resources */,
24313C9F23824F5800A83F69 /* Animate.storyboard in Resources */,
24B8FADC2162D29100A155B1 /* general.css in Resources */,
24313CA323824F5800A83F69 /* Send.storyboard in Resources */,
2485F7D023728C19005962F1 /* RELEASE_NOTES.md in Resources */,
24B523AD238A53DC0030594D /* BIP39Words.plist in Resources */,
24313CAA23824F9800A83F69 /* Main.storyboard in Resources */,
C3188E2B26431E810008ADD1 /* GoogleService-Info.plist in Resources */,
24D5F25F22599C0B00225462 /* BarlowSemiCondensed-Regular.ttf in Resources */,
24DFCE6823B89CDE001F17F8 /* Settings.storyboard in Resources */,
24016D8E23F887C3006A6791 /* GoogleService-Info.plist in Resources */,
24393B5C23C259400075218D /* Phrase.storyboard in Resources */,
24313CA723824F5800A83F69 /* Card.storyboard in Resources */,
C3EB574C257D95B7003E3949 /* partner-keys.plist in Resources */,
C3188E2826431E750008ADD1 /* debug-partner-keys.plist in Resources */,
C3188E2C26431E810008ADD1 /* partner-keys.plist in Resources */,
75A2A79B1DA5934300A983D8 /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -4010,6 +4029,7 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
C3188E3326445EA20008ADD1 /* FileTests.swift in Sources */,
24470E4223A6007200ADDA27 /* WalletInfoTest.swift in Sources */,
24470E2123A5DA9700ADDA27 /* APIManagerTests.swift in Sources */,
24470E3423A5F5E600ADDA27 /* PaymentRequestTests.swift in Sources */,
Expand Down
43 changes: 27 additions & 16 deletions loafwallet/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,15 @@

import UIKit
import SwiftUI
import LocalAuthentication
import LocalAuthentication
import Firebase

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {

var window: UIWindow?
let applicationController = ApplicationController()

func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {

setFirebaseConfiguration()
Expand All @@ -46,47 +46,58 @@ class AppDelegate: UIResponder, UIApplicationDelegate {

return true
}

func applicationDidBecomeActive(_ application: UIApplication) {
UIApplication.shared.applicationIconBadgeNumber = 0
}

func applicationWillEnterForeground(_ application: UIApplication) {
applicationController.willEnterForeground()
}

func applicationDidEnterBackground(_ application: UIApplication) {
applicationController.didEnterBackground()
}

func applicationWillResignActive(_ application: UIApplication) {
applicationController.willResignActive()
}

func application(_ application: UIApplication, performFetchWithCompletionHandler completionHandler: @escaping (UIBackgroundFetchResult) -> Void) {
applicationController.performFetch(completionHandler)
}

func application(_ application: UIApplication, shouldAllowExtensionPointIdentifier extensionPointIdentifier: UIApplicationExtensionPointIdentifier) -> Bool {
return false // disable extensions such as custom keyboards for security purposes
}

func application(_ app: UIApplication, open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) -> Bool {
return applicationController.open(url: url)
}

func application(_ application: UIApplication, shouldSaveApplicationState coder: NSCoder) -> Bool {
return true
return true
}

func application(_ application: UIApplication, shouldRestoreApplicationState coder: NSCoder) -> Bool {
return true
}

/// Sets the correct Google Services plist file
private func setFirebaseConfiguration() {
//Conditional to pass the CircleCI checks
if Bundle.main.path(forResource: "GoogleService-Info", ofType: "plist") != nil {

#if Release
// Loads the release Firebase config file.
FirebaseApp.configure()
}
#else
// Load a Firebase debug config file.
let filePath = Bundle.main.path(forResource: "Debug-GoogleService-Info", ofType: "plist")
guard let fileOpts = FirebaseOptions(contentsOfFile: filePath!)
else { assert(false, "Couldn't load Firebase config file") }
FirebaseApp.configure(options: fileOpts)
#endif
}
}
}



29 changes: 29 additions & 0 deletions loafwallet/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,35 @@
# Changelog

## Draft Release v3.5.0

The list of changes are below:

### 🦟 Bugfixes

### 🦺 Tech Debt

### 🥳 Improvements

---

## Release v3.4.0
This release is the long-awaited addition of Moonpay!!
The list of changes are below:

### 🦟 Bugfixes
* Bugfixes
* Fixed transactions full sync freeze

### 🦺 Tech Debt
* Tech Debt: Polishes
* Upgraded UD version to 0.3.5
* Added UD Error Codes
* Opened Card Login password range

### 🥳 Improvements
* Added Moonpay
---

## Release v3.3.0

This release is the interim to the v2 of the Litecoin Card and fixes mainly bugs.
Expand Down
34 changes: 34 additions & 0 deletions loafwallet/Debug-GoogleService-Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<?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>CLIENT_ID</key>
<string>594532048902-69ob24v7sve72qcakhb2bhin93e7r5c9.apps.googleusercontent.com</string>
<key>REVERSED_CLIENT_ID</key>
<string>com.googleusercontent.apps.594532048902-69ob24v7sve72qcakhb2bhin93e7r5c9</string>
<key>API_KEY</key>
<string>AIzaSyDRzd7Sk3xswcgfUlCH7fZ-A3OaSRuzF-g</string>
<key>GCM_SENDER_ID</key>
<string>594532048902</string>
<key>PLIST_VERSION</key>
<string>1</string>
<key>BUNDLE_ID</key>
<string>com.litecoin-foundation.litewallet-develop</string>
<key>PROJECT_ID</key>
<string>litewallet-develop</string>
<key>STORAGE_BUCKET</key>
<string>litewallet-develop.appspot.com</string>
<key>IS_ADS_ENABLED</key>
<false></false>
<key>IS_ANALYTICS_ENABLED</key>
<false></false>
<key>IS_APPINVITE_ENABLED</key>
<true></true>
<key>IS_GCM_ENABLED</key>
<true></true>
<key>IS_SIGNIN_ENABLED</key>
<true></true>
<key>GOOGLE_APP_ID</key>
<string>1:594532048902:ios:6aaaa085b80105bbb7a387</string>
</dict>
</plist>
Loading

0 comments on commit c10dc3c

Please sign in to comment.