diff --git a/DarockBili.xcodeproj/project.pbxproj b/DarockBili.xcodeproj/project.pbxproj index 40bbc16f6..4033dc4ea 100644 --- a/DarockBili.xcodeproj/project.pbxproj +++ b/DarockBili.xcodeproj/project.pbxproj @@ -411,6 +411,8 @@ 8CC5B7422B8749BC00BAD89E /* MeowBiliUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MeowBiliUITests.swift; sourceTree = ""; }; 8CC5B74B2B8749FC00BAD89E /* MeowBili.xctestplan */ = {isa = PBXFileReference; lastKnownFileType = text; path = MeowBili.xctestplan; sourceTree = ""; }; 8CD9463A2B64CD0F005D00D0 /* Bangumi_Detail_Season.json */ = {isa = PBXFileReference; lastKnownFileType = text.json; path = Bangumi_Detail_Season.json; sourceTree = ""; }; + 8CF148922CC403BF00C13711 /* BiliAPI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BiliAPI.swift; sourceTree = ""; }; + 8CF148942CC4040E00C13711 /* ResponseModels.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ResponseModels.swift; sourceTree = ""; }; 8CFB6B652C650FED007C7BAA /* Watch Debug.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Watch Debug.entitlements"; sourceTree = ""; }; 8CFB6B662C650FFE007C7BAA /* Watch Release.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = "Watch Release.entitlements"; sourceTree = ""; }; B2B8137D2CC3D0ED00C69D17 /* MeowWidgetExtension.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = MeowWidgetExtension.appex; sourceTree = BUILT_PRODUCTS_DIR; }; @@ -572,6 +574,7 @@ 8CA7CC752B77AF4B008E587F /* MeowBili-Bridging-Header.h */, 8CC5B74B2B8749FC00BAD89E /* MeowBili.xctestplan */, 8CA7CBC22B77AC4A008E587F /* MeowBiliApp.swift */, + 8CF148932CC4040500C13711 /* Backend */, 8CA7CC642B77AE33008E587F /* Models */, 8CA7CC6D2B77AEA4008E587F /* InMain */, 8CA7CC722B77AEFB008E587F /* Errors */, @@ -777,6 +780,15 @@ path = MeowBiliUITests; sourceTree = ""; }; + 8CF148932CC4040500C13711 /* Backend */ = { + isa = PBXGroup; + children = ( + 8CF148922CC403BF00C13711 /* BiliAPI.swift */, + 8CF148942CC4040E00C13711 /* ResponseModels.swift */, + ); + path = Backend; + sourceTree = ""; + }; 8CFB6B672C6512D1007C7BAA /* Entitlements */ = { isa = PBXGroup; children = ( @@ -2075,7 +2087,7 @@ "@executable_path/../../Frameworks", ); MARKETING_VERSION = 1.0; - PRODUCT_BUNDLE_IDENTIFIER = com.darock.DarockBili.MeowWidget; + PRODUCT_BUNDLE_IDENTIFIER = com.darock.alt785.DarockBili.MeowWidget; PRODUCT_NAME = "$(TARGET_NAME)"; SDKROOT = iphoneos; SKIP_INSTALL = YES; diff --git a/DarockBili.xcodeproj/xcshareddata/xcschemes/Alternative Destribution.xcscheme b/DarockBili.xcodeproj/xcshareddata/xcschemes/Alternative Destribution.xcscheme index 8245c0519..8e551bb00 100644 --- a/DarockBili.xcodeproj/xcshareddata/xcschemes/Alternative Destribution.xcscheme +++ b/DarockBili.xcodeproj/xcshareddata/xcschemes/Alternative Destribution.xcscheme @@ -1,7 +1,7 @@ + version = "1.7"> + allowLocationSimulation = "YES" + notificationPayloadFile = "Examples/SDWebImage Watch Demo Extension/PushNotificationPayload.apns"> diff --git a/MeowBili/Backend/BiliAPI.swift b/MeowBili/Backend/BiliAPI.swift new file mode 100644 index 000000000..b6c00f72a --- /dev/null +++ b/MeowBili/Backend/BiliAPI.swift @@ -0,0 +1,25 @@ +// +// +// BiliAPI.swift +// DarockBili +// +// Created by memz233 on 10/19/24. +// +//===----------------------------------------------------------------------===// +// +// This source file is part of the MeowBili open source project +// +// Copyright (c) 2024 Darock Studio and the MeowBili project authors +// Licensed under GNU General Public License v3 +// +// See https://darock.top/LICENSE.txt for license information +// +//===----------------------------------------------------------------------===// + +import DarockKit + +public class BiliAPI { + static let shared = BiliAPI() + + +} diff --git a/MeowBili/Backend/ResponseModels.swift b/MeowBili/Backend/ResponseModels.swift new file mode 100644 index 000000000..e69de29bb diff --git a/MeowBili/BiliAPI.swift b/MeowBili/BiliAPI.swift new file mode 100644 index 000000000..e69de29bb