Skip to content

Commit

Permalink
Merge branch 'feature/ui_updates' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
simonmcl committed Dec 20, 2023
2 parents 35a4ecc + 47e6f03 commit 55c6fd9
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-and-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,13 @@ jobs:
# Upload Base64 copies of apple certs to github following these instructions:
# Note: Use app store distribution certs
# https://docs.github.com/en/actions/guides/installing-an-apple-certificate-on-macos-runners-for-xcode-development
#
# Every time we update certs / profiles or they expire, we need to update the following github actions secrets
# BUILD_CERTIFICATE_BASE64 = exported distribution cert from inside Xcode account settings, copied with `base64 -i <file-path> | pbcopy`
# P12_PASSWORD = whatever new password created for previous file
# BUILD_PROVISION_PROFILE_BASE64 = download "Kukai Mobile Prov Dist App Store" from app store connect, copied with `base64 -i <file-path> | pbcopy`
# BUILD_PROVISION_PROFILE_BETA_BASE64 = download "Kukai Mobile Beta Prov Dist App Store" from app store connect, copied with `base64 -i <file-path> | pbcopy`
#
- name: Install the Apple certificate and provisioning profile
run: |
# create variables
Expand Down
6 changes: 5 additions & 1 deletion Kukai Mobile.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,7 @@
C08F6913273ABD7300CCB6E3 /* SwapTokenViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = C08F6912273ABD7300CCB6E3 /* SwapTokenViewModel.swift */; };
C08FE23A2AD4343500327BF9 /* BackupViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C08FE2392AD4343500327BF9 /* BackupViewController.swift */; };
C090A6732B0BA1C000F50C76 /* TokenDetailsHeaderCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = C090A6722B0BA1C000F50C76 /* TokenDetailsHeaderCell.swift */; };
C09392BF2B31BE4C0094DFC8 /* security.plist in Resources */ = {isa = PBXBuildFile; fileRef = C09392BE2B31BE4C0094DFC8 /* security.plist */; };
C095367D2A0A9284001B20C4 /* StorageService.swift in Sources */ = {isa = PBXBuildFile; fileRef = C095367C2A0A9284001B20C4 /* StorageService.swift */; };
C09536812A0A94E4001B20C4 /* LengthValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = C09536802A0A94E4001B20C4 /* LengthValidator.swift */; };
C09536832A0A9587001B20C4 /* ConfirmationValidator.swift in Sources */ = {isa = PBXBuildFile; fileRef = C09536822A0A9587001B20C4 /* ConfirmationValidator.swift */; };
Expand Down Expand Up @@ -642,6 +643,7 @@
C08F6912273ABD7300CCB6E3 /* SwapTokenViewModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SwapTokenViewModel.swift; sourceTree = "<group>"; };
C08FE2392AD4343500327BF9 /* BackupViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BackupViewController.swift; sourceTree = "<group>"; };
C090A6722B0BA1C000F50C76 /* TokenDetailsHeaderCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TokenDetailsHeaderCell.swift; sourceTree = "<group>"; };
C09392BE2B31BE4C0094DFC8 /* security.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = security.plist; sourceTree = "<group>"; };
C095367C2A0A9284001B20C4 /* StorageService.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StorageService.swift; sourceTree = "<group>"; };
C09536802A0A94E4001B20C4 /* LengthValidator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LengthValidator.swift; sourceTree = "<group>"; };
C09536822A0A9587001B20C4 /* ConfirmationValidator.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ConfirmationValidator.swift; sourceTree = "<group>"; };
Expand Down Expand Up @@ -1354,6 +1356,7 @@
C0B03650269EE2070071ACD0 /* Info.plist */,
C0B0367B269F37340071ACD0 /* ExportOptions-Beta.plist */,
C0B03679269F1E450071ACD0 /* ExportOptions.plist */,
C09392BE2B31BE4C0094DFC8 /* security.plist */,
C0BADFFE291554D200E78C26 /* Fonts */,
C0678DC0272056A900DEF1CB /* Localization */,
C049B59F26A0492600F1C5E0 /* Modules */,
Expand Down Expand Up @@ -1740,6 +1743,7 @@
C0503657271ED88700E7A664 /* Main.storyboard in Resources */,
C09860C127C3F7CB00F888AF /* EnterAddressComponent.xib in Resources */,
C0678DC3272056D400DEF1CB /* Localizable.strings in Resources */,
C09392BF2B31BE4C0094DFC8 /* security.plist in Resources */,
C0EA19CB29096DD200E6B40D /* CollectibleDetailNameCell.xib in Resources */,
C0C7DFB829BF34ED00F60E0C /* SideMenu.storyboard in Resources */,
C0EA19C129096D9400E6B40D /* CollectibleDetailImageCell.xib in Resources */,
Expand Down Expand Up @@ -2708,7 +2712,7 @@
repositoryURL = "https://github.com/WalletConnect/WalletConnectSwiftV2";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 1.9.9;
minimumVersion = 1.10.0;
};
};
C07A2DEE2AEA76BF00550E32 /* XCRemoteSwiftPackageReference "Starscream" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,16 +78,16 @@
"location" : "https://github.com/kukai-wallet/kukai-core-swift",
"state" : {
"branch" : "develop",
"revision" : "6cb7cd0d3ad54ad28fa2320ae862a6a423a33160"
"revision" : "2190546a68b7f3815f6b3d5c26a80efae8a8e775"
}
},
{
"identity" : "kukai-crypto-swift",
"kind" : "remoteSourceControl",
"location" : "https://github.com/kukai-wallet/kukai-crypto-swift",
"state" : {
"revision" : "c6533ce0cdbd24803358b765c5b2e570381f1087",
"version" : "1.0.14"
"revision" : "af91c5211fce941ccb6fba51629b145745b7cc12",
"version" : "1.0.16"
}
},
{
Expand Down Expand Up @@ -185,8 +185,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/WalletConnect/WalletConnectSwiftV2",
"state" : {
"revision" : "58d2b49eeac5cf94432e2647b9107577c156a25c",
"version" : "1.9.9"
"revision" : "031c61bfbd4c4eed4a5cb6790152ce736a4f1fba",
"version" : "1.10.0"
}
},
{
Expand Down
4 changes: 4 additions & 0 deletions Kukai Mobile/Kukai Mobile.entitlements
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,9 @@
<array>
<string>CloudKit</string>
</array>
<key>com.apple.security.application-groups</key>
<array>
<string>group.app.kukai.mobile</string>
</array>
</dict>
</plist>
8 changes: 7 additions & 1 deletion Kukai Mobile/Services/WalletConnectService.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public class WalletConnectService {
public func setup() {

// Objects and metadata
Networking.configure(projectId: WalletConnectService.projectId, socketFactory: DefaultSocketFactory())
Networking.configure(groupIdentifier: "group.app.kukai.mobile", projectId: WalletConnectService.projectId, socketFactory: DefaultSocketFactory())
Pair.configure(metadata: WalletConnectService.metadata)


Expand Down Expand Up @@ -108,6 +108,12 @@ public class WalletConnectService {
self?.didCleanAfterDelete = true
}.store(in: &bag)

(Pair.instance as? PairingClient)?.pairingDeletePublisher
.receive(on: DispatchQueue.main)
.sink { data in
Logger.app.info("WC pairingDeletePublisher \(data.code), \(data.message)")
}.store(in: &bag)

Sign.instance.sessionRequestPublisher
.buffer(size: 10, prefetch: .byRequest, whenFull: .dropNewest)
.flatMap(maxPublishers: .max(1)) { [weak self] sessionRequest in
Expand Down
11 changes: 11 additions & 0 deletions Kukai Mobile/security.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?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>Contact</key>
<string>[email protected]</string>
<key>Preferred-Languages</key>
<string>en</string>
</dict>
</plist>

0 comments on commit 55c6fd9

Please sign in to comment.