Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
180 changes: 180 additions & 0 deletions ios/App/App.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,50 @@
objects = {

/* Begin PBXBuildFile section */
2851A7EC448DEA6D3038A56F /* Snapshot.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5D8706633BFF338CAC59A616 /* Snapshot.swift */; };
2FAD9763203C412B000D30F8 /* config.xml in Resources */ = {isa = PBXBuildFile; fileRef = 2FAD9762203C412B000D30F8 /* config.xml */; };
31D5C16A8513A24DBBA285AC /* GamesTableWidget.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 6CAAC698C7DED542C814E5DD /* GamesTableWidget.appex */; };
372EDD1EA34C59218B54F415 /* MainViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = C312694407775F06FDAC59A8 /* MainViewController.swift */; };
4D22ABE92AF431CB00220026 /* CapApp-SPM in Frameworks */ = {isa = PBXBuildFile; productRef = 4D22ABE82AF431CB00220026 /* CapApp-SPM */; };
4D7AD78065319DAA4B934CEB /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = EEBF06D841565A434D0E15A8 /* Foundation.framework */; };
50379B232058CBB4000EE86E /* capacitor.config.json in Resources */ = {isa = PBXBuildFile; fileRef = 50379B222058CBB4000EE86E /* capacitor.config.json */; };
504EC3081FED79650016851F /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 504EC3071FED79650016851F /* AppDelegate.swift */; };
504EC30D1FED79650016851F /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30B1FED79650016851F /* Main.storyboard */; };
504EC30F1FED79650016851F /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 504EC30E1FED79650016851F /* Assets.xcassets */; };
504EC3121FED79650016851F /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 504EC3101FED79650016851F /* LaunchScreen.storyboard */; };
50B271D11FEDC1A000F3C39B /* public in Resources */ = {isa = PBXBuildFile; fileRef = 50B271D01FEDC1A000F3C39B /* public */; };
9582B6832FE993A70072D4E8 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9582B6822FE993A50072D4E8 /* SceneDelegate.swift */; };
DE2ADC9BDC023FEF5ED903E3 /* GamesTableWidget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9C6B13E1E4048D8F69559421 /* GamesTableWidget.swift */; };
FAAD68B62AE1C223CE50C217 /* WidgetBridge.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1AFC67C4F5A9A443A46310D9 /* WidgetBridge.swift */; };
/* End PBXBuildFile section */

/* Begin PBXContainerItemProxy section */
5774AC4E57871B8452D42F46 /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = 504EC2FC1FED79650016851F /* Project object */;
proxyType = 1;
remoteGlobalIDString = 0588352B3DA4F03C258A5DA5;
remoteInfo = GamesTableWidget;
};
/* End PBXContainerItemProxy section */

