Commit aa7e9222 authored by yqz's avatar yqz

没有widgets的正常版本

parent d0038a1f
//
// AppIntent.swift
// BatteryWidget
//
// Created by edy on 2025/4/2.
//
import WidgetKit
import AppIntents
//struct ConfigurationAppIntent: WidgetConfigurationIntent {
// static var title: LocalizedStringResource { "Configuration" }
// static var description: IntentDescription { "This is an example widget." }
//
// // An example configurable parameter.
// @Parameter(title: "Favorite Emoji", default: "😃")
// var favoriteEmoji: String
//}
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "dark"
}
],
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
},
{
"appearances" : [
{
"appearance" : "luminosity",
"value" : "tinted"
}
],
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
//
// BatteryWidget.swift
// BatteryWidget
//
// Created by edy on 2025/4/2.
//
import WidgetKit
import SwiftUI
struct Provider: TimelineProvider {
func placeholder(in context: Context) -> SimpleEntry {
SimpleEntry(date: Date(), type: 0, style: 0, battery: 0, storage: 0)
}
func getSnapshot(in context: Context, completion: @escaping (SimpleEntry) -> Void) {
let entry = loadSharedData()
completion(entry)
}
func getTimeline(in context: Context, completion: @escaping (Timeline<SimpleEntry>) -> Void) {
let entry = loadSharedData()
let timeline = Timeline(entries: [entry], policy: .after(Date().addingTimeInterval(60))) // 每小时更新
completion(timeline)
}
private func loadSharedData() -> SimpleEntry {
guard let sharedDefaults = UserDefaults(suiteName: "group.com.app.phonemanager"),
let data:[String:Int] = sharedDefaults.object(forKey: "widgetSharedData") as? [String:Int] else {
return SimpleEntry(date: Date(), type: 0, style: 0, battery: 0, storage: 0)
}
return SimpleEntry(date: Date(), type: 0, style: 0, battery: 0, storage: 0)
}
}
struct SimpleEntry: TimelineEntry {
let date: Date
let type: Int
let style:Int
let battery:Int
let storage:Int
}
struct BatteryWidgetEntryView : View {
var entry: Provider.Entry
var body: some View {
VStack {
Text("Time:")
Text(entry.date, style: .time)
}
}
}
struct BatteryWidget: Widget {
let kind: String = "BatteryWidget"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider:Provider()) { entry in
BatteryWidgetEntryView(entry: entry)
}
}
}
//extension ConfigurationAppIntent {
// fileprivate static var smiley: ConfigurationAppIntent {
// let intent = ConfigurationAppIntent()
// intent.favoriteEmoji = "😀"
// return intent
// }
//
// fileprivate static var starEyes: ConfigurationAppIntent {
// let intent = ConfigurationAppIntent()
// intent.favoriteEmoji = "🤩"
// return intent
// }
//}
//#Preview(as: .systemSmall) {
// BatteryWidget()
//} timeline: {
// SimpleEntry(date: .now, type: 0, style: 0, battery: 24, storage: 39)
//}
//
// BatteryWidgetBundle.swift
// BatteryWidget
//
// Created by edy on 2025/4/2.
//
import WidgetKit
import SwiftUI
@main
struct BatteryWidgetBundle: WidgetBundle {
var body: some Widget {
BatteryWidget()
}
}
<?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>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>
<string>com.apple.widgetkit-extension</string>
</dict>
</dict>
</plist>
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict/> <dict>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.app.phonemanager</string>
</array>
</dict>
</plist> </plist>
...@@ -7,22 +7,9 @@ ...@@ -7,22 +7,9 @@
objects = { objects = {
/* Begin PBXBuildFile section */ /* Begin PBXBuildFile section */
04BD915E2D9D68AD00055CEB /* WidgetKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04BD915D2D9D68AD00055CEB /* WidgetKit.framework */; };
04BD91602D9D68AD00055CEB /* SwiftUI.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 04BD915F2D9D68AD00055CEB /* SwiftUI.framework */; };
04BD916D2D9D68AF00055CEB /* BatteryWidgetExtension.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 04BD915C2D9D68AD00055CEB /* BatteryWidgetExtension.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; };
3A00E856852A8783E544CD7D /* Pods_PhoneManager.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6028F60B696E2F97EAA2325C /* Pods_PhoneManager.framework */; }; 3A00E856852A8783E544CD7D /* Pods_PhoneManager.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 6028F60B696E2F97EAA2325C /* Pods_PhoneManager.framework */; };
/* End PBXBuildFile section */ /* End PBXBuildFile section */
/* Begin PBXContainerItemProxy section */
04BD916B2D9D68AF00055CEB /* PBXContainerItemProxy */ = {
isa = PBXContainerItemProxy;
containerPortal = EB388E532D8A61A800629B0D /* Project object */;
proxyType = 1;
remoteGlobalIDString = 04BD915B2D9D68AD00055CEB;
remoteInfo = BatteryWidgetExtension;
};
/* End PBXContainerItemProxy section */
/* Begin PBXCopyFilesBuildPhase section */ /* Begin PBXCopyFilesBuildPhase section */
04BD916E2D9D68AF00055CEB /* Embed Foundation Extensions */ = { 04BD916E2D9D68AF00055CEB /* Embed Foundation Extensions */ = {
isa = PBXCopyFilesBuildPhase; isa = PBXCopyFilesBuildPhase;
...@@ -30,7 +17,6 @@ ...@@ -30,7 +17,6 @@
dstPath = ""; dstPath = "";
dstSubfolderSpec = 13; dstSubfolderSpec = 13;
files = ( files = (
04BD916D2D9D68AF00055CEB /* BatteryWidgetExtension.appex in Embed Foundation Extensions */,
); );
name = "Embed Foundation Extensions"; name = "Embed Foundation Extensions";
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
...@@ -38,7 +24,6 @@ ...@@ -38,7 +24,6 @@
/* End PBXCopyFilesBuildPhase section */ /* End PBXCopyFilesBuildPhase section */
/* Begin PBXFileReference section */ /* Begin PBXFileReference section */
04BD915C2D9D68AD00055CEB /* BatteryWidgetExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = BatteryWidgetExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; };
04BD915D2D9D68AD00055CEB /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; }; 04BD915D2D9D68AD00055CEB /* WidgetKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = WidgetKit.framework; path = System/Library/Frameworks/WidgetKit.framework; sourceTree = SDKROOT; };
04BD915F2D9D68AD00055CEB /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; }; 04BD915F2D9D68AD00055CEB /* SwiftUI.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = SwiftUI.framework; path = System/Library/Frameworks/SwiftUI.framework; sourceTree = SDKROOT; };
295785B9009F20AC4C1C36C4 /* Pods-PhoneManager.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PhoneManager.debug.xcconfig"; path = "Target Support Files/Pods-PhoneManager/Pods-PhoneManager.debug.xcconfig"; sourceTree = "<group>"; }; 295785B9009F20AC4C1C36C4 /* Pods-PhoneManager.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PhoneManager.debug.xcconfig"; path = "Target Support Files/Pods-PhoneManager/Pods-PhoneManager.debug.xcconfig"; sourceTree = "<group>"; };
...@@ -48,13 +33,6 @@ ...@@ -48,13 +33,6 @@
/* End PBXFileReference section */ /* End PBXFileReference section */
/* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */ /* Begin PBXFileSystemSynchronizedBuildFileExceptionSet section */
04BD91722D9D68AF00055CEB /* Exceptions for "BatteryWidget" folder in "BatteryWidgetExtension" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = (
Info.plist,
);
target = 04BD915B2D9D68AD00055CEB /* BatteryWidgetExtension */;
};
EB388E6D2D8A61AA00629B0D /* Exceptions for "PhoneManager" folder in "PhoneManager" target */ = { EB388E6D2D8A61AA00629B0D /* Exceptions for "PhoneManager" folder in "PhoneManager" target */ = {
isa = PBXFileSystemSynchronizedBuildFileExceptionSet; isa = PBXFileSystemSynchronizedBuildFileExceptionSet;
membershipExceptions = ( membershipExceptions = (
...@@ -65,14 +43,6 @@ ...@@ -65,14 +43,6 @@
/* End PBXFileSystemSynchronizedBuildFileExceptionSet section */ /* End PBXFileSystemSynchronizedBuildFileExceptionSet section */
/* Begin PBXFileSystemSynchronizedRootGroup section */ /* Begin PBXFileSystemSynchronizedRootGroup section */
04BD91612D9D68AD00055CEB /* BatteryWidget */ = {
isa = PBXFileSystemSynchronizedRootGroup;
exceptions = (
04BD91722D9D68AF00055CEB /* Exceptions for "BatteryWidget" folder in "BatteryWidgetExtension" target */,
);
path = BatteryWidget;
sourceTree = "<group>";
};
EB388E5D2D8A61A800629B0D /* PhoneManager */ = { EB388E5D2D8A61A800629B0D /* PhoneManager */ = {
isa = PBXFileSystemSynchronizedRootGroup; isa = PBXFileSystemSynchronizedRootGroup;
exceptions = ( exceptions = (
...@@ -84,15 +54,6 @@ ...@@ -84,15 +54,6 @@
/* End PBXFileSystemSynchronizedRootGroup section */ /* End PBXFileSystemSynchronizedRootGroup section */
/* Begin PBXFrameworksBuildPhase section */ /* Begin PBXFrameworksBuildPhase section */
04BD91592D9D68AD00055CEB /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
04BD91602D9D68AD00055CEB /* SwiftUI.framework in Frameworks */,
04BD915E2D9D68AD00055CEB /* WidgetKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
EB388E582D8A61A800629B0D /* Frameworks */ = { EB388E582D8A61A800629B0D /* Frameworks */ = {
isa = PBXFrameworksBuildPhase; isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
...@@ -127,7 +88,6 @@ ...@@ -127,7 +88,6 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
EB388E5D2D8A61A800629B0D /* PhoneManager */, EB388E5D2D8A61A800629B0D /* PhoneManager */,
04BD91612D9D68AD00055CEB /* BatteryWidget */,
EB388E5C2D8A61A800629B0D /* Products */, EB388E5C2D8A61A800629B0D /* Products */,
CB2ACD1E9442B4500087E831 /* Pods */, CB2ACD1E9442B4500087E831 /* Pods */,
27ECDADD9059AB5043B8E1E9 /* Frameworks */, 27ECDADD9059AB5043B8E1E9 /* Frameworks */,
...@@ -138,7 +98,6 @@ ...@@ -138,7 +98,6 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
EB388E5B2D8A61A800629B0D /* PhoneManager.app */, EB388E5B2D8A61A800629B0D /* PhoneManager.app */,
04BD915C2D9D68AD00055CEB /* BatteryWidgetExtension.appex */,
); );
name = Products; name = Products;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -146,28 +105,6 @@ ...@@ -146,28 +105,6 @@
/* End PBXGroup section */ /* End PBXGroup section */
/* Begin PBXNativeTarget section */ /* Begin PBXNativeTarget section */
04BD915B2D9D68AD00055CEB /* BatteryWidgetExtension */ = {
isa = PBXNativeTarget;
buildConfigurationList = 04BD91712D9D68AF00055CEB /* Build configuration list for PBXNativeTarget "BatteryWidgetExtension" */;
buildPhases = (
04BD91582D9D68AD00055CEB /* Sources */,
04BD91592D9D68AD00055CEB /* Frameworks */,
04BD915A2D9D68AD00055CEB /* Resources */,
);
buildRules = (
);
dependencies = (
);
fileSystemSynchronizedGroups = (
04BD91612D9D68AD00055CEB /* BatteryWidget */,
);
name = BatteryWidgetExtension;
packageProductDependencies = (
);
productName = BatteryWidgetExtension;
productReference = 04BD915C2D9D68AD00055CEB /* BatteryWidgetExtension.appex */;
productType = "com.apple.product-type.app-extension";
};
EB388E5A2D8A61A800629B0D /* PhoneManager */ = { EB388E5A2D8A61A800629B0D /* PhoneManager */ = {
isa = PBXNativeTarget; isa = PBXNativeTarget;
buildConfigurationList = EB388E6E2D8A61AA00629B0D /* Build configuration list for PBXNativeTarget "PhoneManager" */; buildConfigurationList = EB388E6E2D8A61AA00629B0D /* Build configuration list for PBXNativeTarget "PhoneManager" */;
...@@ -182,7 +119,6 @@ ...@@ -182,7 +119,6 @@
buildRules = ( buildRules = (
); );
dependencies = ( dependencies = (
04BD916C2D9D68AF00055CEB /* PBXTargetDependency */,
); );
fileSystemSynchronizedGroups = ( fileSystemSynchronizedGroups = (
EB388E5D2D8A61A800629B0D /* PhoneManager */, EB388E5D2D8A61A800629B0D /* PhoneManager */,
...@@ -202,9 +138,6 @@ ...@@ -202,9 +138,6 @@
LastSwiftUpdateCheck = 1620; LastSwiftUpdateCheck = 1620;
LastUpgradeCheck = 1620; LastUpgradeCheck = 1620;
TargetAttributes = { TargetAttributes = {
04BD915B2D9D68AD00055CEB = {
CreatedOnToolsVersion = 16.2;
};
EB388E5A2D8A61A800629B0D = { EB388E5A2D8A61A800629B0D = {
CreatedOnToolsVersion = 16.2; CreatedOnToolsVersion = 16.2;
LastSwiftMigration = 1620; LastSwiftMigration = 1620;
...@@ -226,19 +159,11 @@ ...@@ -226,19 +159,11 @@
projectRoot = ""; projectRoot = "";
targets = ( targets = (
EB388E5A2D8A61A800629B0D /* PhoneManager */, EB388E5A2D8A61A800629B0D /* PhoneManager */,
04BD915B2D9D68AD00055CEB /* BatteryWidgetExtension */,
); );
}; };
/* End PBXProject section */ /* End PBXProject section */
/* Begin PBXResourcesBuildPhase section */ /* Begin PBXResourcesBuildPhase section */
04BD915A2D9D68AD00055CEB /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
EB388E592D8A61A800629B0D /* Resources */ = { EB388E592D8A61A800629B0D /* Resources */ = {
isa = PBXResourcesBuildPhase; isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
...@@ -291,13 +216,6 @@ ...@@ -291,13 +216,6 @@
/* End PBXShellScriptBuildPhase section */ /* End PBXShellScriptBuildPhase section */
/* Begin PBXSourcesBuildPhase section */ /* Begin PBXSourcesBuildPhase section */
04BD91582D9D68AD00055CEB /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
EB388E572D8A61A800629B0D /* Sources */ = { EB388E572D8A61A800629B0D /* Sources */ = {
isa = PBXSourcesBuildPhase; isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647; buildActionMask = 2147483647;
...@@ -307,83 +225,7 @@ ...@@ -307,83 +225,7 @@
}; };
/* End PBXSourcesBuildPhase section */ /* End PBXSourcesBuildPhase section */
/* Begin PBXTargetDependency section */
04BD916C2D9D68AF00055CEB /* PBXTargetDependency */ = {
isa = PBXTargetDependency;
target = 04BD915B2D9D68AD00055CEB /* BatteryWidgetExtension */;
targetProxy = 04BD916B2D9D68AF00055CEB /* PBXContainerItemProxy */;
};
/* End PBXTargetDependency section */
/* Begin XCBuildConfiguration section */ /* Begin XCBuildConfiguration section */
04BD916F2D9D68AF00055CEB /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
CODE_SIGN_ENTITLEMENTS = BatteryWidgetExtension.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = BatteryWidget/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = BatteryWidget;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.app.phonemanager.BatteryWidget;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
04BD91702D9D68AF00055CEB /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
ASSETCATALOG_COMPILER_WIDGET_BACKGROUND_COLOR_NAME = WidgetBackground;
CODE_SIGN_ENTITLEMENTS = BatteryWidgetExtension.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
DEVELOPMENT_TEAM = "";
ENABLE_USER_SCRIPT_SANDBOXING = YES;
GENERATE_INFOPLIST_FILE = YES;
INFOPLIST_FILE = BatteryWidget/Info.plist;
INFOPLIST_KEY_CFBundleDisplayName = BatteryWidget;
INFOPLIST_KEY_NSHumanReadableCopyright = "";
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
"@executable_path/../../Frameworks",
);
MARKETING_VERSION = 1.0;
PRODUCT_BUNDLE_IDENTIFIER = com.app.phonemanager.BatteryWidget;
PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = "";
SKIP_INSTALL = YES;
SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
EB388E6F2D8A61AA00629B0D /* Debug */ = { EB388E6F2D8A61AA00629B0D /* Debug */ = {
isa = XCBuildConfiguration; isa = XCBuildConfiguration;
baseConfigurationReference = 295785B9009F20AC4C1C36C4 /* Pods-PhoneManager.debug.xcconfig */; baseConfigurationReference = 295785B9009F20AC4C1C36C4 /* Pods-PhoneManager.debug.xcconfig */;
...@@ -418,7 +260,7 @@ ...@@ -418,7 +260,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.app.phonemanager; PRODUCT_BUNDLE_IDENTIFIER = com.app.phonemanager;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = phonemanager_dev; "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = phonemanager_dev1;
SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "PhoneManager/Class/Tool/Class/OC/PhoneManager-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "PhoneManager/Class/Tool/Class/OC/PhoneManager-Bridging-Header.h";
SWIFT_OPTIMIZATION_LEVEL = "-Onone"; SWIFT_OPTIMIZATION_LEVEL = "-Onone";
...@@ -461,7 +303,7 @@ ...@@ -461,7 +303,7 @@
PRODUCT_BUNDLE_IDENTIFIER = com.app.phonemanager; PRODUCT_BUNDLE_IDENTIFIER = com.app.phonemanager;
PRODUCT_NAME = "$(TARGET_NAME)"; PRODUCT_NAME = "$(TARGET_NAME)";
PROVISIONING_PROFILE_SPECIFIER = ""; PROVISIONING_PROFILE_SPECIFIER = "";
"PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = phonemanager_dev; "PROVISIONING_PROFILE_SPECIFIER[sdk=iphoneos*]" = phonemanager_dev1;
SWIFT_EMIT_LOC_STRINGS = YES; SWIFT_EMIT_LOC_STRINGS = YES;
SWIFT_OBJC_BRIDGING_HEADER = "PhoneManager/Class/Tool/Class/OC/PhoneManager-Bridging-Header.h"; SWIFT_OBJC_BRIDGING_HEADER = "PhoneManager/Class/Tool/Class/OC/PhoneManager-Bridging-Header.h";
SWIFT_VERSION = 5.0; SWIFT_VERSION = 5.0;
...@@ -593,15 +435,6 @@ ...@@ -593,15 +435,6 @@
/* End XCBuildConfiguration section */ /* End XCBuildConfiguration section */
/* Begin XCConfigurationList section */ /* Begin XCConfigurationList section */
04BD91712D9D68AF00055CEB /* Build configuration list for PBXNativeTarget "BatteryWidgetExtension" */ = {
isa = XCConfigurationList;
buildConfigurations = (
04BD916F2D9D68AF00055CEB /* Debug */,
04BD91702D9D68AF00055CEB /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
EB388E562D8A61A800629B0D /* Build configuration list for PBXProject "PhoneManager" */ = { EB388E562D8A61A800629B0D /* Build configuration list for PBXProject "PhoneManager" */ = {
isa = XCConfigurationList; isa = XCConfigurationList;
buildConfigurations = ( buildConfigurations = (
......
...@@ -99,7 +99,6 @@ class WidgetViewController: BaseViewController { ...@@ -99,7 +99,6 @@ class WidgetViewController: BaseViewController {
stav.layer.cornerRadius = 20 stav.layer.cornerRadius = 20
stav.widgetType = (self.widgets == .battery ? 0 : 1) stav.widgetType = (self.widgets == .battery ? 0 : 1)
stav.widgetMode = widgetMode stav.widgetMode = widgetMode
// stav.clipsToBounds = true
view.addSubview(stav) view.addSubview(stav)
return stav return stav
}() }()
......
<?xml version="1.0" encoding="UTF-8"?> <?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"> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0"> <plist version="1.0">
<dict/> <dict>
<key>com.apple.security.application-groups</key>
<array>
<string>group.com.app.phonemanager</string>
</array>
</dict>
</plist> </plist>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment