Skip to content

Commit 468d670

Browse files
committed
Update MobileSyncTestApp to use scene lifecycle
1 parent 2692236 commit 468d670

10 files changed

Lines changed: 55 additions & 224 deletions

File tree

libs/MobileSync/MobileSync.xcodeproj/project.pbxproj

Lines changed: 5 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,7 @@
2121
/* End PBXAggregateTarget section */
2222

2323
/* Begin PBXBuildFile section */
24-
4F06AF321C499FD100F70798 /* main.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F06AF311C499FD100F70798 /* main.m */; };
25-
4F06AF351C499FD100F70798 /* AppDelegate.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F06AF341C499FD100F70798 /* AppDelegate.m */; };
26-
4F06AF381C499FD100F70798 /* ViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F06AF371C499FD100F70798 /* ViewController.m */; };
27-
4F06AF3B1C499FD100F70798 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4F06AF391C499FD100F70798 /* Main.storyboard */; };
2824
4F06AF3D1C499FD100F70798 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 4F06AF3C1C499FD100F70798 /* Assets.xcassets */; };
29-
4F06AF401C499FD100F70798 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 4F06AF3E1C499FD100F70798 /* LaunchScreen.storyboard */; };
3025
4F06AFD51C49B19B00F70798 /* MobileSync.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = CE4CE2C91C0E463C009F6029 /* MobileSync.framework */; };
3126
4F06AFD71C49BD8D00F70798 /* MobileSync.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = CE4CE2C91C0E463C009F6029 /* MobileSync.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
3227
4F0CFD892258643400C3DF2B /* TestSyncDownTarget.m in Sources */ = {isa = PBXBuildFile; fileRef = 4F0CFD882258643400C3DF2B /* TestSyncDownTarget.m */; };
@@ -99,6 +94,7 @@
9994
6927E21E283BEFB700A16668 /* BriefcaseSyncDownTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6927E21D283BEFB700A16668 /* BriefcaseSyncDownTests.swift */; };
10095
6927E22B283BF17800A16668 /* BriefcaseObjectInfo.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6927E22A283BF17800A16668 /* BriefcaseObjectInfo.swift */; };
10196
6927E23F283C3E1400A16668 /* SyncTarget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 6927E23E283C3E1400A16668 /* SyncTarget.swift */; };
97+
695583B12FE4DB6C0042CF84 /* MobileSyncTestApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = 695583B02FE4DB5E0042CF84 /* MobileSyncTestApp.swift */; };
10298
696E913D2AD09E7600205884 /* PrivacyInfo.xcprivacy in Resources */ = {isa = PBXBuildFile; fileRef = 696E913B2AD09E6200205884 /* PrivacyInfo.xcprivacy */; };
10399
828E0E541AB398AA004E0AF2 /* TestSyncUpTarget.m in Sources */ = {isa = PBXBuildFile; fileRef = 828E0E531AB398AA004E0AF2 /* TestSyncUpTarget.m */; };
104100
829DA2AF1C12674D0040F5F1 /* MobileSync.h in Headers */ = {isa = PBXBuildFile; fileRef = 829DA2AE1C12674D0040F5F1 /* MobileSync.h */; settings = {ATTRIBUTES = (Public, ); }; };
@@ -307,14 +303,7 @@
307303

