diff --git a/.gitignore b/.gitignore index e1739d1..68b909b 100644 --- a/.gitignore +++ b/.gitignore @@ -23,3 +23,6 @@ dist/ keys/ *.jks *.keystore + +# iOS archives and unsigned IPAs +ios/build/ diff --git a/app/build.gradle.kts b/app/build.gradle.kts index 67980c3..0cdefc7 100644 --- a/app/build.gradle.kts +++ b/app/build.gradle.kts @@ -17,6 +17,10 @@ val keystorePassword: String? = System.getenv("MCCLOCK_KEYSTORE_PASSWORD") val keystoreAlias: String? = System.getenv("MCCLOCK_KEY_ALIAS") val keystoreKeyPassword: String? = System.getenv("MCCLOCK_KEY_PASSWORD") +val robolectricRuntimeConfiguration = configurations.create("robolectricAndroidAllRuntime") +val robolectricCompileConfiguration = configurations.create("robolectricAndroidAllCompile") +val robolectricJarDir = layout.buildDirectory.dir("robolectric-jars") + android { namespace = "com.coobyk.mc.clock" compileSdk = 35 @@ -82,7 +86,17 @@ android { // and CI uploads that directory. Declaring it as a task output means the Gradle build cache restores // the PNGs on a cache hit; left undeclared they simply do not exist whenever the test task is not // actually executed, which is how the upload step came to fail on an otherwise green build. +// Resolve the Robolectric runtime through Gradle and point tests at the copy: MavenArtifactFetcher +// otherwise downloads it itself at test time, outside Gradle's dependency cache and retry handling. +val copyRobolectricAndroidAll = tasks.register("copyRobolectricAndroidAll") { + from(robolectricRuntimeConfiguration) + from(robolectricCompileConfiguration) + into(robolectricJarDir) +} + tasks.withType().configureEach { + dependsOn(copyRobolectricAndroidAll) + systemProperty("robolectric.dependency.dir", robolectricJarDir.get().asFile.absolutePath) outputs.dir(layout.buildDirectory.dir("widget-renders")) } @@ -101,5 +115,7 @@ dependencies { testImplementation(libs.junit) testImplementation(libs.robolectric) + add("robolectricAndroidAllRuntime", "org.robolectric:android-all-instrumented:14-robolectric-10818077-i7") + add("robolectricAndroidAllCompile", "org.robolectric:android-all-instrumented:15-robolectric-12650502-i7") testImplementation(libs.androidx.test.core) } diff --git a/ios/MCClock.xcodeproj/project.pbxproj b/ios/MCClock.xcodeproj/project.pbxproj new file mode 100644 index 0000000..a5efbfa --- /dev/null +++ b/ios/MCClock.xcodeproj/project.pbxproj @@ -0,0 +1,498 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 77; + objects = { + +/* Begin PBXBuildFile section */ + 177AF4DD7BC0F1FA952CA6E8 /* Theme.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4DCBB81601EAACCEE278DE0E /* Theme.swift */; }; + 2AE04178C6A7D9C327EB8903 /* SharedAssets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0804DE31B5802AD8B82C0F39 /* SharedAssets.xcassets */; }; + 2D1DB7DA0EC5584F3FD2128C /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = B2ACA9D03FD3E5134EBA97AF /* Assets.xcassets */; }; + 2FBA94AFB8AFB8F3322E178E /* TimerScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = A61BC5941019D8A4D77EAB1F /* TimerScreen.swift */; }; + 3681D8B02C5C286D729CC8AC /* StopwatchScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4989BBC66EF3DD7165777294 /* StopwatchScreen.swift */; }; + 46B0E058F6EEB7F21CAACF0D /* MCClockApp.swift in Sources */ = {isa = PBXBuildFile; fileRef = EFA2EA89960586DEAF3846B5 /* MCClockApp.swift */; }; + 5F1008CECF6EDA55755B8CCB /* ClockUtilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = CF659B921EC40E80B3160425 /* ClockUtilities.swift */; }; + 675D918C92086701CA7A37D1 /* AlarmsScreen.swift in Sources */ = {isa = PBXBuildFile; fileRef = 2F2BDC2E46B97D0B913208BD /* AlarmsScreen.swift */; }; + 6A8927AB041FA051566670D8 /* NotificationManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4210E8146FAE2E728F83429F /* NotificationManager.swift */; }; + 6C88DEFF3C88A86B8C6CE2D2 /* MinecraftTime.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0BE6B85D42C7304426E5D74 /* MinecraftTime.swift */; }; + 6EC2ADB09D05529EFDC6254E /* MCClockWidget.swift in Sources */ = {isa = PBXBuildFile; fileRef = 8C624BA244384216820E12CB /* MCClockWidget.swift */; }; + 77EC19A7906B923AEE1606FC /* Silkscreen-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = BC27166C04585247D11A0B45 /* Silkscreen-Bold.ttf */; }; + 9D77066C94DCC6F8AD8BAC3E /* SharedAssets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 0804DE31B5802AD8B82C0F39 /* SharedAssets.xcassets */; }; + BB6678F256D5141152D8F125 /* MinecraftTime.swift in Sources */ = {isa = PBXBuildFile; fileRef = B0BE6B85D42C7304426E5D74 /* MinecraftTime.swift */; }; + D1C106AC200116330024D6FA /* MCClockWidget.appex in Embed Foundation Extensions */ = {isa = PBXBuildFile; fileRef = 4A54485041D01DFBBC67E903 /* MCClockWidget.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; + D92FD4BD58C73E194D129F2E /* Silkscreen-Bold.ttf in Resources */ = {isa = PBXBuildFile; fileRef = BC27166C04585247D11A0B45 /* Silkscreen-Bold.ttf */; }; + EFCE1A42ACBFCD417509C984 /* AlarmModels.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01C1FB270616DC1DD09DD0EB /* AlarmModels.swift */; }; + FF81B3889433EC870FD71CE4 /* ClockUtilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = CF659B921EC40E80B3160425 /* ClockUtilities.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + E4D8AB4C998A5FB164DECCBA /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = BBF1CED6FFA5E5C12A75DF5E /* Project object */; + proxyType = 1; + remoteGlobalIDString = FFA2430F77047B8B084E92C2; + remoteInfo = MCClockWidget; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXCopyFilesBuildPhase section */ + 51F3D3B5B80A29D671C5B12A /* Embed Foundation Extensions */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 13; + files = ( + D1C106AC200116330024D6FA /* MCClockWidget.appex in Embed Foundation Extensions */, + ); + name = "Embed Foundation Extensions"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + +/* Begin PBXFileReference section */ + 01C1FB270616DC1DD09DD0EB /* AlarmModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlarmModels.swift; sourceTree = ""; }; + 0804DE31B5802AD8B82C0F39 /* SharedAssets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = SharedAssets.xcassets; sourceTree = ""; }; + 2F2BDC2E46B97D0B913208BD /* AlarmsScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AlarmsScreen.swift; sourceTree = ""; }; + 389866DF33CE3931D4182831 /* MCClock.app */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = wrapper.application; path = MCClock.app; sourceTree = BUILT_PRODUCTS_DIR; }; + 4210E8146FAE2E728F83429F /* NotificationManager.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NotificationManager.swift; sourceTree = ""; }; + 4989BBC66EF3DD7165777294 /* StopwatchScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StopwatchScreen.swift; sourceTree = ""; }; + 4A54485041D01DFBBC67E903 /* MCClockWidget.appex */ = {isa = PBXFileReference; includeInIndex = 0; lastKnownFileType = "wrapper.app-extension"; path = MCClockWidget.appex; sourceTree = BUILT_PRODUCTS_DIR; }; + 4DCBB81601EAACCEE278DE0E /* Theme.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Theme.swift; sourceTree = ""; }; + 5D1226CEC8C1E89817C637DE /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; + 8C624BA244384216820E12CB /* MCClockWidget.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MCClockWidget.swift; sourceTree = ""; }; + A61BC5941019D8A4D77EAB1F /* TimerScreen.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TimerScreen.swift; sourceTree = ""; }; + B0BE6B85D42C7304426E5D74 /* MinecraftTime.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MinecraftTime.swift; sourceTree = ""; }; + B2ACA9D03FD3E5134EBA97AF /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; + BC27166C04585247D11A0B45 /* Silkscreen-Bold.ttf */ = {isa = PBXFileReference; lastKnownFileType = file; path = "Silkscreen-Bold.ttf"; sourceTree = ""; }; + BCF06EBC8DA55FB3BE8D5FB4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist; path = Info.plist; sourceTree = ""; }; + CF659B921EC40E80B3160425 /* ClockUtilities.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ClockUtilities.swift; sourceTree = ""; }; + EFA2EA89960586DEAF3846B5 /* MCClockApp.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MCClockApp.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXGroup section */ + 0E8F9480CEB9AAAFDB3BEFAB /* MCClock */ = { + isa = PBXGroup; + children = ( + 01C1FB270616DC1DD09DD0EB /* AlarmModels.swift */, + 2F2BDC2E46B97D0B913208BD /* AlarmsScreen.swift */, + B2ACA9D03FD3E5134EBA97AF /* Assets.xcassets */, + BCF06EBC8DA55FB3BE8D5FB4 /* Info.plist */, + EFA2EA89960586DEAF3846B5 /* MCClockApp.swift */, + 4210E8146FAE2E728F83429F /* NotificationManager.swift */, + 4989BBC66EF3DD7165777294 /* StopwatchScreen.swift */, + 4DCBB81601EAACCEE278DE0E /* Theme.swift */, + A61BC5941019D8A4D77EAB1F /* TimerScreen.swift */, + ); + path = MCClock; + sourceTree = ""; + }; + 21100360F9AB43848A450647 /* Products */ = { + isa = PBXGroup; + children = ( + 389866DF33CE3931D4182831 /* MCClock.app */, + 4A54485041D01DFBBC67E903 /* MCClockWidget.appex */, + ); + name = Products; + sourceTree = ""; + }; + 41FDAD5AD97CC0542BBDE625 /* MCClockWidget */ = { + isa = PBXGroup; + children = ( + 5D1226CEC8C1E89817C637DE /* Info.plist */, + 8C624BA244384216820E12CB /* MCClockWidget.swift */, + ); + path = MCClockWidget; + sourceTree = ""; + }; + 93219942DB9E378931984C50 /* Shared */ = { + isa = PBXGroup; + children = ( + CF659B921EC40E80B3160425 /* ClockUtilities.swift */, + B0BE6B85D42C7304426E5D74 /* MinecraftTime.swift */, + 0804DE31B5802AD8B82C0F39 /* SharedAssets.xcassets */, + BC27166C04585247D11A0B45 /* Silkscreen-Bold.ttf */, + ); + path = Shared; + sourceTree = ""; + }; + BB76424BEAE351161CFD1495 = { + isa = PBXGroup; + children = ( + 0E8F9480CEB9AAAFDB3BEFAB /* MCClock */, + 41FDAD5AD97CC0542BBDE625 /* MCClockWidget */, + 93219942DB9E378931984C50 /* Shared */, + 21100360F9AB43848A450647 /* Products */, + ); + sourceTree = ""; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 3B4B8F5EF5264D8DF8B8588A /* MCClock */ = { + isa = PBXNativeTarget; + buildConfigurationList = 904DA42ECA7D2298259FFD20 /* Build configuration list for PBXNativeTarget "MCClock" */; + buildPhases = ( + 8E9B585CFB4D565E0B661CBD /* Sources */, + 29A29FBB0325CE72AE708A3B /* Resources */, + 51F3D3B5B80A29D671C5B12A /* Embed Foundation Extensions */, + ); + buildRules = ( + ); + dependencies = ( + F45C9FFB89B36424ABA3D22C /* PBXTargetDependency */, + ); + name = MCClock; + packageProductDependencies = ( + ); + productName = MCClock; + productReference = 389866DF33CE3931D4182831 /* MCClock.app */; + productType = "com.apple.product-type.application"; + }; + FFA2430F77047B8B084E92C2 /* MCClockWidget */ = { + isa = PBXNativeTarget; + buildConfigurationList = 39E0F49CEF02CC0033722F2C /* Build configuration list for PBXNativeTarget "MCClockWidget" */; + buildPhases = ( + 86CBD54BB5BAE2F8DE97E9CE /* Sources */, + 226FFD7A8B979F52F753837B /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = MCClockWidget; + packageProductDependencies = ( + ); + productName = MCClockWidget; + productReference = 4A54485041D01DFBBC67E903 /* MCClockWidget.appex */; + productType = "com.apple.product-type.app-extension"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + BBF1CED6FFA5E5C12A75DF5E /* Project object */ = { + isa = PBXProject; + attributes = { + BuildIndependentTargetsInParallel = YES; + LastUpgradeCheck = 1600; + TargetAttributes = { + 3B4B8F5EF5264D8DF8B8588A = { + DevelopmentTeam = ""; + ProvisioningStyle = Manual; + }; + FFA2430F77047B8B084E92C2 = { + DevelopmentTeam = ""; + ProvisioningStyle = Manual; + }; + }; + }; + buildConfigurationList = 89C277E32AC4D1C8706B53A5 /* Build configuration list for PBXProject "MCClock" */; + developmentRegion = en; + hasScannedForEncodings = 0; + knownRegions = ( + Base, + en, + ); + mainGroup = BB76424BEAE351161CFD1495; + minimizedProjectReferenceProxies = 1; + preferredProjectObjectVersion = 77; + productRefGroup = 21100360F9AB43848A450647 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 3B4B8F5EF5264D8DF8B8588A /* MCClock */, + FFA2430F77047B8B084E92C2 /* MCClockWidget */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 226FFD7A8B979F52F753837B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2AE04178C6A7D9C327EB8903 /* SharedAssets.xcassets in Resources */, + 77EC19A7906B923AEE1606FC /* Silkscreen-Bold.ttf in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 29A29FBB0325CE72AE708A3B /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 2D1DB7DA0EC5584F3FD2128C /* Assets.xcassets in Resources */, + 9D77066C94DCC6F8AD8BAC3E /* SharedAssets.xcassets in Resources */, + D92FD4BD58C73E194D129F2E /* Silkscreen-Bold.ttf in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 86CBD54BB5BAE2F8DE97E9CE /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 5F1008CECF6EDA55755B8CCB /* ClockUtilities.swift in Sources */, + 6EC2ADB09D05529EFDC6254E /* MCClockWidget.swift in Sources */, + BB6678F256D5141152D8F125 /* MinecraftTime.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 8E9B585CFB4D565E0B661CBD /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + EFCE1A42ACBFCD417509C984 /* AlarmModels.swift in Sources */, + 675D918C92086701CA7A37D1 /* AlarmsScreen.swift in Sources */, + FF81B3889433EC870FD71CE4 /* ClockUtilities.swift in Sources */, + 46B0E058F6EEB7F21CAACF0D /* MCClockApp.swift in Sources */, + 6C88DEFF3C88A86B8C6CE2D2 /* MinecraftTime.swift in Sources */, + 6A8927AB041FA051566670D8 /* NotificationManager.swift in Sources */, + 3681D8B02C5C286D729CC8AC /* StopwatchScreen.swift in Sources */, + 177AF4DD7BC0F1FA952CA6E8 /* Theme.swift in Sources */, + 2FBA94AFB8AFB8F3322E178E /* TimerScreen.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + F45C9FFB89B36424ABA3D22C /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = FFA2430F77047B8B084E92C2 /* MCClockWidget */; + targetProxy = E4D8AB4C998A5FB164DECCBA /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin XCBuildConfiguration section */ + 61102568701390B526EFCD53 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_IDENTITY = "iPhone Developer"; + INFOPLIST_FILE = MCClock/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.coobyk.mc.clock; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 819540F01364A582030F3FFF /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGNING_ALLOWED = NO; + CODE_SIGNING_REQUIRED = NO; + CODE_SIGN_STYLE = Manual; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; + DEVELOPMENT_TEAM = ""; + ENABLE_NS_ASSERTIONS = NO; + ENABLE_STRICT_OBJC_MSGSEND = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_NO_COMMON_BLOCKS = YES; + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; + MTL_ENABLE_DEBUG_INFO = NO; + MTL_FAST_MATH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + SWIFT_COMPILATION_MODE = wholemodule; + SWIFT_OPTIMIZATION_LEVEL = "-O"; + SWIFT_VERSION = 5.0; + }; + name = Release; + }; + 881E1A97487026229053BC99 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = MCClockWidget/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.coobyk.mc.clock.widget; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Release; + }; + 8BC4E0394D86D53A73A0590E /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_ENABLE_OBJC_WEAK = YES; + CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_COMMA = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; + CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; + CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + CLANG_WARN_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = YES; + CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; + CLANG_WARN_STRICT_PROTOTYPES = YES; + CLANG_WARN_SUSPICIOUS_MOVE = YES; + CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; + CLANG_WARN_UNREACHABLE_CODE = YES; + CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; + CODE_SIGNING_ALLOWED = NO; + CODE_SIGNING_REQUIRED = NO; + CODE_SIGN_STYLE = Manual; + COPY_PHASE_STRIP = NO; + DEBUG_INFORMATION_FORMAT = dwarf; + DEVELOPMENT_TEAM = ""; + ENABLE_STRICT_OBJC_MSGSEND = YES; + ENABLE_TESTABILITY = YES; + GCC_C_LANGUAGE_STANDARD = gnu11; + GCC_DYNAMIC_NO_PIC = NO; + GCC_NO_COMMON_BLOCKS = YES; + GCC_OPTIMIZATION_LEVEL = 0; + GCC_PREPROCESSOR_DEFINITIONS = ( + "$(inherited)", + "DEBUG=1", + ); + GCC_WARN_64_TO_32_BIT_CONVERSION = YES; + GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; + GCC_WARN_UNDECLARED_SELECTOR = YES; + GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; + GCC_WARN_UNUSED_FUNCTION = YES; + GCC_WARN_UNUSED_VARIABLE = YES; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; + MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; + MTL_FAST_MATH = YES; + ONLY_ACTIVE_ARCH = YES; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + SWIFT_VERSION = 5.0; + }; + name = Debug; + }; + AFA2D18403C467C9CF835ECE /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + CODE_SIGN_IDENTITY = "iPhone Developer"; + INFOPLIST_FILE = MCClock/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.coobyk.mc.clock; + SDKROOT = iphoneos; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + F1A4D3687E9A6D55E0CFADEB /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + INFOPLIST_FILE = MCClockWidget/Info.plist; + IPHONEOS_DEPLOYMENT_TARGET = 17.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + PRODUCT_BUNDLE_IDENTIFIER = com.coobyk.mc.clock.widget; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; +/* End XCBuildConfiguration section */ + +/* Begin XCConfigurationList section */ + 39E0F49CEF02CC0033722F2C /* Build configuration list for PBXNativeTarget "MCClockWidget" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + F1A4D3687E9A6D55E0CFADEB /* Debug */, + 881E1A97487026229053BC99 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; + 89C277E32AC4D1C8706B53A5 /* Build configuration list for PBXProject "MCClock" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 8BC4E0394D86D53A73A0590E /* Debug */, + 819540F01364A582030F3FFF /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; + 904DA42ECA7D2298259FFD20 /* Build configuration list for PBXNativeTarget "MCClock" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + AFA2D18403C467C9CF835ECE /* Debug */, + 61102568701390B526EFCD53 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Debug; + }; +/* End XCConfigurationList section */ + }; + rootObject = BBF1CED6FFA5E5C12A75DF5E /* Project object */; +} diff --git a/ios/MCClock.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/ios/MCClock.xcodeproj/project.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/ios/MCClock.xcodeproj/project.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/ios/MCClock.xcodeproj/xcshareddata/xcschemes/MCClock.xcscheme b/ios/MCClock.xcodeproj/xcshareddata/xcschemes/MCClock.xcscheme new file mode 100644 index 0000000..ad24c01 --- /dev/null +++ b/ios/MCClock.xcodeproj/xcshareddata/xcschemes/MCClock.xcscheme @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/MCClock/AlarmModels.swift b/ios/MCClock/AlarmModels.swift new file mode 100644 index 0000000..ecc753f --- /dev/null +++ b/ios/MCClock/AlarmModels.swift @@ -0,0 +1,138 @@ +import Foundation + +struct AlarmModel: Codable, Identifiable, Equatable { + var id: Int64 = Int64(Date().timeIntervalSince1970 * 1000) + var hour: Int = 7 + var minute: Int = 0 + var label: String = "" + var enabled: Bool = true + var days: Int = 0 + var snoozeMinutes: Int = 10 + var createdAt: Date = Date() + + enum CodingKeys: String, CodingKey { + case id, hour, minute, label, enabled, days, snoozeMinutes, createdAt + } + + init() {} + + init(from decoder: Decoder) throws { + let container = try decoder.container(keyedBy: CodingKeys.self) + id = try container.decodeIfPresent(Int64.self, forKey: .id) ?? Int64(Date().timeIntervalSince1970 * 1000) + hour = try container.decodeIfPresent(Int.self, forKey: .hour) ?? 7 + minute = try container.decodeIfPresent(Int.self, forKey: .minute) ?? 0 + label = try container.decodeIfPresent(String.self, forKey: .label) ?? "" + enabled = try container.decodeIfPresent(Bool.self, forKey: .enabled) ?? true + days = try container.decodeIfPresent(Int.self, forKey: .days) ?? 0 + snoozeMinutes = try container.decodeIfPresent(Int.self, forKey: .snoozeMinutes) ?? 10 + createdAt = try container.decodeIfPresent(Date.self, forKey: .createdAt) ?? Date() + } + + var isSpentOneTime: Bool { + days == 0 && nextTriggerDate(from: createdAt) <= Date() + } + + func nextTriggerDate(from date: Date = Date()) -> Date { + let calendar = Calendar.current + for offset in 0...7 { + guard let day = calendar.date(byAdding: .day, value: offset, to: date) else { continue } + var components = calendar.dateComponents([.year, .month, .day, .weekday], from: day) + components.hour = hour + components.minute = minute + components.second = 0 + guard let candidate = calendar.date(from: components), candidate > date else { continue } + let bit = 1 << ((components.weekday ?? 1) - 1) + if days == 0 || (days & bit) != 0 { return candidate } + } + let tomorrow = calendar.date(byAdding: .day, value: 1, to: date) ?? date.addingTimeInterval(86400) + var components = calendar.dateComponents([.year, .month, .day], from: tomorrow) + components.hour = hour + components.minute = minute + components.second = 0 + return calendar.date(from: components) ?? tomorrow + } + + var timeText: String { + String(format: "%02d:%02d", hour, minute) + } + + var daysText: String { + if days == 0 { return "Once" } + let names = ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"] + let selected = (0..<7).compactMap { (days & (1 << $0)) != 0 ? names[$0] : nil } + return selected.isEmpty ? "Once" : selected.joined(separator: " ") + } +} + +final class AlarmStore: ObservableObject { + @Published private(set) var alarms: [AlarmModel] = [] + private let key = "alarms-json" + + init() { + load() + } + + func load() { + guard let data = UserDefaults.standard.data(forKey: key), + let decoded = try? JSONDecoder().decode([AlarmModel].self, from: data) else { + alarms = [] + return + } + var migrated = decoded + for index in migrated.indices where migrated[index].isSpentOneTime && migrated[index].enabled { + migrated[index].enabled = false + } + alarms = migrated + if migrated != decoded { persist() } + } + + func save(_ alarm: AlarmModel) { + if let index = alarms.firstIndex(where: { $0.id == alarm.id }) { + alarms[index] = alarm + } else { + alarms.append(alarm) + } + persist() + } + + func delete(_ alarm: AlarmModel) { + alarms.removeAll { $0.id == alarm.id } + persist() + } + + private func persist() { + if let data = try? JSONEncoder().encode(alarms) { + UserDefaults.standard.set(data, forKey: key) + } + } +} + +enum TimerStorage { + private static let endAtKey = "timer-end-at" + private static let remainingKey = "timer-remaining-ms" + private static let runningKey = "timer-running" + + static var endAt: Date? { + get { + let value = UserDefaults.standard.double(forKey: endAtKey) + return value > 0 ? Date(timeIntervalSince1970: value) : nil + } + set { UserDefaults.standard.set(newValue?.timeIntervalSince1970 ?? 0, forKey: endAtKey) } + } + + static var remainingMilliseconds: Int64 { + get { Int64(UserDefaults.standard.double(forKey: remainingKey)) } + set { UserDefaults.standard.set(Double(newValue), forKey: remainingKey) } + } + + static var running: Bool { + get { UserDefaults.standard.bool(forKey: runningKey) } + set { UserDefaults.standard.set(newValue, forKey: runningKey) } + } + + static func reset() { + endAt = nil + remainingMilliseconds = 0 + running = false + } +} diff --git a/ios/MCClock/AlarmsScreen.swift b/ios/MCClock/AlarmsScreen.swift new file mode 100644 index 0000000..5551166 --- /dev/null +++ b/ios/MCClock/AlarmsScreen.swift @@ -0,0 +1,208 @@ +import SwiftUI + +struct AlarmsScreen: View { + @EnvironmentObject private var store: AlarmStore + @State private var editing: AlarmEditorContext? + + var body: some View { + VStack(alignment: .leading, spacing: 16) { + Text("Alarms") + .font(McFont.bold(20)) + .foregroundStyle(Color.appText) + Text("iOS delivers alarms as local notifications. Keep notifications enabled for Minecraft Clock.") + .font(.system(size: 11)) + .foregroundStyle(Color.appTextDim) + + ScrollView { + LazyVStack(spacing: 10) { + if store.alarms.isEmpty { + Text("No alarms yet. Tap \"Add alarm\".") + .font(.system(size: 14)) + .foregroundStyle(Color.appTextDim) + .padding(.vertical, 16) + .frame(maxWidth: .infinity, alignment: .leading) + } + ForEach(store.alarms.sorted { $0.hour * 60 + $0.minute < $1.hour * 60 + $1.minute }) { alarm in + AlarmRow( + alarm: alarm, + toggle: { enabled in + var copy = alarm + copy.enabled = enabled + if enabled && copy.isSpentOneTime { copy.createdAt = Date() } + store.save(copy) + if enabled { NotificationManager.shared.schedule(alarm: copy) } else { NotificationManager.shared.cancel(alarm: copy) } + }, + delete: { + NotificationManager.shared.cancel(alarm: alarm) + store.delete(alarm) + }, + open: { + editing = AlarmEditorContext(alarm: alarm, isNew: false) + } + ) + } + } + } + + Button("Add alarm") { + editing = AlarmEditorContext(alarm: AlarmModel(), isNew: true) + } + .buttonStyle(McButtonStyle(primary: true)) + } + .padding(20) + .background(Color.appBg.ignoresSafeArea()) + .navigationTitle("") + .toolbarBackground(Color.appBg, for: .navigationBar) + .toolbarBackground(.visible, for: .navigationBar) + .sheet(item: $editing) { context in + AlarmEditSheet(alarm: context.alarm, isNew: context.isNew) { saved in + store.save(saved) + if saved.enabled { NotificationManager.shared.schedule(alarm: saved) } + editing = nil + } cancel: { + editing = nil + } + } + } +} + + +struct AlarmEditorContext: Identifiable { + let alarm: AlarmModel + let isNew: Bool + + var id: Int64 { alarm.id } +} + +struct AlarmRow: View { + let alarm: AlarmModel + let toggle: (Bool) -> Void + let delete: () -> Void + let open: () -> Void + + var body: some View { + Button(action: open) { + HStack(spacing: 12) { + VStack(alignment: .leading, spacing: 4) { + Text(alarm.timeText) + .font(McFont.bold(20)) + .foregroundStyle(Color.appText) + Text((alarm.label.isEmpty ? "" : alarm.label + " · ") + alarm.daysText) + .font(.system(size: 12)) + .foregroundStyle(Color.appTextDim) + } + Spacer() + Toggle("", isOn: Binding(get: { alarm.enabled }, set: toggle)) + .labelsHidden() + .tint(Color.mcGreen) + .onTapGesture {} + Button("✕", action: delete) + .font(.system(size: 16, weight: .bold)) + .foregroundStyle(Color.appText) + } + .padding(16) + .background(Color.appSurface) + .overlay(RoundedRectangle(cornerRadius: 10).stroke(Color.appBorder, lineWidth: 1)) + .clipShape(RoundedRectangle(cornerRadius: 10)) + } + .buttonStyle(.plain) + } +} + +struct AlarmEditSheet: View { + let original: AlarmModel + let isNew: Bool + let save: (AlarmModel) -> Void + let cancel: () -> Void + + @State private var time: Date + @State private var label: String + @State private var enabledDays: [Bool] + + init(alarm: AlarmModel, isNew: Bool, save: @escaping (AlarmModel) -> Void, cancel: @escaping () -> Void) { + self.original = alarm + self.isNew = isNew + self.save = save + self.cancel = cancel + var components = DateComponents() + components.hour = alarm.hour + components.minute = alarm.minute + components.second = 0 + _time = State(initialValue: Calendar.current.date(from: components) ?? Date()) + _label = State(initialValue: alarm.label) + _enabledDays = State(initialValue: (0..<7).map { (alarm.days & (1 << $0)) != 0 }) + } + + var body: some View { + NavigationStack { + ScrollView { + VStack(alignment: .leading, spacing: 18) { + DatePicker("Time", selection: $time, displayedComponents: .hourAndMinute) + .datePickerStyle(.wheel) + .labelsHidden() + .colorScheme(.dark) + .frame(maxWidth: .infinity) + + TextField("Label (optional)", text: $label) + .font(.system(size: 15)) + .foregroundStyle(Color.appText) + .padding(12) + .background(Color.appSurfaceLight) + .clipShape(RoundedRectangle(cornerRadius: 8)) + + Text("Repeat") + .font(.system(size: 12)) + .foregroundStyle(Color.appTextSecondary) + + HStack(spacing: 6) { + ForEach(0..<7, id: \.self) { index in + Button(dayName(index)) { + enabledDays[index].toggle() + } + .font(McFont.body(10)) + .foregroundStyle(enabledDays[index] ? Color.appBg : Color.appTextDim) + .frame(maxWidth: .infinity) + .padding(.vertical, 8) + .background(enabledDays[index] ? Color.mcGreen : Color.appSurfaceLight) + .clipShape(RoundedRectangle(cornerRadius: 6)) + } + } + + Text("Leave all unselected for a one-time alarm.") + .font(.system(size: 10)) + .foregroundStyle(Color.appTextDim) + } + .padding(20) + } + .background(Color.appBg.ignoresSafeArea()) + .navigationTitle(isNew ? "New alarm" : "Edit alarm") + .toolbar { + ToolbarItem(placement: .topBarLeading) { + Button("Cancel", action: cancel) + } + ToolbarItem(placement: .topBarTrailing) { + Button("Save") { + var alarm = original + let components = Calendar.current.dateComponents([.hour, .minute], from: time) + let newHour = components.hour ?? alarm.hour + let newMinute = components.minute ?? alarm.minute + let newDays = enabledDays.enumerated().reduce(0) { $1.element ? $0 | (1 << $1.offset) : $0 } + if isNew || newHour != original.hour || newMinute != original.minute || newDays != original.days { + alarm.createdAt = Date() + } + alarm.hour = newHour + alarm.minute = newMinute + alarm.label = label.trimmingCharacters(in: .whitespacesAndNewlines) + alarm.days = newDays + save(alarm) + } + .fontWeight(.bold) + } + } + } + } + + private func dayName(_ index: Int) -> String { + ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"][index] + } +} diff --git a/ios/MCClock/Assets.xcassets/AppIcon.appiconset/AppIcon-1024.png b/ios/MCClock/Assets.xcassets/AppIcon.appiconset/AppIcon-1024.png new file mode 100644 index 0000000..7915539 Binary files /dev/null and b/ios/MCClock/Assets.xcassets/AppIcon.appiconset/AppIcon-1024.png differ diff --git a/ios/MCClock/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/MCClock/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 0000000..f22e10c --- /dev/null +++ b/ios/MCClock/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,14 @@ +{ + "images" : [ + { + "filename" : "AppIcon-1024.png", + "idiom" : "universal", + "platform" : "ios", + "size" : "1024x1024" + } + ], + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/MCClock/Assets.xcassets/Contents.json b/ios/MCClock/Assets.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/ios/MCClock/Assets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ios/MCClock/Info.plist b/ios/MCClock/Info.plist new file mode 100644 index 0000000..b91d7af --- /dev/null +++ b/ios/MCClock/Info.plist @@ -0,0 +1,48 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Minecraft Clock + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleURLTypes + + + CFBundleURLName + com.coobyk.mc.clock + CFBundleURLSchemes + + mcclock + + + + CFBundleVersion + 1 + UIAppFonts + + Silkscreen-Bold.ttf + + UILaunchScreen + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + UIInterfaceOrientationPortraitUpsideDown + + + diff --git a/ios/MCClock/MCClockApp.swift b/ios/MCClock/MCClockApp.swift new file mode 100644 index 0000000..62c36b8 --- /dev/null +++ b/ios/MCClock/MCClockApp.swift @@ -0,0 +1,149 @@ +import SwiftUI + +@main +struct MCClockApp: App { + @StateObject private var alarmStore = AlarmStore() + + init() { + NotificationManager.shared.configure() + NotificationManager.shared.requestAuthorization() + } + + var body: some Scene { + WindowGroup { + NavigationStack { + MainScreen() + } + .environmentObject(alarmStore) + .preferredColorScheme(.dark) + } + } +} + +struct MainScreen: View { + @State private var showingWidgetHelp = false + + var body: some View { + TimelineView(.periodic(from: .now, by: 1)) { timeline in + let now = timeline.date + let dayTime = MinecraftTime.dayTime(for: now) + + ScrollView { + VStack(alignment: .leading, spacing: 20) { + VStack(alignment: .leading, spacing: 4) { + Text("Minecraft Clock") + .font(McFont.bold(22)) + .foregroundStyle(Color.appText) + Text("Minecraft's clock item, on your home screen.") + .font(.system(size: 13)) + .foregroundStyle(Color.appTextDim) + } + + McCard { + Image(MinecraftTime.frameImageName(for: now)) + .resizable() + .interpolation(.none) + .scaledToFit() + .frame(width: 220, height: 220) + .frame(maxWidth: .infinity) + .accessibilityLabel(ClockUtilities.localTimeText(now, includeSeconds: false)) + } + + Text(ClockUtilities.localTimeText(now, includeSeconds: true)) + .font(McFont.bold(32)) + .foregroundStyle(Color.appText) + .frame(maxWidth: .infinity) + + HStack(spacing: 8) { + NavigationLink(destination: AlarmsScreen()) { + Text("Alarms") + } + .buttonStyle(McButtonStyle()) + + NavigationLink(destination: TimerScreen()) { + Text("Timer") + } + .buttonStyle(McButtonStyle()) + + NavigationLink(destination: StopwatchScreen()) { + Text("Stopwatch") + } + .buttonStyle(McButtonStyle()) + } + + McCard { + VStack(spacing: 4) { + InfoRow(label: "Local time", value: ClockUtilities.localTimeText(now, includeSeconds: false)) + InfoRow(label: "Minecraft time", value: MinecraftTime.worldClockText(dayTime)) + InfoRow(label: "Minecraft day time", value: "\(Int(dayTime)) ticks") + InfoRow(label: "Dial frame", value: "\(MinecraftTime.clockFrame(dayTime)) / 63") + InfoRow(label: "Sky", value: MinecraftTime.phase(dayTime).rawValue) + } + } + + Button("Add to home screen") { + showingWidgetHelp = true + } + .buttonStyle(McButtonStyle(primary: true)) + + Text("The dial is Minecraft's clock item: 64 frames, chosen from the world time with the same maths the game uses. Sunrise (tick 0) lines up with 06:00 on this device, so the sun sits at the top of the dial at noon and the moon at midnight.") + .font(.system(size: 12)) + .foregroundStyle(Color.appTextDim) + .fixedSize(horizontal: false, vertical: true) + } + .padding(20) + } + .background(Color.appBg.ignoresSafeArea()) + .toolbar(.hidden, for: .navigationBar) + .sheet(isPresented: $showingWidgetHelp) { + WidgetHelpView() + .presentationDetents([.medium]) + } + } + } +} + +struct InfoRow: View { + let label: String + let value: String + + var body: some View { + HStack { + Text(label) + .font(.system(size: 13)) + .foregroundStyle(Color.appTextSecondary) + Spacer() + Text(value) + .font(McFont.body(12)) + .foregroundStyle(Color.appText) + } + .padding(.vertical, 4) + } +} + +struct WidgetHelpView: View { + @Environment(\.dismiss) private var dismiss + + var body: some View { + NavigationStack { + VStack(alignment: .leading, spacing: 16) { + Text("iOS does not let apps pin widgets programmatically.") + .font(.system(size: 14)) + .foregroundStyle(Color.appTextSecondary) + Text("1. Long-press the Home Screen.\n2. Tap Edit → Add Widget.\n3. Search for Minecraft Clock.\n4. Choose a size and tap Add Widget.") + .font(McFont.body(13)) + .foregroundStyle(Color.appText) + .fixedSize(horizontal: false, vertical: true) + Spacer() + } + .padding(24) + .background(Color.appBg.ignoresSafeArea()) + .navigationTitle("Add widget") + .toolbar { + ToolbarItem(placement: .topBarTrailing) { + Button("Done") { dismiss() } + } + } + } + } +} diff --git a/ios/MCClock/NotificationManager.swift b/ios/MCClock/NotificationManager.swift new file mode 100644 index 0000000..4dfbce6 --- /dev/null +++ b/ios/MCClock/NotificationManager.swift @@ -0,0 +1,101 @@ +import Foundation +import UserNotifications + +final class NotificationManager: NSObject, UNUserNotificationCenterDelegate { + static let shared = NotificationManager() + private let center = UNUserNotificationCenter.current() + + private override init() { + super.init() + } + + func configure() { + center.delegate = self + let snooze = UNNotificationAction(identifier: "snooze", title: "Snooze 10 min", options: []) + let dismiss = UNNotificationAction(identifier: "dismiss", title: "Dismiss", options: [.destructive]) + let category = UNNotificationCategory(identifier: "alarm", actions: [snooze, dismiss], intentIdentifiers: []) + center.setNotificationCategories([category]) + } + + func requestAuthorization() { + center.requestAuthorization(options: [.alert, .sound, .badge]) { _, _ in } + } + + func schedule(alarm: AlarmModel) { + cancel(alarm: alarm, includeSnooze: false) + guard alarm.enabled, !alarm.isSpentOneTime else { return } + + if alarm.days == 0 { + let date = alarm.nextTriggerDate(from: alarm.createdAt) + let components = Calendar.current.dateComponents([.year, .month, .day, .hour, .minute], from: date) + scheduleAlarmContent(alarm: alarm, identifier: "alarm-\(alarm.id)-once", components: components, repeats: false) + } else { + for bit in 0..<7 where (alarm.days & (1 << bit)) != 0 { + var components = DateComponents() + components.weekday = bit + 1 + components.hour = alarm.hour + components.minute = alarm.minute + scheduleAlarmContent(alarm: alarm, identifier: "alarm-\(alarm.id)-day-\(bit)", components: components, repeats: true) + } + } + } + + func cancel(alarm: AlarmModel, includeSnooze: Bool = true) { + var identifiers = ["alarm-\(alarm.id)-once"] + identifiers += (0..<7).map { "alarm-\(alarm.id)-day-\($0)" } + if includeSnooze { identifiers.append("snooze-\(alarm.id)") } + center.removePendingNotificationRequests(withIdentifiers: identifiers) + } + + func rescheduleAll(_ alarms: [AlarmModel]) { + alarms.forEach { schedule(alarm: $0) } + } + + func scheduleTimer(endAt: Date) { + center.removePendingNotificationRequests(withIdentifiers: ["timer-complete"]) + let content = UNMutableNotificationContent() + content.title = "Timer finished" + content.body = "Your Minecraft Clock timer is done." + content.sound = .default + let trigger = UNTimeIntervalNotificationTrigger(timeInterval: max(1, endAt.timeIntervalSinceNow), repeats: false) + center.add(UNNotificationRequest(identifier: "timer-complete", content: content, trigger: trigger)) + } + + func cancelTimer() { + center.removePendingNotificationRequests(withIdentifiers: ["timer-complete"]) + } + + private func scheduleAlarmContent(alarm: AlarmModel, identifier: String, components: DateComponents, repeats: Bool) { + let content = UNMutableNotificationContent() + content.title = alarm.label.isEmpty ? "Alarm" : alarm.label + content.body = alarm.timeText + content.sound = .default + content.categoryIdentifier = "alarm" + content.userInfo = ["alarmID": alarm.id] + let trigger = UNCalendarNotificationTrigger(dateMatching: components, repeats: repeats) + center.add(UNNotificationRequest(identifier: identifier, content: content, trigger: trigger)) + } + + func userNotificationCenter(_ center: UNUserNotificationCenter, willPresent notification: UNNotification) async -> UNNotificationPresentationOptions { + [.banner, .sound] + } + + func userNotificationCenter(_ center: UNUserNotificationCenter, didReceive response: UNNotificationResponse) async { + guard response.actionIdentifier == "snooze" else { return } + let source = response.notification.request.content + let content = UNMutableNotificationContent() + content.title = source.title + content.body = "Snoozed" + content.sound = .default + content.categoryIdentifier = "alarm" + content.userInfo = source.userInfo + let trigger = UNTimeIntervalNotificationTrigger(timeInterval: 600, repeats: false) + let identifier: String + if let alarmID = source.userInfo["alarmID"] as? NSNumber { + identifier = "snooze-\(alarmID.int64Value)" + } else { + identifier = "snooze-\(UUID().uuidString)" + } + try? await center.add(UNNotificationRequest(identifier: identifier, content: content, trigger: trigger)) + } +} diff --git a/ios/MCClock/StopwatchScreen.swift b/ios/MCClock/StopwatchScreen.swift new file mode 100644 index 0000000..e46f189 --- /dev/null +++ b/ios/MCClock/StopwatchScreen.swift @@ -0,0 +1,93 @@ +import SwiftUI + +struct StopwatchScreen: View { + @State private var running = false + @State private var elapsedMs: Int64 = 0 + @State private var startedAt = Date() + @State private var now = Date() + @State private var laps: [Int64] = [] + private let ticker = Timer.publish(every: 0.033, on: .main, in: .common).autoconnect() + + var body: some View { + VStack(spacing: 24) { + Text("Stopwatch") + .font(McFont.bold(20)) + .foregroundStyle(Color.appText) + .frame(maxWidth: .infinity, alignment: .leading) + + Text(formatStopwatch(currentElapsed)) + .font(McFont.bold(32)) + .foregroundStyle(Color.appText) + .padding(.top, 16) + + HStack(spacing: 8) { + Button(running ? "Stop" : "Start") { + if running { + elapsedMs += Int64(Date().timeIntervalSince(startedAt) * 1000) + running = false + } else { + startedAt = Date() + running = true + } + } + .buttonStyle(McButtonStyle(primary: true)) + + Button("Lap") { + if running || elapsedMs > 0 { + laps.insert(currentElapsed, at: 0) + } + } + .buttonStyle(McButtonStyle()) + .disabled(!running && elapsedMs == 0) + + Button("Reset") { + running = false + elapsedMs = 0 + laps.removeAll() + } + .buttonStyle(McButtonStyle()) + } + + ScrollView { + LazyVStack(alignment: .leading, spacing: 6) { + ForEach(Array(laps.enumerated()), id: \.offset) { index, lap in + HStack { + Text("Lap \(laps.count - index)") + .font(.system(size: 12)) + .foregroundStyle(Color.appTextDim) + Spacer() + Text(formatStopwatch(lap)) + .font(McFont.body(13)) + .foregroundStyle(Color.appText) + } + .padding(.vertical, 6) + } + } + } + + Spacer(minLength: 0) + } + .padding(24) + .background(Color.appBg.ignoresSafeArea()) + .navigationTitle("") + .toolbarBackground(Color.appBg, for: .navigationBar) + .toolbarBackground(.visible, for: .navigationBar) + .onReceive(ticker) { date in + if running { now = date } + } + } + + private var currentElapsed: Int64 { + if running { + return elapsedMs + Int64(now.timeIntervalSince(startedAt) * 1000) + } + return elapsedMs + } +} + +private func formatStopwatch(_ ms: Int64) -> String { + let totalSeconds = Double(ms) / 1000.0 + let minutes = Int(totalSeconds / 60.0) + let seconds = totalSeconds.truncatingRemainder(dividingBy: 60.0) + return String(format: "%02d:%05.2f", minutes, seconds) +} diff --git a/ios/MCClock/Theme.swift b/ios/MCClock/Theme.swift new file mode 100644 index 0000000..6f9a44b --- /dev/null +++ b/ios/MCClock/Theme.swift @@ -0,0 +1,61 @@ +import SwiftUI + +extension Color { + init(hex: UInt32) { + self.init( + red: Double((hex >> 16) & 0xff) / 255.0, + green: Double((hex >> 8) & 0xff) / 255.0, + blue: Double(hex & 0xff) / 255.0 + ) + } + + static let mcGreen = Color(hex: 0x7FB238) + static let mcGreenDark = Color(hex: 0x5B8731) + static let appBg = Color(hex: 0x141414) + static let appBgElev = Color(hex: 0x1F1F1F) + static let appSurface = Color(hex: 0x262626) + static let appSurfaceLight = Color(hex: 0x333333) + static let appBorder = Color(hex: 0x3A3A3A) + static let appText = Color(hex: 0xF2F2F2) + static let appTextSecondary = Color(hex: 0xB8B8B8) + static let appTextDim = Color(hex: 0x7A7A7A) +} + +enum McFont { + static func bold(_ size: CGFloat) -> Font { + .custom("Silkscreen-Bold", size: size) + } + + static func body(_ size: CGFloat) -> Font { + .custom("Silkscreen-Bold", size: size) + } +} + +struct McCard: View { + @ViewBuilder var content: Content + + var body: some View { + content + .frame(maxWidth: .infinity) + .padding(16) + .background(Color.appSurface) + .overlay(RoundedRectangle(cornerRadius: 10).stroke(Color.appBorder, lineWidth: 1)) + .clipShape(RoundedRectangle(cornerRadius: 10)) + } +} + +struct McButtonStyle: ButtonStyle { + var primary = false + + func makeBody(configuration: Configuration) -> some View { + configuration.label + .font(McFont.bold(12)) + .foregroundStyle(primary ? Color.appText : Color.mcGreen) + .frame(maxWidth: .infinity) + .padding(.vertical, 12) + .background(primary ? Color.mcGreenDark : Color.appSurface) + .overlay(RoundedRectangle(cornerRadius: 8).stroke(primary ? Color.mcGreen : Color.appBorder, lineWidth: 1)) + .clipShape(RoundedRectangle(cornerRadius: 8)) + .opacity(configuration.isPressed ? 0.7 : 1) + } +} diff --git a/ios/MCClock/TimerScreen.swift b/ios/MCClock/TimerScreen.swift new file mode 100644 index 0000000..d8f02ef --- /dev/null +++ b/ios/MCClock/TimerScreen.swift @@ -0,0 +1,142 @@ +import SwiftUI + +struct TimerScreen: View { + @State private var remainingMs: Int64 = TimerStorage.remainingMilliseconds + @State private var running = TimerStorage.running + @State private var hasActive = TimerStorage.endAt != nil + @State private var hours = "0" + @State private var minutes = "5" + @State private var seconds = "0" + private let ticker = Timer.publish(every: 0.25, on: .main, in: .common).autoconnect() + + var body: some View { + VStack(spacing: 24) { + Text("Timer") + .font(McFont.bold(20)) + .foregroundStyle(Color.appText) + .frame(maxWidth: .infinity, alignment: .leading) + + Text(formatMilliseconds(remainingMs)) + .font(McFont.bold(34)) + .foregroundStyle(Color.appText) + .padding(.top, 16) + + if !running && !hasActive { + HStack(spacing: 8) { + TimerField(value: $hours, hint: "h") + TimerField(value: $minutes, hint: "m") + TimerField(value: $seconds, hint: "s") + } + } + + HStack(spacing: 8) { + Button(startTitle) { + startOrResume() + } + .buttonStyle(McButtonStyle(primary: true)) + .disabled(running) + + Button("Pause") { + pause() + } + .buttonStyle(McButtonStyle()) + .disabled(!running) + + Button("Reset") { + reset() + } + .buttonStyle(McButtonStyle()) + } + + Spacer() + } + .padding(24) + .background(Color.appBg.ignoresSafeArea()) + .navigationTitle("") + .toolbarBackground(Color.appBg, for: .navigationBar) + .toolbarBackground(.visible, for: .navigationBar) + .onReceive(ticker) { _ in refresh() } + .onAppear(perform: refresh) + } + + private var startTitle: String { + if running { return "Running" } + return remainingMs > 0 && hasActive ? "Resume" : "Start" + } + + private func refresh() { + if running, let endAt = TimerStorage.endAt { + remainingMs = max(0, Int64(endAt.timeIntervalSinceNow * 1000)) + if remainingMs == 0 { + running = false + hasActive = false + TimerStorage.reset() + } + } + } + + private func startOrResume() { + guard !running else { return } + if remainingMs > 0 && hasActive { + TimerStorage.endAt = Date().addingTimeInterval(Double(remainingMs) / 1000.0) + } else { + let ms = Int64(timerNumber(hours) * 3_600_000 + timerNumber(minutes) * 60_000 + timerNumber(seconds) * 1000) + guard ms > 0 else { return } + remainingMs = ms + TimerStorage.remainingMilliseconds = ms + TimerStorage.endAt = Date().addingTimeInterval(Double(ms) / 1000.0) + } + TimerStorage.running = true + running = true + hasActive = true + if let endAt = TimerStorage.endAt { + NotificationManager.shared.scheduleTimer(endAt: endAt) + } + } + + private func pause() { + guard running else { return } + refresh() + TimerStorage.remainingMilliseconds = remainingMs + TimerStorage.running = false + running = false + NotificationManager.shared.cancelTimer() + } + + private func reset() { + TimerStorage.reset() + NotificationManager.shared.cancelTimer() + remainingMs = 0 + running = false + hasActive = false + hours = "0" + minutes = "5" + seconds = "0" + } +} + +struct TimerField: View { + @Binding var value: String + let hint: String + + var body: some View { + TextField(hint, text: Binding(get: { value }, set: { value = String($0.filter(\.isNumber).prefix(2)) })) + .keyboardType(.numberPad) + .font(McFont.body(15)) + .foregroundStyle(Color.appText) + .multilineTextAlignment(.center) + .padding(12) + .background(Color.appSurface) + .overlay(RoundedRectangle(cornerRadius: 8).stroke(Color.appTextDim, lineWidth: 1)) + .clipShape(RoundedRectangle(cornerRadius: 8)) + } +} + +private func timerNumber(_ value: String) -> Int { + NumberFormatter().number(from: value)?.intValue ?? Int(value) ?? 0 +} + +private func formatMilliseconds(_ ms: Int64) -> String { + let totalSeconds = Int(ms / 1000) + return String(format: "%02d:%02d:%02d", totalSeconds / 3600, (totalSeconds % 3600) / 60, totalSeconds % 60) +} diff --git a/ios/MCClockWidget/Info.plist b/ios/MCClockWidget/Info.plist new file mode 100644 index 0000000..7150ba1 --- /dev/null +++ b/ios/MCClockWidget/Info.plist @@ -0,0 +1,33 @@ + + + + + CFBundleDevelopmentRegion + $(DEVELOPMENT_LANGUAGE) + CFBundleDisplayName + Minecraft Clock Widget + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + XPC! + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + NSExtension + + NSExtensionPointIdentifier + com.apple.widgetkit-extension + + UIAppFonts + + Silkscreen-Bold.ttf + + + diff --git a/ios/MCClockWidget/MCClockWidget.swift b/ios/MCClockWidget/MCClockWidget.swift new file mode 100644 index 0000000..7860100 --- /dev/null +++ b/ios/MCClockWidget/MCClockWidget.swift @@ -0,0 +1,62 @@ +import SwiftUI +import WidgetKit + +struct ClockEntry: TimelineEntry { + let date: Date + let frameName: String + let accessibilityTime: String +} + +struct ClockProvider: TimelineProvider { + func placeholder(in context: Context) -> ClockEntry { + entry(for: Date()) + } + + func getSnapshot(in context: Context, completion: @escaping (ClockEntry) -> Void) { + completion(entry(for: Date())) + } + + func getTimeline(in context: Context, completion: @escaping (Timeline) -> Void) { + let start = Calendar.current.dateInterval(of: .minute, for: Date())?.start ?? Date() + let entries = (0..<240).compactMap { offset -> ClockEntry? in + guard let date = Calendar.current.date(byAdding: .minute, value: offset, to: start) else { return nil } + return entry(for: date) + } + completion(Timeline(entries: entries, policy: .after(start.addingTimeInterval(240 * 60)))) + } + + private func entry(for date: Date) -> ClockEntry { + ClockEntry( + date: date, + frameName: MinecraftTime.frameImageName(for: date), + accessibilityTime: ClockUtilities.localTimeText(date, includeSeconds: false) + ) + } +} + +struct MCClockWidgetView: View { + let entry: ClockEntry + + var body: some View { + Image(entry.frameName) + .resizable() + .interpolation(.none) + .scaledToFit() + .frame(maxWidth: .infinity, maxHeight: .infinity) + .accessibilityLabel(entry.accessibilityTime) + .widgetURL(URL(string: "mcclock://open")) + .containerBackground(.clear, for: .widget) + } +} + +@main +struct MCClockWidget: Widget { + var body: some WidgetConfiguration { + StaticConfiguration(kind: "com.coobyk.mc.clock.widget", provider: ClockProvider()) { entry in + MCClockWidgetView(entry: entry) + } + .configurationDisplayName("Minecraft Clock") + .description("Shows the time as Minecraft's clock dial.") + .supportedFamilies([.systemSmall, .systemMedium, .systemLarge, .systemExtraLarge]) + } +} diff --git a/ios/README.md b/ios/README.md new file mode 100644 index 0000000..5365a52 --- /dev/null +++ b/ios/README.md @@ -0,0 +1,34 @@ +# Minecraft Clock for iOS + +Native SwiftUI port of MCClockWidget with: + +- the same vanilla 64-frame Minecraft clock maths (`timeOfDay` warp plus `floor(value * 64)`), +- the original clock textures rendered with nearest-neighbor scaling, +- a WidgetKit Home Screen widget containing only the dial, +- a live app screen with local time, Minecraft time, ticks, frame, and sky phase, +- alarms with repeat days, labels, and 10-minute snooze actions, +- pause/resume/reset timer with completion notification, +- stopwatch with laps, +- the Silkscreen pixel font and Minecraft-inspired dark UI. + +## Platform differences + +iOS does not expose Android's widget-pinning API, continuous background alarm ringing, or exact full-screen alarm activities to ordinary apps. Alarms and timer completion therefore use local notifications, and the Add to Home Screen button shows the manual widget-install steps. The clock maths, textures, layout, and foreground behavior otherwise follow the Android app. iOS can composite widgets over its own Home Screen material even when the widget background is transparent, so the dial may not visually float directly on the wallpaper the way the Android widget does. + +## Build an unsigned IPA + +Install Xcode and XcodeGen, then run: + +```sh +cd ios +./build-ipa.sh +``` + +The output is `ios/build/MCClock-unsigned.ipa`. It is intentionally unsigned. Sign it while sideloading with AltStore, Sideloadly, or another signer. A free Apple ID can be used, subject to Apple's normal free-provisioning limits. + +The bundle identifiers are: + +- app: `com.coobyk.mc.clock` +- widget extension: `com.coobyk.mc.clock.widget` + +No app group or paid-only entitlement is required. diff --git a/ios/Shared/ClockUtilities.swift b/ios/Shared/ClockUtilities.swift new file mode 100644 index 0000000..8d26c86 --- /dev/null +++ b/ios/Shared/ClockUtilities.swift @@ -0,0 +1,20 @@ +import Foundation + +enum ClockUtilities { + static func localTimeText(_ date: Date, includeSeconds: Bool) -> String { + let formatter = DateFormatter() + formatter.locale = Locale.current + formatter.dateFormat = includeSeconds ? (uses24HourClock() ? "HH:mm:ss" : "h:mm:ss a") : (uses24HourClock() ? "HH:mm" : "h:mm a") + return formatter.string(from: date) + } + + static func uses24HourClock() -> Bool { + let template = DateFormatter.dateFormat(fromTemplate: "j", options: 0, locale: Locale.current) ?? "HH" + return !template.contains("a") + } + + static func nextMinute(after date: Date = Date()) -> Date { + let interval = date.timeIntervalSince1970 + return Date(timeIntervalSince1970: floor(interval / 60.0) * 60.0 + 60.0) + } +} diff --git a/ios/Shared/MinecraftTime.swift b/ios/Shared/MinecraftTime.swift new file mode 100644 index 0000000..33cc7a2 --- /dev/null +++ b/ios/Shared/MinecraftTime.swift @@ -0,0 +1,67 @@ +import Foundation + +enum MinecraftTime { + static let dayTicks = 24_000.0 + static let sunriseTick = 0.0 + static let sunsetTick = 12_000.0 + + static func timeOfDay(_ dayTimeTicks: Double) -> Double { + let d = frac(dayTimeTicks / dayTicks - 0.25) + let e = 0.5 - cos(d * .pi) / 2.0 + return d + (e - d) / 3.0 + } + + static func clockPredicate(_ dayTimeTicks: Double) -> Double { + frac(timeOfDay(dayTimeTicks)) + } + + static func clockFrame(_ dayTimeTicks: Double) -> Int { + min(63, max(0, Int(floor(clockPredicate(dayTimeTicks) * 64.0)))) + } + + static func dayTime(for date: Date) -> Double { + let components = Calendar.current.dateComponents([.hour, .minute, .second, .nanosecond], from: date) + let seconds = Double((components.hour ?? 0) * 3_600 + (components.minute ?? 0) * 60 + (components.second ?? 0)) + + Double(components.nanosecond ?? 0) / 1_000_000_000.0 + let ticks = seconds / 86_400.0 * dayTicks - 6_000.0 + return modulo(ticks, dayTicks) + } + + static func frame(for date: Date) -> Int { + clockFrame(dayTime(for: date)) + } + + static func frameImageName(for date: Date) -> String { + String(format: "clock_%02d", frame(for: date)) + } + + static func worldClockText(_ dayTimeTicks: Double) -> String { + let minutes = modulo(dayTimeTicks / dayTicks * 1440.0 + 360.0, 1440.0) + return String(format: "%02d:%02d", Int(minutes / 60.0), Int(minutes.truncatingRemainder(dividingBy: 60.0))) + } + + enum Phase: String { + case sunrise = "Sunrise" + case day = "Day" + case sunset = "Sunset" + case night = "Night" + } + + static func phase(_ dayTimeTicks: Double) -> Phase { + switch dayTimeTicks { + case ..<1_100: return .sunrise + case ..<11_700: return .day + case ..<13_300: return .sunset + case ..<22_800: return .night + default: return .sunrise + } + } + + private static func frac(_ value: Double) -> Double { + value - floor(value) + } + + private static func modulo(_ value: Double, _ modulus: Double) -> Double { + value.truncatingRemainder(dividingBy: modulus).advanced(by: modulus).truncatingRemainder(dividingBy: modulus) + } +} diff --git a/ios/Shared/SharedAssets.xcassets/Contents.json b/ios/Shared/SharedAssets.xcassets/Contents.json new file mode 100644 index 0000000..c47b5f2 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info": { + "author": "xcode", + "version": 1 + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/bg_stone_tile.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/bg_stone_tile.imageset/Contents.json new file mode 100644 index 0000000..7ff15d1 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/bg_stone_tile.imageset/Contents.json @@ -0,0 +1,13 @@ +{ + "images": [ + { + "filename": "bg_stone_tile.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/bg_stone_tile.imageset/bg_stone_tile.png b/ios/Shared/SharedAssets.xcassets/bg_stone_tile.imageset/bg_stone_tile.png new file mode 100644 index 0000000..446f996 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/bg_stone_tile.imageset/bg_stone_tile.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_00.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_00.imageset/Contents.json new file mode 100644 index 0000000..97f6c99 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_00.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_00.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_00.imageset/clock_00.png b/ios/Shared/SharedAssets.xcassets/clock_00.imageset/clock_00.png new file mode 100644 index 0000000..3c63030 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_00.imageset/clock_00.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_01.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_01.imageset/Contents.json new file mode 100644 index 0000000..13778c7 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_01.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_01.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_01.imageset/clock_01.png b/ios/Shared/SharedAssets.xcassets/clock_01.imageset/clock_01.png new file mode 100644 index 0000000..9d63c2d Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_01.imageset/clock_01.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_02.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_02.imageset/Contents.json new file mode 100644 index 0000000..c4823b7 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_02.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_02.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_02.imageset/clock_02.png b/ios/Shared/SharedAssets.xcassets/clock_02.imageset/clock_02.png new file mode 100644 index 0000000..a289840 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_02.imageset/clock_02.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_03.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_03.imageset/Contents.json new file mode 100644 index 0000000..97ba64c --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_03.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_03.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_03.imageset/clock_03.png b/ios/Shared/SharedAssets.xcassets/clock_03.imageset/clock_03.png new file mode 100644 index 0000000..056242f Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_03.imageset/clock_03.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_04.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_04.imageset/Contents.json new file mode 100644 index 0000000..0a52d47 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_04.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_04.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_04.imageset/clock_04.png b/ios/Shared/SharedAssets.xcassets/clock_04.imageset/clock_04.png new file mode 100644 index 0000000..99752e7 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_04.imageset/clock_04.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_05.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_05.imageset/Contents.json new file mode 100644 index 0000000..795cdfd --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_05.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_05.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_05.imageset/clock_05.png b/ios/Shared/SharedAssets.xcassets/clock_05.imageset/clock_05.png new file mode 100644 index 0000000..9cd9b42 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_05.imageset/clock_05.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_06.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_06.imageset/Contents.json new file mode 100644 index 0000000..8cb878b --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_06.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_06.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_06.imageset/clock_06.png b/ios/Shared/SharedAssets.xcassets/clock_06.imageset/clock_06.png new file mode 100644 index 0000000..245ee49 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_06.imageset/clock_06.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_07.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_07.imageset/Contents.json new file mode 100644 index 0000000..6d9e371 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_07.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_07.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_07.imageset/clock_07.png b/ios/Shared/SharedAssets.xcassets/clock_07.imageset/clock_07.png new file mode 100644 index 0000000..3f2fadc Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_07.imageset/clock_07.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_08.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_08.imageset/Contents.json new file mode 100644 index 0000000..20fe49e --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_08.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_08.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_08.imageset/clock_08.png b/ios/Shared/SharedAssets.xcassets/clock_08.imageset/clock_08.png new file mode 100644 index 0000000..4ebe120 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_08.imageset/clock_08.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_09.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_09.imageset/Contents.json new file mode 100644 index 0000000..5ce8c53 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_09.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_09.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_09.imageset/clock_09.png b/ios/Shared/SharedAssets.xcassets/clock_09.imageset/clock_09.png new file mode 100644 index 0000000..bf29fdd Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_09.imageset/clock_09.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_10.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_10.imageset/Contents.json new file mode 100644 index 0000000..243c833 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_10.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_10.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_10.imageset/clock_10.png b/ios/Shared/SharedAssets.xcassets/clock_10.imageset/clock_10.png new file mode 100644 index 0000000..559a639 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_10.imageset/clock_10.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_11.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_11.imageset/Contents.json new file mode 100644 index 0000000..0a5a730 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_11.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_11.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_11.imageset/clock_11.png b/ios/Shared/SharedAssets.xcassets/clock_11.imageset/clock_11.png new file mode 100644 index 0000000..89c751b Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_11.imageset/clock_11.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_12.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_12.imageset/Contents.json new file mode 100644 index 0000000..a41b510 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_12.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_12.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_12.imageset/clock_12.png b/ios/Shared/SharedAssets.xcassets/clock_12.imageset/clock_12.png new file mode 100644 index 0000000..4aebba5 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_12.imageset/clock_12.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_13.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_13.imageset/Contents.json new file mode 100644 index 0000000..238d834 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_13.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_13.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_13.imageset/clock_13.png b/ios/Shared/SharedAssets.xcassets/clock_13.imageset/clock_13.png new file mode 100644 index 0000000..291f41b Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_13.imageset/clock_13.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_14.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_14.imageset/Contents.json new file mode 100644 index 0000000..00ca72d --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_14.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_14.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_14.imageset/clock_14.png b/ios/Shared/SharedAssets.xcassets/clock_14.imageset/clock_14.png new file mode 100644 index 0000000..c998d6f Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_14.imageset/clock_14.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_15.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_15.imageset/Contents.json new file mode 100644 index 0000000..88786a4 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_15.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_15.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_15.imageset/clock_15.png b/ios/Shared/SharedAssets.xcassets/clock_15.imageset/clock_15.png new file mode 100644 index 0000000..3b79b00 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_15.imageset/clock_15.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_16.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_16.imageset/Contents.json new file mode 100644 index 0000000..7e973db --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_16.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_16.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_16.imageset/clock_16.png b/ios/Shared/SharedAssets.xcassets/clock_16.imageset/clock_16.png new file mode 100644 index 0000000..412efe7 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_16.imageset/clock_16.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_17.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_17.imageset/Contents.json new file mode 100644 index 0000000..f78c608 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_17.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_17.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_17.imageset/clock_17.png b/ios/Shared/SharedAssets.xcassets/clock_17.imageset/clock_17.png new file mode 100644 index 0000000..10c9435 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_17.imageset/clock_17.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_18.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_18.imageset/Contents.json new file mode 100644 index 0000000..4be1a13 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_18.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_18.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_18.imageset/clock_18.png b/ios/Shared/SharedAssets.xcassets/clock_18.imageset/clock_18.png new file mode 100644 index 0000000..952bd2f Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_18.imageset/clock_18.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_19.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_19.imageset/Contents.json new file mode 100644 index 0000000..34cca2c --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_19.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_19.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_19.imageset/clock_19.png b/ios/Shared/SharedAssets.xcassets/clock_19.imageset/clock_19.png new file mode 100644 index 0000000..cd59706 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_19.imageset/clock_19.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_20.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_20.imageset/Contents.json new file mode 100644 index 0000000..f4a254e --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_20.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_20.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_20.imageset/clock_20.png b/ios/Shared/SharedAssets.xcassets/clock_20.imageset/clock_20.png new file mode 100644 index 0000000..8e63d53 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_20.imageset/clock_20.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_21.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_21.imageset/Contents.json new file mode 100644 index 0000000..3eb7f04 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_21.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_21.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_21.imageset/clock_21.png b/ios/Shared/SharedAssets.xcassets/clock_21.imageset/clock_21.png new file mode 100644 index 0000000..971ce4a Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_21.imageset/clock_21.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_22.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_22.imageset/Contents.json new file mode 100644 index 0000000..77abf06 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_22.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_22.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_22.imageset/clock_22.png b/ios/Shared/SharedAssets.xcassets/clock_22.imageset/clock_22.png new file mode 100644 index 0000000..e442e73 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_22.imageset/clock_22.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_23.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_23.imageset/Contents.json new file mode 100644 index 0000000..3fc8370 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_23.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_23.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_23.imageset/clock_23.png b/ios/Shared/SharedAssets.xcassets/clock_23.imageset/clock_23.png new file mode 100644 index 0000000..c49d8f2 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_23.imageset/clock_23.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_24.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_24.imageset/Contents.json new file mode 100644 index 0000000..0aec4ff --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_24.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_24.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_24.imageset/clock_24.png b/ios/Shared/SharedAssets.xcassets/clock_24.imageset/clock_24.png new file mode 100644 index 0000000..5d5d928 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_24.imageset/clock_24.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_25.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_25.imageset/Contents.json new file mode 100644 index 0000000..d7be7d4 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_25.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_25.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_25.imageset/clock_25.png b/ios/Shared/SharedAssets.xcassets/clock_25.imageset/clock_25.png new file mode 100644 index 0000000..30712c8 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_25.imageset/clock_25.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_26.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_26.imageset/Contents.json new file mode 100644 index 0000000..bc28601 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_26.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_26.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_26.imageset/clock_26.png b/ios/Shared/SharedAssets.xcassets/clock_26.imageset/clock_26.png new file mode 100644 index 0000000..8685bc2 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_26.imageset/clock_26.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_27.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_27.imageset/Contents.json new file mode 100644 index 0000000..64e1034 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_27.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_27.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_27.imageset/clock_27.png b/ios/Shared/SharedAssets.xcassets/clock_27.imageset/clock_27.png new file mode 100644 index 0000000..59acc3a Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_27.imageset/clock_27.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_28.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_28.imageset/Contents.json new file mode 100644 index 0000000..fae63b1 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_28.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_28.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_28.imageset/clock_28.png b/ios/Shared/SharedAssets.xcassets/clock_28.imageset/clock_28.png new file mode 100644 index 0000000..f56af84 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_28.imageset/clock_28.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_29.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_29.imageset/Contents.json new file mode 100644 index 0000000..fd21ace --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_29.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_29.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_29.imageset/clock_29.png b/ios/Shared/SharedAssets.xcassets/clock_29.imageset/clock_29.png new file mode 100644 index 0000000..2bc2e23 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_29.imageset/clock_29.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_30.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_30.imageset/Contents.json new file mode 100644 index 0000000..6dbcdd5 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_30.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_30.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_30.imageset/clock_30.png b/ios/Shared/SharedAssets.xcassets/clock_30.imageset/clock_30.png new file mode 100644 index 0000000..5c3d6bb Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_30.imageset/clock_30.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_31.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_31.imageset/Contents.json new file mode 100644 index 0000000..4444066 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_31.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_31.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_31.imageset/clock_31.png b/ios/Shared/SharedAssets.xcassets/clock_31.imageset/clock_31.png new file mode 100644 index 0000000..83c0549 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_31.imageset/clock_31.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_32.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_32.imageset/Contents.json new file mode 100644 index 0000000..6d6dbf5 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_32.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_32.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_32.imageset/clock_32.png b/ios/Shared/SharedAssets.xcassets/clock_32.imageset/clock_32.png new file mode 100644 index 0000000..37865a2 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_32.imageset/clock_32.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_33.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_33.imageset/Contents.json new file mode 100644 index 0000000..2a95913 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_33.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_33.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_33.imageset/clock_33.png b/ios/Shared/SharedAssets.xcassets/clock_33.imageset/clock_33.png new file mode 100644 index 0000000..a883680 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_33.imageset/clock_33.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_34.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_34.imageset/Contents.json new file mode 100644 index 0000000..751efc8 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_34.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_34.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_34.imageset/clock_34.png b/ios/Shared/SharedAssets.xcassets/clock_34.imageset/clock_34.png new file mode 100644 index 0000000..8926309 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_34.imageset/clock_34.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_35.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_35.imageset/Contents.json new file mode 100644 index 0000000..e9cdabe --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_35.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_35.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_35.imageset/clock_35.png b/ios/Shared/SharedAssets.xcassets/clock_35.imageset/clock_35.png new file mode 100644 index 0000000..72d2ee9 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_35.imageset/clock_35.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_36.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_36.imageset/Contents.json new file mode 100644 index 0000000..a5447c5 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_36.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_36.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_36.imageset/clock_36.png b/ios/Shared/SharedAssets.xcassets/clock_36.imageset/clock_36.png new file mode 100644 index 0000000..127d54c Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_36.imageset/clock_36.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_37.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_37.imageset/Contents.json new file mode 100644 index 0000000..2b7c00a --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_37.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_37.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_37.imageset/clock_37.png b/ios/Shared/SharedAssets.xcassets/clock_37.imageset/clock_37.png new file mode 100644 index 0000000..662511d Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_37.imageset/clock_37.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_38.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_38.imageset/Contents.json new file mode 100644 index 0000000..0c638b3 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_38.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_38.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_38.imageset/clock_38.png b/ios/Shared/SharedAssets.xcassets/clock_38.imageset/clock_38.png new file mode 100644 index 0000000..cafe593 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_38.imageset/clock_38.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_39.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_39.imageset/Contents.json new file mode 100644 index 0000000..d924aa0 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_39.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_39.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_39.imageset/clock_39.png b/ios/Shared/SharedAssets.xcassets/clock_39.imageset/clock_39.png new file mode 100644 index 0000000..21f4e15 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_39.imageset/clock_39.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_40.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_40.imageset/Contents.json new file mode 100644 index 0000000..79005e7 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_40.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_40.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_40.imageset/clock_40.png b/ios/Shared/SharedAssets.xcassets/clock_40.imageset/clock_40.png new file mode 100644 index 0000000..ab4c04e Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_40.imageset/clock_40.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_41.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_41.imageset/Contents.json new file mode 100644 index 0000000..642550f --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_41.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_41.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_41.imageset/clock_41.png b/ios/Shared/SharedAssets.xcassets/clock_41.imageset/clock_41.png new file mode 100644 index 0000000..06654a7 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_41.imageset/clock_41.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_42.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_42.imageset/Contents.json new file mode 100644 index 0000000..d3828fd --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_42.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_42.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_42.imageset/clock_42.png b/ios/Shared/SharedAssets.xcassets/clock_42.imageset/clock_42.png new file mode 100644 index 0000000..5beed75 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_42.imageset/clock_42.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_43.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_43.imageset/Contents.json new file mode 100644 index 0000000..3324862 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_43.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_43.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_43.imageset/clock_43.png b/ios/Shared/SharedAssets.xcassets/clock_43.imageset/clock_43.png new file mode 100644 index 0000000..2526dfc Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_43.imageset/clock_43.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_44.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_44.imageset/Contents.json new file mode 100644 index 0000000..621c3a6 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_44.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_44.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_44.imageset/clock_44.png b/ios/Shared/SharedAssets.xcassets/clock_44.imageset/clock_44.png new file mode 100644 index 0000000..d717de8 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_44.imageset/clock_44.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_45.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_45.imageset/Contents.json new file mode 100644 index 0000000..5ae7a99 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_45.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_45.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_45.imageset/clock_45.png b/ios/Shared/SharedAssets.xcassets/clock_45.imageset/clock_45.png new file mode 100644 index 0000000..c8c14e9 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_45.imageset/clock_45.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_46.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_46.imageset/Contents.json new file mode 100644 index 0000000..59f696d --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_46.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_46.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_46.imageset/clock_46.png b/ios/Shared/SharedAssets.xcassets/clock_46.imageset/clock_46.png new file mode 100644 index 0000000..696ae16 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_46.imageset/clock_46.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_47.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_47.imageset/Contents.json new file mode 100644 index 0000000..5668eef --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_47.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_47.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_47.imageset/clock_47.png b/ios/Shared/SharedAssets.xcassets/clock_47.imageset/clock_47.png new file mode 100644 index 0000000..cbae35f Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_47.imageset/clock_47.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_48.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_48.imageset/Contents.json new file mode 100644 index 0000000..957b881 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_48.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_48.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_48.imageset/clock_48.png b/ios/Shared/SharedAssets.xcassets/clock_48.imageset/clock_48.png new file mode 100644 index 0000000..4e07a79 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_48.imageset/clock_48.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_49.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_49.imageset/Contents.json new file mode 100644 index 0000000..c76a3d5 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_49.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_49.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_49.imageset/clock_49.png b/ios/Shared/SharedAssets.xcassets/clock_49.imageset/clock_49.png new file mode 100644 index 0000000..e49dd43 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_49.imageset/clock_49.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_50.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_50.imageset/Contents.json new file mode 100644 index 0000000..825c153 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_50.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_50.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_50.imageset/clock_50.png b/ios/Shared/SharedAssets.xcassets/clock_50.imageset/clock_50.png new file mode 100644 index 0000000..95b8bee Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_50.imageset/clock_50.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_51.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_51.imageset/Contents.json new file mode 100644 index 0000000..2a3f995 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_51.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_51.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_51.imageset/clock_51.png b/ios/Shared/SharedAssets.xcassets/clock_51.imageset/clock_51.png new file mode 100644 index 0000000..b38299b Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_51.imageset/clock_51.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_52.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_52.imageset/Contents.json new file mode 100644 index 0000000..242b17d --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_52.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_52.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_52.imageset/clock_52.png b/ios/Shared/SharedAssets.xcassets/clock_52.imageset/clock_52.png new file mode 100644 index 0000000..6080888 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_52.imageset/clock_52.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_53.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_53.imageset/Contents.json new file mode 100644 index 0000000..4206e21 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_53.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_53.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_53.imageset/clock_53.png b/ios/Shared/SharedAssets.xcassets/clock_53.imageset/clock_53.png new file mode 100644 index 0000000..2495b72 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_53.imageset/clock_53.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_54.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_54.imageset/Contents.json new file mode 100644 index 0000000..25b27c1 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_54.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_54.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_54.imageset/clock_54.png b/ios/Shared/SharedAssets.xcassets/clock_54.imageset/clock_54.png new file mode 100644 index 0000000..b124f13 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_54.imageset/clock_54.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_55.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_55.imageset/Contents.json new file mode 100644 index 0000000..6391281 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_55.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_55.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_55.imageset/clock_55.png b/ios/Shared/SharedAssets.xcassets/clock_55.imageset/clock_55.png new file mode 100644 index 0000000..c893222 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_55.imageset/clock_55.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_56.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_56.imageset/Contents.json new file mode 100644 index 0000000..79ec725 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_56.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_56.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_56.imageset/clock_56.png b/ios/Shared/SharedAssets.xcassets/clock_56.imageset/clock_56.png new file mode 100644 index 0000000..e47d021 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_56.imageset/clock_56.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_57.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_57.imageset/Contents.json new file mode 100644 index 0000000..2a61fef --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_57.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_57.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_57.imageset/clock_57.png b/ios/Shared/SharedAssets.xcassets/clock_57.imageset/clock_57.png new file mode 100644 index 0000000..b7d4c4b Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_57.imageset/clock_57.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_58.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_58.imageset/Contents.json new file mode 100644 index 0000000..c59c27a --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_58.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_58.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_58.imageset/clock_58.png b/ios/Shared/SharedAssets.xcassets/clock_58.imageset/clock_58.png new file mode 100644 index 0000000..492eec2 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_58.imageset/clock_58.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_59.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_59.imageset/Contents.json new file mode 100644 index 0000000..6658f11 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_59.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_59.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_59.imageset/clock_59.png b/ios/Shared/SharedAssets.xcassets/clock_59.imageset/clock_59.png new file mode 100644 index 0000000..31486f7 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_59.imageset/clock_59.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_60.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_60.imageset/Contents.json new file mode 100644 index 0000000..3c642d3 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_60.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_60.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_60.imageset/clock_60.png b/ios/Shared/SharedAssets.xcassets/clock_60.imageset/clock_60.png new file mode 100644 index 0000000..d4f4b76 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_60.imageset/clock_60.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_61.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_61.imageset/Contents.json new file mode 100644 index 0000000..d4b6aed --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_61.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_61.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_61.imageset/clock_61.png b/ios/Shared/SharedAssets.xcassets/clock_61.imageset/clock_61.png new file mode 100644 index 0000000..f336649 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_61.imageset/clock_61.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_62.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_62.imageset/Contents.json new file mode 100644 index 0000000..bc2f784 --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_62.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_62.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_62.imageset/clock_62.png b/ios/Shared/SharedAssets.xcassets/clock_62.imageset/clock_62.png new file mode 100644 index 0000000..3469647 Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_62.imageset/clock_62.png differ diff --git a/ios/Shared/SharedAssets.xcassets/clock_63.imageset/Contents.json b/ios/Shared/SharedAssets.xcassets/clock_63.imageset/Contents.json new file mode 100644 index 0000000..319a70a --- /dev/null +++ b/ios/Shared/SharedAssets.xcassets/clock_63.imageset/Contents.json @@ -0,0 +1,16 @@ +{ + "images": [ + { + "filename": "clock_63.png", + "idiom": "universal", + "scale": "1x" + } + ], + "info": { + "author": "xcode", + "version": 1 + }, + "properties": { + "preserves-vector-representation": false + } +} \ No newline at end of file diff --git a/ios/Shared/SharedAssets.xcassets/clock_63.imageset/clock_63.png b/ios/Shared/SharedAssets.xcassets/clock_63.imageset/clock_63.png new file mode 100644 index 0000000..8dde07f Binary files /dev/null and b/ios/Shared/SharedAssets.xcassets/clock_63.imageset/clock_63.png differ diff --git a/ios/Shared/Silkscreen-Bold.ttf b/ios/Shared/Silkscreen-Bold.ttf new file mode 100644 index 0000000..6771252 Binary files /dev/null and b/ios/Shared/Silkscreen-Bold.ttf differ diff --git a/ios/build-ipa.sh b/ios/build-ipa.sh new file mode 100755 index 0000000..2df1919 --- /dev/null +++ b/ios/build-ipa.sh @@ -0,0 +1,29 @@ +#!/bin/sh +set -eu + +cd "$(dirname "$0")" + +if ! command -v xcodegen >/dev/null 2>&1; then + echo "xcodegen is required: brew install xcodegen" >&2 + exit 1 +fi + +xcodegen generate +rm -rf build/MCClock.xcarchive build/Payload build/MCClock-unsigned.ipa +xcodebuild \ + -project MCClock.xcodeproj \ + -scheme MCClock \ + -configuration Release \ + -destination 'generic/platform=iOS' \ + -archivePath build/MCClock.xcarchive \ + archive \ + CODE_SIGNING_ALLOWED=NO + +mkdir -p build/Payload +cp -R build/MCClock.xcarchive/Products/Applications/MCClock.app build/Payload/MCClock.app +( + cd build + zip -qry MCClock-unsigned.ipa Payload +) + +echo "Wrote ios/build/MCClock-unsigned.ipa" diff --git a/ios/project.yml b/ios/project.yml new file mode 100644 index 0000000..26d7a63 --- /dev/null +++ b/ios/project.yml @@ -0,0 +1,70 @@ +name: MCClock +options: + bundleIdPrefix: com.coobyk + deploymentTarget: + iOS: "17.0" +settings: + base: + SWIFT_VERSION: "5.0" + CODE_SIGN_STYLE: Manual + DEVELOPMENT_TEAM: "" + CODE_SIGNING_ALLOWED: NO + CODE_SIGNING_REQUIRED: NO +targets: + MCClock: + type: application + platform: iOS + deploymentTarget: "17.0" + sources: + - path: MCClock + - path: Shared + info: + path: MCClock/Info.plist + properties: + CFBundleDisplayName: Minecraft Clock + CFBundleURLTypes: + - CFBundleURLName: com.coobyk.mc.clock + CFBundleURLSchemes: [mcclock] + UIAppFonts: [Silkscreen-Bold.ttf] + UILaunchScreen: {} + UISupportedInterfaceOrientations: + - UIInterfaceOrientationPortrait + - UIInterfaceOrientationLandscapeLeft + - UIInterfaceOrientationLandscapeRight + - UIInterfaceOrientationPortraitUpsideDown + settings: + base: + PRODUCT_BUNDLE_IDENTIFIER: com.coobyk.mc.clock + TARGETED_DEVICE_FAMILY: "1,2" + dependencies: + - target: MCClockWidget + embed: true + MCClockWidget: + type: app-extension + platform: iOS + deploymentTarget: "17.0" + sources: + - path: MCClockWidget + - path: Shared + info: + path: MCClockWidget/Info.plist + properties: + CFBundleDisplayName: Minecraft Clock Widget + NSExtension: + NSExtensionPointIdentifier: com.apple.widgetkit-extension + UIAppFonts: [Silkscreen-Bold.ttf] + settings: + base: + PRODUCT_BUNDLE_IDENTIFIER: com.coobyk.mc.clock.widget + TARGETED_DEVICE_FAMILY: "1,2" + SKIP_INSTALL: YES +schemes: + MCClock: + build: + targets: + MCClock: all + MCClockWidget: all + run: + config: Debug + archive: + config: Release diff --git a/settings.gradle.kts b/settings.gradle.kts index 7366767..2f24c3e 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -7,6 +7,8 @@ pluginManagement { includeGroupByRegex("androidx.*") } } + // Google's GCS mirror avoids intermittent Maven Central 429s in CI. + maven("https://maven-central.storage-download.googleapis.com/maven2/") mavenCentral() gradlePluginPortal() } @@ -16,6 +18,8 @@ dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { google() + // Google's GCS mirror avoids intermittent Maven Central 429s in CI. + maven("https://maven-central.storage-download.googleapis.com/maven2/") mavenCentral() } }