/* Begin PBXCopyFilesBuildPhase section */
E3CDC095EA52264637B4EB35 /* Embed App Extensions */ = {
isa = PBXCopyFilesBuildPhase;
buildActionMask = 2147483647;
dstPath = "";
dstSubfolderSpec = 13;
files = (
31D5C16A8513A24DBBA285AC /* GamesTableWidget.appex in Embed App Extensions */,
);
name = "Embed App Extensions";
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXCopyFilesBuildPhase section */

/* Begin PBXFileReference section */
1AFC67C4F5A9A443A46310D9 /* WidgetBridge.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = WidgetBridge.swift; sourceTree = "<group>"; };
2AB4FA25A4930857A81C0F16 /* App.entitlements */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.plist.entitlements; name = App.entitlements; path = App/App.entitlements; sourceTree = "<group>"; };
2FAD9762203C412B000D30F8 /* config.xml */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = config.xml; sourceTree = "<group>"; };
50379B222058CBB4000EE86E /* capacitor.config.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = capacitor.config.json; sourceTree = "<group>"; };
504EC3041FED79650016851F /* App.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = App.app; sourceTree = BUILT_PRODUCTS_DIR; };
Expand All @@ -28,8 +60,13 @@
504EC3111FED79650016851F /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
504EC3131FED79650016851F /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
50B271D01FEDC1A000F3C39B /* public */ = {isa = PBXFileReference; lastKnownFileType = folder; path = public; sourceTree = "<group>"; };
5D8706633BFF338CAC59A616 /* Snapshot.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = Snapshot.swift; sourceTree = "<group>"; };
6CAAC698C7DED542C814E5DD /* GamesTableWidget.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = GamesTableWidget.appex; sourceTree = BUILT_PRODUCTS_DIR; };
9582B6822FE993A50072D4E8 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = "<group>"; };
958DCC722DB07C7200EA8C5F /* debug.xcconfig */ = {isa = PBXFileReference; lastKnownFileType = text.xcconfig; name = debug.xcconfig; path = ../debug.xcconfig; sourceTree = SOURCE_ROOT; };
9C6B13E1E4048D8F69559421 /* GamesTableWidget.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = GamesTableWidget.swift; sourceTree = "<group>"; };
C312694407775F06FDAC59A8 /* MainViewController.swift */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = sourcecode.swift; path = MainViewController.swift; sourceTree = "<group>"; };
EEBF06D841565A434D0E15A8 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS26.0.sdk/System/Library/Frameworks/Foundation.framework; sourceTree = DEVELOPER_DIR; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand All @@ -41,22 +78,51 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
C5490A46EA30B876DC5A2A48 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
4D7AD78065319DAA4B934CEB /* Foundation.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
321FB5B4E1442C996805C5CD /* Frameworks */ = {
isa = PBXGroup;
children = (
534A78DE5D4D578A422202DB /* iOS */,
);
name = Frameworks;
sourceTree = "<group>";
};
32EA781D4BDD320BC13839CC /* GamesTableWidget */ = {
isa = PBXGroup;
children = (
5D8706633BFF338CAC59A616 /* Snapshot.swift */,
9C6B13E1E4048D8F69559421 /* GamesTableWidget.swift */,
);
name = GamesTableWidget;
path = GamesTableWidget;
sourceTree = "<group>";
};
504EC2FB1FED79650016851F = {
isa = PBXGroup;
children = (
958DCC722DB07C7200EA8C5F /* debug.xcconfig */,
504EC3061FED79650016851F /* App */,
504EC3051FED79650016851F /* Products */,
321FB5B4E1442C996805C5CD /* Frameworks */,
32EA781D4BDD320BC13839CC /* GamesTableWidget */,
);
sourceTree = "<group>";
};
504EC3051FED79650016851F /* Products */ = {
isa = PBXGroup;
children = (
504EC3041FED79650016851F /* App.app */,
6CAAC698C7DED542C814E5DD /* GamesTableWidget.appex */,
);
name = Products;
sourceTree = "<group>";
Expand All @@ -73,24 +139,54 @@
504EC3131FED79650016851F /* Info.plist */,
2FAD9762203C412B000D30F8 /* config.xml */,
50B271D01FEDC1A000F3C39B /* public */,
1AFC67C4F5A9A443A46310D9 /* WidgetBridge.swift */,
C312694407775F06FDAC59A8 /* MainViewController.swift */,
2AB4FA25A4930857A81C0F16 /* App.entitlements */,
);
path = App;
sourceTree = "<group>";
};
534A78DE5D4D578A422202DB /* iOS */ = {
isa = PBXGroup;
children = (
EEBF06D841565A434D0E15A8 /* Foundation.framework */,
);
name = iOS;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
0588352B3DA4F03C258A5DA5 /* GamesTableWidget */ = {
isa = PBXNativeTarget;
buildConfigurationList = F5F48AFF81F2380A9EE2914C /* Build configuration list for PBXNativeTarget "GamesTableWidget" */;
buildPhases = (
665C91251742E4B59FFB0672 /* Sources */,
C5490A46EA30B876DC5A2A48 /* Frameworks */,
E94EF5566B24CFBEC3F79C06 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = GamesTableWidget;
productName = GamesTableWidget;
productReference = 6CAAC698C7DED542C814E5DD /* GamesTableWidget.appex */;
productType = "com.apple.product-type.app-extension";
};
504EC3031FED79650016851F /* App */ = {
isa = PBXNativeTarget;
buildConfigurationList = 504EC3161FED79650016851F /* Build configuration list for PBXNativeTarget "App" */;
buildPhases = (
504EC3001FED79650016851F /* Sources */,
504EC3011FED79650016851F /* Frameworks */,
504EC3021FED79650016851F /* Resources */,
E3CDC095EA52264637B4EB35 /* Embed App Extensions */,
);
buildRules = (
);
dependencies = (
BC24B699C44F99DD3B51A3F7 /* PBXTargetDependency */,
);
name = App;
packageProductDependencies = (
Expand Down Expand Up @@ -133,6 +229,7 @@
projectRoot = "";
targets = (
504EC3031FED79650016851F /* App */,
0588352B3DA4F03C258A5DA5 /* GamesTableWidget */,
);
};
/* End PBXProject section */
Expand All @@ -151,6 +248,13 @@
);
runOnlyForDeploymentPostprocessing = 0;
};
E94EF5566B24CFBEC3F79C06 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
Expand All @@ -160,11 +264,31 @@
files = (
504EC3081FED79650016851F /* AppDelegate.swift in Sources */,
9582B6832FE993A70072D4E8 /* SceneDelegate.swift in Sources */,
FAAD68B62AE1C223CE50C217 /* WidgetBridge.swift in Sources */,
372EDD1EA34C59218B54F415 /* MainViewController.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
665C91251742E4B59FFB0672 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
2851A7EC448DEA6D3038A56F /* Snapshot.swift in Sources */,
DE2ADC9BDC023FEF5ED903E3 /* GamesTableWidget.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXTargetDependency section */
BC24B699C44F99DD3B51A3F7 /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
name = GamesTableWidget;
target = 0588352B3DA4F03C258A5DA5 /* GamesTableWidget */;
targetProxy = 5774AC4E57871B8452D42F46 /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */

/* Begin PBXVariantGroup section */
504EC30B1FED79650016851F /* Main.storyboard */ = {
isa = PBXVariantGroup;
Expand All @@ -185,6 +309,27 @@
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
082199D6D28AAC0AAF83AA1D /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_ENTITLEMENTS = GamesTableWidget/GamesTableWidget.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 742H5JJX37;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = GamesTableWidget/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.mrwd.gamestable.widget;
PRODUCT_NAME = GamesTableWidget;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
504EC3141FED79650016851F /* Debug */ = {
isa = XCBuildConfiguration;
baseConfigurationReference = 958DCC722DB07C7200EA8C5F /* debug.xcconfig */;
Expand Down Expand Up @@ -299,8 +444,10 @@
baseConfigurationReference = 958DCC722DB07C7200EA8C5F /* debug.xcconfig */;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 742H5JJX37;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -321,8 +468,10 @@
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 742H5JJX37;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
LD_RUNPATH_SEARCH_PATHS = (
Expand All @@ -338,6 +487,28 @@
};
name = Release;
};
65E0533660C4BA30F9512E8A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
CLANG_ENABLE_OBJC_WEAK = NO;
CODE_SIGN_ENTITLEMENTS = GamesTableWidget/GamesTableWidget.entitlements;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = 742H5JJX37;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = GamesTableWidget/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 17.0;
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.mrwd.gamestable.widget;
PRODUCT_NAME = GamesTableWidget;
SDKROOT = iphoneos;
SKIP_INSTALL = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
Expand All @@ -359,6 +530,15 @@
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
F5F48AFF81F2380A9EE2914C /* Build configuration list for PBXNativeTarget "GamesTableWidget" */ = {
isa = XCConfigurationList;
buildConfigurations = (
65E0533660C4BA30F9512E8A /* Release */,
082199D6D28AAC0AAF83AA1D /* Debug */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */

/* Begin XCLocalSwiftPackageReference section */
Expand Down
10 changes: 10 additions & 0 deletions ios/App/App/App.entitlements
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?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>com.apple.security.application-groups</key>
<array>
<string>group.com.mrwd.gamestable</string>
</array>
</dict>
</plist>
22 changes: 22 additions & 0 deletions ios/App/App/MainViewController.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
import Capacitor
import UIKit

/**
* Exists for one line: registering the app's own plugin with the bridge.
*
* Plugins that ship as packages are discovered automatically; one that lives inside the
* app is not, and the only sign is a rejected call at runtime saying the plugin "is not
* implemented on ios" — the Swift compiles, the app builds, and nothing works.
*
* Registration happens in `viewDidLoad`, after `super`, because that is when the bridge
* exists. An earlier attempt used `capacitorDidLoad()`, which reads like the obvious
* hook and does not exist in this version of Capacitor — the override simply never ran,
* and the failure looked identical to not having written the plugin at all. Checking the
* shipped header for the symbol is what settled it.
*/
class MainViewController: CAPBridgeViewController {
override func viewDidLoad() {
super.viewDidLoad()
bridge?.registerPluginInstance(WidgetBridgePlugin())
}
}
2 changes: 1 addition & 1 deletion ios/App/App/SceneDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
guard let windowScene = scene as? UIWindowScene else { return }

window = UIWindow(windowScene: windowScene)
window?.rootViewController = CAPBridgeViewController()
window?.rootViewController = MainViewController()
window?.makeKeyAndVisible()

SceneDelegateProxy.shared.scene(scene, willConnectTo: session, options: connectionOptions)
Expand Down
Loading
Loading