308304
/* Begin PBXFileReference section */
309305
4F06AF2E1C499FD100F70798 /* MobileSyncTestApp.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = MobileSyncTestApp.app; sourceTree = BUILT_PRODUCTS_DIR; };
310-
4F06AF311C499FD100F70798 /* main.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = main.m; sourceTree = "<group>"; };
311-
4F06AF331C499FD100F70798 /* AppDelegate.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = AppDelegate.h; sourceTree = "<group>"; };
312-
4F06AF341C499FD100F70798 /* AppDelegate.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = AppDelegate.m; sourceTree = "<group>"; };
313-
4F06AF361C499FD100F70798 /* ViewController.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = ViewController.h; sourceTree = "<group>"; };
314-
4F06AF371C499FD100F70798 /* ViewController.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = ViewController.m; sourceTree = "<group>"; };
315-
4F06AF3A1C499FD100F70798 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
316306
4F06AF3C1C499FD100F70798 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
317-
4F06AF3F1C499FD100F70798 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
318307
4F06AF411C499FD100F70798 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
319308
4F0CFD792258643400C3DF2B /* TestSyncDownTarget.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = TestSyncDownTarget.h; path = Targets/TestSyncDownTarget.h; sourceTree = "<group>"; };
320309
4F0CFD882258643400C3DF2B /* TestSyncDownTarget.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = TestSyncDownTarget.m; path = Targets/TestSyncDownTarget.m; sourceTree = "<group>"; };
@@ -399,6 +388,7 @@
399388
6927E21D283BEFB700A16668 /* BriefcaseSyncDownTests.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = BriefcaseSyncDownTests.swift; sourceTree = "<group>"; };
400389
6927E22A283BF17800A16668 /* BriefcaseObjectInfo.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BriefcaseObjectInfo.swift; sourceTree = "<group>"; };
401390
6927E23E283C3E1400A16668 /* SyncTarget.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SyncTarget.swift; sourceTree = "<group>"; };
391+
695583B02FE4DB5E0042CF84 /* MobileSyncTestApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MobileSyncTestApp.swift; sourceTree = "<group>"; };
402392
696E913B2AD09E6200205884 /* PrivacyInfo.xcprivacy */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = PrivacyInfo.xcprivacy; sourceTree = "<group>"; };
403393
8207891D1A1BBC56009E9831 /* SFMobileSyncPersistableObject.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SFMobileSyncPersistableObject.h; sourceTree = "<group>"; };
404394
820789211A1D2555009E9831 /* SFMobileSyncPersistableObject.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SFMobileSyncPersistableObject.m; sourceTree = "<group>"; };
@@ -514,29 +504,15 @@
514504
isa = PBXGroup;
515505
children = (
516506
B7282F481D8C715400475F79 /* MobileSyncTestApp.entitlements */,
517-
4F06AF331C499FD100F70798 /* AppDelegate.h */,
518-
4F06AF341C499FD100F70798 /* AppDelegate.m */,
519-
4F06AF361C499FD100F70798 /* ViewController.h */,
520-
4F06AF371C499FD100F70798 /* ViewController.m */,
521-
4F06AF391C499FD100F70798 /* Main.storyboard */,
507+
695583B02FE4DB5E0042CF84 /* MobileSyncTestApp.swift */,
522508
4F06AF3C1C499FD100F70798 /* Assets.xcassets */,
523-
4F06AF3E1C499FD100F70798 /* LaunchScreen.storyboard */,
524509
4F06AF411C499FD100F70798 /* Info.plist */,
525-
4F06AF301C499FD100F70798 /* Supporting Files */,
526510
4F3D60351FBFB0AF00D1830F /* globalsyncs.json */,
527511
4F3D603A1FBFB11C00D1830F /* usersyncs.json */,
528512
);
529513
path = MobileSyncTestApp;
530514
sourceTree = "<group>";
531515
};
532-
4F06AF301C499FD100F70798 /* Supporting Files */ = {
533-
isa = PBXGroup;
534-
children = (
535-
4F06AF311C499FD100F70798 /* main.m */,
536-
);
537-
name = "Supporting Files";
538-
sourceTree = "<group>";
539-
};
540516
4F5BBBCD235F72C400E6D619 /* Extensions */ = {
541517
isa = PBXGroup;
542518
children = (
@@ -988,6 +964,7 @@
988964
TargetAttributes = {
989965
4F06AF2D1C499FD100F70798 = {
990966
CreatedOnToolsVersion = 7.2;
967+
LastSwiftMigration = 2630;
991968
ProvisioningStyle = Manual;
992969
SystemCapabilities = {
993970
com.apple.Keychain = {
@@ -1136,11 +1113,9 @@
11361113
isa = PBXResourcesBuildPhase;
11371114
buildActionMask = 2147483647;
11381115
files = (
1139-
4F06AF401C499FD100F70798 /* LaunchScreen.storyboard in Resources */,
11401116
4F3D60361FBFB0AF00D1830F /* globalsyncs.json in Resources */,
11411117
4F06AF3D1C499FD100F70798 /* Assets.xcassets in Resources */,
11421118
4F3D603B1FBFB11C00D1830F /* usersyncs.json in Resources */,
1143-
4F06AF3B1C499FD100F70798 /* Main.storyboard in Resources */,
11441119
);
11451120
runOnlyForDeploymentPostprocessing = 0;
11461121
};
@@ -1212,9 +1187,7 @@
12121187
isa = PBXSourcesBuildPhase;
12131188
buildActionMask = 2147483647;
12141189
files = (
1215-
4F06AF381C499FD100F70798 /* ViewController.m in Sources */,
1216-
4F06AF351C499FD100F70798 /* AppDelegate.m in Sources */,
1217-
4F06AF321C499FD100F70798 /* main.m in Sources */,
1190+
695583B12FE4DB6C0042CF84 /* MobileSyncTestApp.swift in Sources */,
12181191
);
12191192
runOnlyForDeploymentPostprocessing = 0;
12201193
};
@@ -1327,22 +1300,6 @@
13271300
/* End PBXTargetDependency section */
13281301

13291302
/* Begin PBXVariantGroup section */
1330-
4F06AF391C499FD100F70798 /* Main.storyboard */ = {
1331-
isa = PBXVariantGroup;
1332-
children = (
1333-
4F06AF3A1C499FD100F70798 /* Base */,
1334-
);
1335-
name = Main.storyboard;
1336-
sourceTree = "<group>";
1337-
};
1338-
4F06AF3E1C499FD100F70798 /* LaunchScreen.storyboard */ = {
1339-
isa = PBXVariantGroup;
1340-
children = (
1341-
4F06AF3F1C499FD100F70798 /* Base */,
1342-
);
1343-
name = LaunchScreen.storyboard;
1344-
sourceTree = "<group>";
1345-
};
13461303
CEAAAE61195911E600CBBFE9 /* InfoPlist.strings */ = {
13471304
isa = PBXVariantGroup;
13481305
children = (

libs/MobileSync/MobileSyncTestApp/AppDelegate.h

Lines changed: 0 additions & 17 deletions
This file was deleted.

libs/MobileSync/MobileSyncTestApp/AppDelegate.m

Lines changed: 0 additions & 45 deletions
This file was deleted.

libs/MobileSync/MobileSyncTestApp/Base.lproj/LaunchScreen.storyboard

Lines changed: 0 additions & 27 deletions
This file was deleted.

libs/MobileSync/MobileSyncTestApp/Base.lproj/Main.storyboard

Lines changed: 0 additions & 25 deletions
This file was deleted.

libs/MobileSync/MobileSyncTestApp/Info.plist

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,18 @@
2222
<string>1</string>
2323
<key>LSRequiresIPhoneOS</key>
2424
<true/>
25-
<key>UILaunchStoryboardName</key>
26-
<string>LaunchScreen</string>
27-
<key>UIMainStoryboardFile</key>
28-
<string>Main</string>
25+
<key>UIApplicationSceneManifest</key>
26+
<dict>
27+
<key>UIApplicationSupportsMultipleScenes</key>
28+
<false/>
29+
<key>UISceneConfigurations</key>
30+
<dict/>
31+
</dict>
32+
<key>UILaunchScreen</key>
33+
<dict>
34+
<key>UILaunchScreen</key>
35+
<string></string>
36+
</dict>
2937
<key>UIRequiredDeviceCapabilities</key>
3038
<array>
3139
<string>armv7</string>
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
//
2+
// MobileSyncTestApp.swift
3+
// MobileSync
4+
//
5+
// Created by Brianna Birman on 6/18/26.
6+
// Copyright (c) 2026-present, salesforce.com, inc. All rights reserved.
7+
//
8+
// Redistribution and use of this software in source and binary forms, with or without modification,
9+
// are permitted provided that the following conditions are met:
10+
// * Redistributions of source code must retain the above copyright notice, this list of conditions
11+
// and the following disclaimer.
12+
// * Redistributions in binary form must reproduce the above copyright notice, this list of
13+
// conditions and the following disclaimer in the documentation and/or other materials provided
14+
// with the distribution.
15+
// * Neither the name of salesforce.com, inc. nor the names of its contributors may be used to
16+
// endorse or promote products derived from this software without specific prior written
17+
// permission of salesforce.com, inc.
18+
//
19+
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
20+
// IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
21+
// FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
22+
// CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23+
// DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
24+
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
25+
// WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY
26+
// WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27+
28+
import SwiftUI
29+
30+
@main
31+
struct MobileSyncTestApp: App {
32+
var body: some Scene {
33+
WindowGroup {
34+
Text("MobileSync Test App")
35+
.padding()
36+
}
37+
}
38+
}

libs/MobileSync/MobileSyncTestApp/ViewController.h

Lines changed: 0 additions & 15 deletions
This file was deleted.

libs/MobileSync/MobileSyncTestApp/ViewController.m

Lines changed: 0 additions & 27 deletions
This file was deleted.

libs/MobileSync/MobileSyncTestApp/main.m

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)