Skip to content

Commit

Permalink
integrate firebase services
Browse files Browse the repository at this point in the history
  • Loading branch information
lixin9311 committed Jul 12, 2022
1 parent 41514fc commit 9e92a33
Show file tree
Hide file tree
Showing 8 changed files with 271 additions and 24 deletions.
2 changes: 1 addition & 1 deletion Cartfile.resolved
Original file line number Diff line number Diff line change
@@ -1 +1 @@
github "PlayCover/PlayTools" "v1.1.1"
github "PlayCover/PlayTools" "v1.1.2"
115 changes: 109 additions & 6 deletions PlayCover.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,18 @@
92EE06DC274EB19A002C907B /* StoreAppView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92EE06DB274EB19A002C907B /* StoreAppView.swift */; };
92EE06DE274EC09F002C907B /* Entitlements.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92EE06DD274EC09F002C907B /* Entitlements.swift */; };
92F8500A27675124005CE6BE /* AppIntegrity.swift in Sources */ = {isa = PBXBuildFile; fileRef = 92F8500927675124005CE6BE /* AppIntegrity.swift */; };
AA151108287D153200EC71A9 /* FirebaseInstallations in Frameworks */ = {isa = PBXBuildFile; productRef = AA151107287D153200EC71A9 /* FirebaseInstallations */; };
AA15110A287D153200EC71A9 /* FirebasePerformance in Frameworks */ = {isa = PBXBuildFile; productRef = AA151109287D153200EC71A9 /* FirebasePerformance */; };
AA151111287D194300EC71A9 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = AA151110287D194300EC71A9 /* GoogleService-Info.plist */; };
AA151119287D2AD300EC71A9 /* FirebaseAnalyticsSwift in Frameworks */ = {isa = PBXBuildFile; productRef = AA151118287D2AD300EC71A9 /* FirebaseAnalyticsSwift */; };
AA15111B287D2AD300EC71A9 /* (null) in Frameworks */ = {isa = PBXBuildFile; };
AA15111D287D2AD300EC71A9 /* (null) in Frameworks */ = {isa = PBXBuildFile; };
AA151121287D2AD300EC71A9 /* (null) in Frameworks */ = {isa = PBXBuildFile; };
AA151123287D2AD300EC71A9 /* (null) in Frameworks */ = {isa = PBXBuildFile; };
AA151124287D2BEB00EC71A9 /* FirebaseAnalyticsWithoutAdIdSupport in Frameworks */ = {isa = PBXBuildFile; productRef = AA151103287D153200EC71A9 /* FirebaseAnalyticsWithoutAdIdSupport */; };
AA151125287D2BEB00EC71A9 /* FirebaseCrashlytics in Frameworks */ = {isa = PBXBuildFile; productRef = AA151105287D153200EC71A9 /* FirebaseCrashlytics */; };
AA151126287D2BEB00EC71A9 /* FirebaseRemoteConfig in Frameworks */ = {isa = PBXBuildFile; productRef = AA15110B287D153200EC71A9 /* FirebaseRemoteConfig */; };
AA151127287D2BEB00EC71A9 /* FirebaseRemoteConfigSwift in Frameworks */ = {isa = PBXBuildFile; productRef = AA15110D287D153200EC71A9 /* FirebaseRemoteConfigSwift */; };
AA719648287A0E2500623C15 /* com.YostarJP.BlueArchive.yaml in Resources */ = {isa = PBXBuildFile; fileRef = AA719646287A0E2500623C15 /* com.YostarJP.BlueArchive.yaml */; };
AA719649287A0E2500623C15 /* default.yaml in Resources */ = {isa = PBXBuildFile; fileRef = AA719647287A0E2500623C15 /* default.yaml */; };
AA71964B287A0EA800623C15 /* PlayRules.swift in Sources */ = {isa = PBXBuildFile; fileRef = AA71964A287A0EA800623C15 /* PlayRules.swift */; };
Expand Down Expand Up @@ -139,6 +151,7 @@
92EE06DB274EB19A002C907B /* StoreAppView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StoreAppView.swift; sourceTree = "<group>"; };
92EE06DD274EC09F002C907B /* Entitlements.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Entitlements.swift; sourceTree = "<group>"; };
92F8500927675124005CE6BE /* AppIntegrity.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppIntegrity.swift; sourceTree = "<group>"; };
AA151110287D194300EC71A9 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
AA18F6C6287BA6E90092E378 /* it */ = {isa = PBXFileReference; lastKnownFileType = text.plist.strings; name = it; path = it.lproj/Localizable.strings; sourceTree = "<group>"; };
AA719646287A0E2500623C15 /* com.YostarJP.BlueArchive.yaml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.yaml; path = com.YostarJP.BlueArchive.yaml; sourceTree = "<group>"; };
AA719647287A0E2500623C15 /* default.yaml */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.yaml; path = default.yaml; sourceTree = "<group>"; };
Expand All @@ -157,8 +170,19 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
AA15111B287D2AD300EC71A9 /* (null) in Frameworks */,
AA151119287D2AD300EC71A9 /* FirebaseAnalyticsSwift in Frameworks */,
AA15110A287D153200EC71A9 /* FirebasePerformance in Frameworks */,
AA151127287D2BEB00EC71A9 /* FirebaseRemoteConfigSwift in Frameworks */,
AA15111D287D2AD300EC71A9 /* (null) in Frameworks */,
AA151124287D2BEB00EC71A9 /* FirebaseAnalyticsWithoutAdIdSupport in Frameworks */,
92324086283FBA34006C46DE /* SimplyCoreAudio in Frameworks */,
AA818CB5287ABEC3000BEE9D /* Yams in Frameworks */,
AA151121287D2AD300EC71A9 /* (null) in Frameworks */,
AA151123287D2AD300EC71A9 /* (null) in Frameworks */,
AA151125287D2BEB00EC71A9 /* FirebaseCrashlytics in Frameworks */,
AA151126287D2BEB00EC71A9 /* FirebaseRemoteConfig in Frameworks */,
AA151108287D153200EC71A9 /* FirebaseInstallations in Frameworks */,
AA818CB2287ABE9B000BEE9D /* AlertToast in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -305,6 +329,7 @@
8783D00026B8C52E00171041 /* Preview Content */,
532644E026E79E56002EA34D /* Localizable.strings */,
928C01D7272DF1A2007EB2DF /* PlayCover-Bridging-Header.h */,
AA151110287D194300EC71A9 /* GoogleService-Info.plist */,
AA818CBD287AC237000BEE9D /* input.xcfilelist */,
AA818CBF287AC274000BEE9D /* output.xcfilelist */,
);
Expand Down Expand Up @@ -378,6 +403,7 @@
8783CFF426B8C52D00171041 /* Frameworks */,
8783CFF526B8C52D00171041 /* Resources */,
AA818CBC287AC1C6000BEE9D /* Copy Carthage frameworks */,
AA15110F287D15A400EC71A9 /* Upload dSYM to Crashlytics */,
);
buildRules = (
);
Expand All @@ -388,6 +414,13 @@
92324085283FBA34006C46DE /* SimplyCoreAudio */,
AA818CB1287ABE9B000BEE9D /* AlertToast */,
AA818CB4287ABEC3000BEE9D /* Yams */,
AA151103287D153200EC71A9 /* FirebaseAnalyticsWithoutAdIdSupport */,
AA151105287D153200EC71A9 /* FirebaseCrashlytics */,
AA151107287D153200EC71A9 /* FirebaseInstallations */,
AA151109287D153200EC71A9 /* FirebasePerformance */,
AA15110B287D153200EC71A9 /* FirebaseRemoteConfig */,
AA15110D287D153200EC71A9 /* FirebaseRemoteConfigSwift */,
AA151118287D2AD300EC71A9 /* FirebaseAnalyticsSwift */,
);
productName = PlayCover;
productReference = 8783CFF726B8C52D00171041 /* PlayCover.app */;
Expand Down Expand Up @@ -431,6 +464,7 @@
92324084283FBA34006C46DE /* XCRemoteSwiftPackageReference "SimplyCoreAudio" */,
AA818CB0287ABE9B000BEE9D /* XCRemoteSwiftPackageReference "AlertToast" */,
AA818CB3287ABEC3000BEE9D /* XCRemoteSwiftPackageReference "Yams" */,
AA151102287D153200EC71A9 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */,
);
productRefGroup = 8783CFF826B8C52D00171041 /* Products */;
projectDirPath = "";
Expand All @@ -452,27 +486,49 @@
AA719648287A0E2500623C15 /* com.YostarJP.BlueArchive.yaml in Resources */,
8783CFFF26B8C52E00171041 /* Assets.xcassets in Resources */,
AA71964D287A35F400623C15 /* com.nexon.bluearchive.yaml in Resources */,
AA151111287D194300EC71A9 /* GoogleService-Info.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXShellScriptBuildPhase section */
AA15110F287D15A400EC71A9 /* Upload dSYM to Crashlytics */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
);
inputPaths = (
"${DWARF_DSYM_FOLDER_PATH}/${DWARF_DSYM_FILE_NAME}/Contents/Resources/DWARF/${TARGET_NAME}",
"$(SRCROOT)/$(BUILT_PRODUCTS_DIR)/$(INFOPLIST_PATH)",
"$(SRCROOT)/Carthage/Build/PlayTools.xcframework/ios-arm64/dSYMs/PlayTools.framework.dSYM/Contents/Resources/DWARF/PlayTools",
);
name = "Upload dSYM to Crashlytics";
outputFileListPaths = (
);
outputPaths = (
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "# Type a script or drag a script file from your workspace to insert its path.\n${BUILD_DIR%/Build/*}/SourcePackages/checkouts/firebase-ios-sdk/Crashlytics/run\n";
};
AA818CBC287AC1C6000BEE9D /* Copy Carthage frameworks */ = {
isa = PBXShellScriptBuildPhase;
buildActionMask = 2147483647;
files = (
);
inputFileListPaths = (
"$(SRCROOT)/$(SWIFT_MODULE_NAME)/input.xcfilelist",
);
inputPaths = (
"$(SRCROOT)/Carthage/Build/PlayTools.xcframework/ios-arm64/PlayTools.framework",
);
name = "Copy Carthage frameworks";
outputFileListPaths = (
"$(SRCROOT)/$(SWIFT_MODULE_NAME)/output.xcfilelist",
);
outputPaths = (
"$(BUILT_PRODUCTS_DIR)/$(FRAMEWORKS_FOLDER_PATH)/PlayTools.framework",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/zsh;
Expand All @@ -494,7 +550,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "echo \"Bootstraping carthage\"\n\nif [ -x /usr/local/bin/carthage ]; then\n carthage=/usr/local/bin/carthage\nelif [ -x /opt/homebrew/bin/carthage ]; then\n carthage=/opt/homebrew/bin/carthage\nelse\n echo \"Cannot find carthage\"\n exit 1\nfi\n\n$carthage bootstrap --use-xcframeworks\n\nif [ -f cartfile.resolved ]; then\n cartfile_changed=$(git diff --stat $(git_previous_successful_commit) $(git_commit) | grep '\\|' | awk '{print $$1}' | grep cartfile.resolved)\n if test \"$(cartfile_changed)\"; then\n echo \"## step: updating carthage\"\n $carthage bootstrap --use-xcframeworks\n else\n echo \"## carthage is up to date\"\n fi\nelse\n echo \"## step: installing carthage dependencies\"\n $carthage bootstrap --use-xcframeworks\nfi\n";
shellScript = "echo \"Bootstraping carthage\"\n\nif [ -x /usr/local/bin/carthage ]; then\n carthage=/usr/local/bin/carthage\nelif [ -x /opt/homebrew/bin/carthage ]; then\n carthage=/opt/homebrew/bin/carthage\nelse\n echo \"Cannot find carthage\"\n exit 1\nfi\n\n$carthage bootstrap --use-xcframeworks\n";
};
/* End PBXShellScriptBuildPhase section */

Expand Down Expand Up @@ -614,7 +670,7 @@
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
Expand Down Expand Up @@ -708,8 +764,9 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 3;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_ASSET_PATHS = "PlayCover/Preview\\ Content";
DEVELOPMENT_TEAM = 792V9HMJW3;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -726,6 +783,7 @@
);
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 1.0.6;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = io.playcover.PlayCover;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "./PlayCover/PlayCover-Bridging-Header.h";
Expand All @@ -744,8 +802,9 @@
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 3;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_ASSET_PATHS = "PlayCover/Preview\\ Content";
DEVELOPMENT_TEAM = 792V9HMJW3;
ENABLE_HARDENED_RUNTIME = YES;
Expand All @@ -763,6 +822,7 @@
MACOSX_DEPLOYMENT_TARGET = 12.0;
MARKETING_VERSION = 1.0.6;
ONLY_ACTIVE_ARCH = YES;
OTHER_LDFLAGS = "-ObjC";
PRODUCT_BUNDLE_IDENTIFIER = io.playcover.PlayCover;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_OBJC_BRIDGING_HEADER = "./PlayCover/PlayCover-Bridging-Header.h";
Expand Down Expand Up @@ -803,6 +863,14 @@
kind = branch;
};
};
AA151102287D153200EC71A9 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/firebase/firebase-ios-sdk";
requirement = {
kind = upToNextMajorVersion;
minimumVersion = 9.0.0;
};
};
AA818CB0287ABE9B000BEE9D /* XCRemoteSwiftPackageReference "AlertToast" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/elai950/AlertToast.git";
Expand All @@ -828,6 +896,41 @@
package = 92324084283FBA34006C46DE /* XCRemoteSwiftPackageReference "SimplyCoreAudio" */;
productName = SimplyCoreAudio;
};
AA151103287D153200EC71A9 /* FirebaseAnalyticsWithoutAdIdSupport */ = {
isa = XCSwiftPackageProductDependency;
package = AA151102287D153200EC71A9 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseAnalyticsWithoutAdIdSupport;
};
AA151105287D153200EC71A9 /* FirebaseCrashlytics */ = {
isa = XCSwiftPackageProductDependency;
package = AA151102287D153200EC71A9 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseCrashlytics;
};
AA151107287D153200EC71A9 /* FirebaseInstallations */ = {
isa = XCSwiftPackageProductDependency;
package = AA151102287D153200EC71A9 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseInstallations;
};
AA151109287D153200EC71A9 /* FirebasePerformance */ = {
isa = XCSwiftPackageProductDependency;
package = AA151102287D153200EC71A9 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebasePerformance;
};
AA15110B287D153200EC71A9 /* FirebaseRemoteConfig */ = {
isa = XCSwiftPackageProductDependency;
package = AA151102287D153200EC71A9 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseRemoteConfig;
};
AA15110D287D153200EC71A9 /* FirebaseRemoteConfigSwift */ = {
isa = XCSwiftPackageProductDependency;
package = AA151102287D153200EC71A9 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseRemoteConfigSwift;
};
AA151118287D2AD300EC71A9 /* FirebaseAnalyticsSwift */ = {
isa = XCSwiftPackageProductDependency;
package = AA151102287D153200EC71A9 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseAnalyticsSwift;
};
AA818CB1287ABE9B000BEE9D /* AlertToast */ = {
isa = XCSwiftPackageProductDependency;
package = AA818CB0287ABE9B000BEE9D /* XCRemoteSwiftPackageReference "AlertToast" */;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
{
"pins" : [
{
"identity" : "abseil-cpp-swiftpm",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/abseil-cpp-SwiftPM.git",
"state" : {
"revision" : "d302de612e3d57c6f4afaf087da18fba8eac72a7",
"version" : "0.20220203.1"
}
},
{
"identity" : "alerttoast",
"kind" : "remoteSourceControl",
Expand All @@ -9,6 +18,96 @@
"version" : "1.3.7"
}
},
{
"identity" : "boringssl-swiftpm",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/boringssl-SwiftPM.git",
"state" : {
"revision" : "79db6516894a932d0ddaff3b05b9da1e4f6c4069",
"version" : "0.9.0"
}
},
{
"identity" : "firebase-ios-sdk",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/firebase-ios-sdk",
"state" : {
"revision" : "e8828e8efc813817b3c2cbfde8e965f7a7a26641",
"version" : "9.2.0"
}
},
{
"identity" : "googleappmeasurement",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleAppMeasurement.git",
"state" : {
"revision" : "192cce3e0486aecfdb61102a9c694c78dc89dc48",
"version" : "9.1.0"
}
},
{
"identity" : "googledatatransport",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleDataTransport.git",
"state" : {
"revision" : "b905c49326b72211531ed9d7baa02d724828a8dc",
"version" : "9.1.4"
}
},
{
"identity" : "googleutilities",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/GoogleUtilities.git",
"state" : {
"revision" : "f4abe56ce62a779e64b525eb133c8fc2a84bbc1f",
"version" : "7.7.1"
}
},
{
"identity" : "grpc-ios",
"kind" : "remoteSourceControl",
"location" : "https://github.com/grpc/grpc-ios.git",
"state" : {
"revision" : "2af4f6e9c2b18beae228f50b1198c641be859d2b",
"version" : "1.44.2-grpc"
}
},
{
"identity" : "gtm-session-fetcher",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/gtm-session-fetcher.git",
"state" : {
"revision" : "19605024d59eaefdb1f6a2cb11ebe75df4421126",
"version" : "2.0.0"
}
},
{
"identity" : "leveldb",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/leveldb.git",
"state" : {
"revision" : "0706abcc6b0bd9cedfbb015ba840e4a780b5159b",
"version" : "1.22.2"
}
},
{
"identity" : "nanopb",
"kind" : "remoteSourceControl",
"location" : "https://github.com/firebase/nanopb.git",
"state" : {
"revision" : "819d0a2173aff699fb8c364b6fb906f7cdb1a692",
"version" : "2.30909.0"
}
},
{
"identity" : "promises",
"kind" : "remoteSourceControl",
"location" : "https://github.com/google/promises.git",
"state" : {
"revision" : "3e4e743631e86c8c70dbc6efdc7beaa6e90fd3bb",
"version" : "2.1.1"
}
},
{
"identity" : "simplycoreaudio",
"kind" : "remoteSourceControl",
Expand All @@ -27,6 +126,15 @@
"version" : "0.0.3"
}
},
{
"identity" : "swift-protobuf",
"kind" : "remoteSourceControl",
"location" : "https://github.com/apple/swift-protobuf.git",
"state" : {
"revision" : "e1499bc69b9040b29184f7f2996f7bab467c1639",
"version" : "1.19.0"
}
},
{
"identity" : "yams",
"kind" : "remoteSourceControl",
Expand Down
Loading

0 comments on commit 9e92a33

Please sign in to comment.