Skip to content

Commit 5a91db4

Browse files
committed
Fix warnings and deprecated APIs
1 parent d078d3c commit 5a91db4

File tree

8 files changed

+21
-19
lines changed

8 files changed

+21
-19
lines changed

pass.xcodeproj/project.pbxproj

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
archiveVersion = 1;
44
classes = {
55
};
6-
objectVersion = 52;
6+
objectVersion = 54;
77
objects = {
88

99
/* Begin PBXBuildFile section */
@@ -150,9 +150,9 @@
150150
9A996C5726DDF65900A4485D /* Base32 in Frameworks */ = {isa = PBXBuildFile; productRef = 9A996C5626DDF65900A4485D /* Base32 */; };
151151
9A996C5826DEB0D100A4485D /* passKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A26075781EEC6F34005DB03E /* passKit.framework */; };
152152
9A996C5926DEB0D200A4485D /* passKit.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = A26075781EEC6F34005DB03E /* passKit.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
153-
9A996C6426DEB93F00A4485D /* passAutoFillExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = A239F5952158C08B00576CBF /* passAutoFillExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
154-
9A996C6826DEB96B00A4485D /* passShortcuts.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 30A69945240EED5E00B7D967 /* passShortcuts.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
155-
9A996C6B26DEB97600A4485D /* passExtension.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = A26700241EEC466A00176B8A /* passExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
153+
9A996C6426DEB93F00A4485D /* passAutoFillExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = A239F5952158C08B00576CBF /* passAutoFillExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
154+
9A996C6826DEB96B00A4485D /* passShortcuts.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 30A69945240EED5E00B7D967 /* passShortcuts.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
155+
9A996C6B26DEB97600A4485D /* passExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = A26700241EEC466A00176B8A /* passExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
156156
9A996C6E26DEB99200A4485D /* passKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = A26075781EEC6F34005DB03E /* passKit.framework */; };
157157
9ADAB21D26DDA52400900F10 /* Gopenpgp.xcframework in Frameworks */ = {isa = PBXBuildFile; fileRef = 9ADAB21C26DDA52400900F10 /* Gopenpgp.xcframework */; };
158158
9ADC954124418A5F0005402E /* PasswordStoreTest.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9ADC954024418A5F0005402E /* PasswordStoreTest.swift */; };
@@ -312,17 +312,17 @@
312312
name = "Embed Frameworks";
313313
runOnlyForDeploymentPostprocessing = 0;
314314
};
315-
9A996C6726DEB93F00A4485D /* Embed App Extensions */ = {
315+
9A996C6726DEB93F00A4485D /* Embed Foundation Extensions */ = {
316316
isa = PBXCopyFilesBuildPhase;
317317
buildActionMask = 2147483647;
318318
dstPath = "";
319319
dstSubfolderSpec = 13;
320320
files = (
321-
9A996C6426DEB93F00A4485D /* passAutoFillExtension.appex in Embed App Extensions */,
322-
9A996C6B26DEB97600A4485D /* passExtension.appex in Embed App Extensions */,
323-
9A996C6826DEB96B00A4485D /* passShortcuts.appex in Embed App Extensions */,
321+
9A996C6426DEB93F00A4485D /* passAutoFillExtension.appex in Embed Foundation Extensions */,
322+
9A996C6B26DEB97600A4485D /* passExtension.appex in Embed Foundation Extensions */,
323+
9A996C6826DEB96B00A4485D /* passShortcuts.appex in Embed Foundation Extensions */,
324324
);
325-
name = "Embed App Extensions";
325+
name = "Embed Foundation Extensions";
326326
runOnlyForDeploymentPostprocessing = 0;
327327
};
328328
/* End PBXCopyFilesBuildPhase section */
@@ -1223,7 +1223,7 @@
12231223
308800C124EB0D3600E87ED3 /* SwiftLint */,
12241224
9A996C4726DDEAF100A4485D /* Remove SPM Duplicate Frameworks */,
12251225
9A996C5A26DEB0D200A4485D /* Embed Frameworks */,
1226-
9A996C6726DEB93F00A4485D /* Embed App Extensions */,
1226+
9A996C6726DEB93F00A4485D /* Embed Foundation Extensions */,
12271227
);
12281228
buildRules = (
12291229
);
@@ -1258,7 +1258,7 @@
12581258
isa = PBXProject;
12591259
attributes = {
12601260
LastSwiftUpdateCheck = 1130;
1261-
LastUpgradeCheck = 1320;
1261+
LastUpgradeCheck = 1420;
12621262
ORGANIZATIONNAME = "Bob Sun";
12631263
TargetAttributes = {
12641264
30A69944240EED5E00B7D967 = {
@@ -1453,6 +1453,7 @@
14531453
/* Begin PBXShellScriptBuildPhase section */
14541454
3005F34F24A9143C000519B5 /* SwiftFormat */ = {
14551455
isa = PBXShellScriptBuildPhase;
1456+
alwaysOutOfDate = 1;
14561457
buildActionMask = 2147483647;
14571458
files = (
14581459
);
@@ -1471,6 +1472,7 @@
14711472
};
14721473
308800C124EB0D3600E87ED3 /* SwiftLint */ = {
14731474
isa = PBXShellScriptBuildPhase;
1475+
alwaysOutOfDate = 1;
14741476
buildActionMask = 2147483647;
14751477
files = (
14761478
);
@@ -1489,6 +1491,7 @@
14891491
};
14901492
9A996C4726DDEAF100A4485D /* Remove SPM Duplicate Frameworks */ = {
14911493
isa = PBXShellScriptBuildPhase;
1494+
alwaysOutOfDate = 1;
14921495
buildActionMask = 2147483647;
14931496
files = (
14941497
);

pass.xcodeproj/xcshareddata/xcschemes/pass.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1320"
3+
LastUpgradeVersion = "1420"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

pass.xcodeproj/xcshareddata/xcschemes/passAutoFillExtension.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1320"
3+
LastUpgradeVersion = "1420"
44
wasCreatedForAppExtension = "YES"
55
version = "2.0">
66
<BuildAction

pass.xcodeproj/xcshareddata/xcschemes/passExtension.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1320"
3+
LastUpgradeVersion = "1420"
44
wasCreatedForAppExtension = "YES"
55
version = "2.0">
66
<BuildAction

pass.xcodeproj/xcshareddata/xcschemes/passKit.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1320"
3+
LastUpgradeVersion = "1420"
44
version = "1.3">
55
<BuildAction
66
parallelizeBuildables = "YES"

pass.xcodeproj/xcshareddata/xcschemes/passShortcuts.xcscheme

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<Scheme
3-
LastUpgradeVersion = "1320"
3+
LastUpgradeVersion = "1420"
44
wasCreatedForAppExtension = "YES"
55
version = "2.0">
66
<BuildAction

pass/Controllers/AboutRepositoryTableViewController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ class AboutRepositoryTableViewController: BasicStaticTableViewController {
1414

1515
private var needRefresh = false
1616
private var indicator: UIActivityIndicatorView = {
17-
let indicator = UIActivityIndicatorView(style: .gray)
17+
let indicator = UIActivityIndicatorView(style: .medium)
1818
return indicator
1919
}()
2020

pass/Controllers/PasswordDetailTableViewController.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,7 @@ class PasswordDetailTableViewController: UITableViewController, UIGestureRecogni
355355
let nextHOTPItem = UIMenuItem(title: "NextPassword".localize(), action: #selector(LabelTableViewCell.getNextHOTP))
356356
let openURLItem = UIMenuItem(title: "CopyAndOpen".localize(), action: #selector(LabelTableViewCell.openLink))
357357
menuController.menuItems = [revealItem, concealItem, nextHOTPItem, openURLItem]
358-
menuController.setTargetRect(tappedCell.contentLabel.frame, in: tappedCell.contentLabel.superview!)
359-
menuController.setMenuVisible(true, animated: true)
358+
menuController.showMenu(from: tappedCell.contentLabel.superview!, rect: tappedCell.contentLabel.frame)
360359
}
361360
}
362361
}

0 commit comments

Comments
 (0)