Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RTDB with App Check #1297

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>com.apple.developer.devicecheck.appattest-environment</key>
<string>production</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,20 @@
objects = {

/* Begin PBXBuildFile section */
B9029EF126A10B1500C92F12 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = B9029EF026A10B1500C92F12 /* GoogleService-Info.plist */; };
9A0FAF2F26E7CFD10092BADD /* FirebaseAppCheck in Frameworks */ = {isa = PBXBuildFile; productRef = 9A0FAF2E26E7CFD10092BADD /* FirebaseAppCheck */; };
9A0FAF3126E7D1310092BADD /* FirebaseAppCheck in Frameworks */ = {isa = PBXBuildFile; productRef = 9A0FAF3026E7D1310092BADD /* FirebaseAppCheck */; };
9A0FAF3326E7D1380092BADD /* FirebaseAppCheck in Frameworks */ = {isa = PBXBuildFile; productRef = 9A0FAF3226E7D1380092BADD /* FirebaseAppCheck */; };
9A0FAF3626E7E3A00092BADD /* SimpleAppCheckProviderFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A0FAF3526E7E3A00092BADD /* SimpleAppCheckProviderFactory.swift */; };
9A0FAF3726E7E3A00092BADD /* SimpleAppCheckProviderFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A0FAF3526E7E3A00092BADD /* SimpleAppCheckProviderFactory.swift */; };
9A0FAF3826E7E3A00092BADD /* SimpleAppCheckProviderFactory.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A0FAF3526E7E3A00092BADD /* SimpleAppCheckProviderFactory.swift */; };
9A0FAF3E26EA90340092BADD /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 9A0FAF3D26EA90340092BADD /* GoogleService-Info.plist */; };
9A0FAF3F26EA90340092BADD /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 9A0FAF3D26EA90340092BADD /* GoogleService-Info.plist */; };
9A0FAF4026EA90340092BADD /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = 9A0FAF3D26EA90340092BADD /* GoogleService-Info.plist */; };
9A0FAF4426EAB3AB0092BADD /* MyCustomAppCheckProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A0FAF4326EAB3AB0092BADD /* MyCustomAppCheckProvider.swift */; };
9A0FAF4526EAB3AB0092BADD /* MyCustomAppCheckProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A0FAF4326EAB3AB0092BADD /* MyCustomAppCheckProvider.swift */; };
9A0FAF4626EAB3AB0092BADD /* MyCustomAppCheckProvider.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9A0FAF4326EAB3AB0092BADD /* MyCustomAppCheckProvider.swift */; };
9A0FAF4A26EAB5E40092BADD /* FirebaseRemoteConfig in Frameworks */ = {isa = PBXBuildFile; productRef = 9A0FAF4926EAB5E40092BADD /* FirebaseRemoteConfig */; };
9A0FAF4C26EB95E20092BADD /* FirebaseAnalytics in Frameworks */ = {isa = PBXBuildFile; productRef = 9A0FAF4B26EB95E20092BADD /* FirebaseAnalytics */; };
C70B63FF2696B29400851A91 /* NewPostsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C70B63FE2696B29400851A91 /* NewPostsView.swift */; };
C70B64002696B29400851A91 /* NewPostsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = C70B63FE2696B29400851A91 /* NewPostsView.swift */; };
C730A31F26B0998A00A29E81 /* PostsType.swift in Sources */ = {isa = PBXBuildFile; fileRef = C730A31E26B0998A00A29E81 /* PostsType.swift */; };
Expand All @@ -23,9 +36,7 @@
C796F29A26CCDCF50076C5F5 /* FirebaseDatabase in Frameworks */ = {isa = PBXBuildFile; productRef = C796F29926CCDCF50076C5F5 /* FirebaseDatabase */; };
C796F29C26CCE3DA0076C5F5 /* ScreenDimensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = C796F29B26CCE3DA0076C5F5 /* ScreenDimensions.swift */; };
C796F29D26CCE3DA0076C5F5 /* ScreenDimensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = C796F29B26CCE3DA0076C5F5 /* ScreenDimensions.swift */; };
C796F29E26CCE9DE0076C5F5 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = B9029EF026A10B1500C92F12 /* GoogleService-Info.plist */; };
C796F2AD26D2281A0076C5F5 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = C796F2AC26D2281A0076C5F5 /* Preview Assets.xcassets */; };
C796F2B226D228380076C5F5 /* GoogleService-Info.plist in Resources */ = {isa = PBXBuildFile; fileRef = B9029EF026A10B1500C92F12 /* GoogleService-Info.plist */; };
C796F2B326D2283B0076C5F5 /* Comment.swift in Sources */ = {isa = PBXBuildFile; fileRef = C7C6B5B2268DAC1800546A57 /* Comment.swift */; };
C796F2B426D2283E0076C5F5 /* UserViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = C7F60CF5268EBEDE002F68AB /* UserViewModel.swift */; };
C796F2B526D228410076C5F5 /* PostViewModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = C79D1AC226A4114600B6A169 /* PostViewModel.swift */; };
Expand Down Expand Up @@ -96,7 +107,10 @@
/* End PBXContainerItemProxy section */

/* Begin PBXFileReference section */
B9029EF026A10B1500C92F12 /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
9A0FAF3526E7E3A00092BADD /* SimpleAppCheckProviderFactory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SimpleAppCheckProviderFactory.swift; sourceTree = "<group>"; };
9A0FAF3D26EA90340092BADD /* GoogleService-Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = "GoogleService-Info.plist"; sourceTree = "<group>"; };
9A0FAF4126EA914D0092BADD /* DatabaseExample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = DatabaseExample.entitlements; sourceTree = "<group>"; };
9A0FAF4326EAB3AB0092BADD /* MyCustomAppCheckProvider.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MyCustomAppCheckProvider.swift; sourceTree = "<group>"; };
C70B63FE2696B29400851A91 /* NewPostsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = NewPostsView.swift; sourceTree = "<group>"; };
C730A31E26B0998A00A29E81 /* PostsType.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostsType.swift; sourceTree = "<group>"; };
C7690D8826DE0BD900F30AA6 /* UITests_iOS.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = UITests_iOS.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
Expand Down Expand Up @@ -154,6 +168,7 @@
buildActionMask = 2147483647;
files = (
C796F2C526D228F30076C5F5 /* FirebaseDatabase in Frameworks */,
9A0FAF3326E7D1380092BADD /* FirebaseAppCheck in Frameworks */,
C796F2C326D228F30076C5F5 /* FirebaseAuth in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -162,9 +177,12 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
9A0FAF2F26E7CFD10092BADD /* FirebaseAppCheck in Frameworks */,
C7C6B59B268C8D7800546A57 /* FirebaseDatabase in Frameworks */,
9A0FAF4C26EB95E20092BADD /* FirebaseAnalytics in Frameworks */,
C7C6B597268C8D7800546A57 /* FirebaseDatabaseSwift-Beta in Frameworks */,
C7C6B599268C8D7800546A57 /* FirebaseAuth in Frameworks */,
9A0FAF4A26EAB5E40092BADD /* FirebaseRemoteConfig in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -173,13 +191,23 @@
buildActionMask = 2147483647;
files = (
C796F29A26CCDCF50076C5F5 /* FirebaseDatabase in Frameworks */,
9A0FAF3126E7D1310092BADD /* FirebaseAppCheck in Frameworks */,
C796F29826CCDCEF0076C5F5 /* FirebaseAuth in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
9A0FAF3426E7E37E0092BADD /* AppCheck */ = {
isa = PBXGroup;
children = (
9A0FAF3526E7E3A00092BADD /* SimpleAppCheckProviderFactory.swift */,
9A0FAF4326EAB3AB0092BADD /* MyCustomAppCheckProvider.swift */,
);
path = AppCheck;
sourceTree = "<group>";
};
C796F29626CCDCEF0076C5F5 /* Frameworks */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -207,7 +235,8 @@
C7C6B56E268C8C9A00546A57 = {
isa = PBXGroup;
children = (
B9029EF026A10B1500C92F12 /* GoogleService-Info.plist */,
9A0FAF4126EA914D0092BADD /* DatabaseExample.entitlements */,
9A0FAF3D26EA90340092BADD /* GoogleService-Info.plist */,
C7C6B573268C8C9A00546A57 /* Shared */,
C7C6B57D268C8C9C00546A57 /* iOS */,
C7C6B584268C8C9C00546A57 /* macOS */,
Expand All @@ -220,6 +249,7 @@
C7C6B573268C8C9A00546A57 /* Shared */ = {
isa = PBXGroup;
children = (
9A0FAF3426E7E37E0092BADD /* AppCheck */,
C7C6B5A5268CED2600546A57 /* Models */,
C7C6B5A4268CED2000546A57 /* Views */,
C7C6B574268C8C9A00546A57 /* DatabaseExampleApp.swift */,
Expand Down Expand Up @@ -360,6 +390,7 @@
packageProductDependencies = (
C796F2C226D228F30076C5F5 /* FirebaseAuth */,
C796F2C426D228F30076C5F5 /* FirebaseDatabase */,
9A0FAF3226E7D1380092BADD /* FirebaseAppCheck */,
);
productName = tvOSDatabaseExample;
productReference = C796F2A326D228180076C5F5 /* DatabaseExample (tvOS).app */;
Expand All @@ -382,6 +413,9 @@
C7C6B596268C8D7800546A57 /* FirebaseDatabaseSwift-Beta */,
C7C6B598268C8D7800546A57 /* FirebaseAuth */,
C7C6B59A268C8D7800546A57 /* FirebaseDatabase */,
9A0FAF2E26E7CFD10092BADD /* FirebaseAppCheck */,
9A0FAF4926EAB5E40092BADD /* FirebaseRemoteConfig */,
9A0FAF4B26EB95E20092BADD /* FirebaseAnalytics */,
);
productName = "DatabaseExample (iOS)";
productReference = C7C6B57B268C8C9C00546A57 /* DatabaseExample.app */;
Expand All @@ -403,6 +437,7 @@
packageProductDependencies = (
C796F29726CCDCEF0076C5F5 /* FirebaseAuth */,
C796F29926CCDCF50076C5F5 /* FirebaseDatabase */,
9A0FAF3026E7D1310092BADD /* FirebaseAppCheck */,
);
productName = "DatabaseExample (macOS)";
productReference = C7C6B583268C8C9C00546A57 /* DatabaseExample.app */;
Expand Down Expand Up @@ -497,25 +532,25 @@
files = (
C796F2AD26D2281A0076C5F5 /* Preview Assets.xcassets in Resources */,
C796F2C626D390010076C5F5 /* Assets.xcassets in Resources */,
C796F2B226D228380076C5F5 /* GoogleService-Info.plist in Resources */,
9A0FAF4026EA90340092BADD /* GoogleService-Info.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
C7C6B579268C8C9C00546A57 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9A0FAF3E26EA90340092BADD /* GoogleService-Info.plist in Resources */,
C7C6B58B268C8C9C00546A57 /* Assets.xcassets in Resources */,
B9029EF126A10B1500C92F12 /* GoogleService-Info.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
C7C6B581268C8C9C00546A57 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9A0FAF3F26EA90340092BADD /* GoogleService-Info.plist in Resources */,
C7C6B58C268C8C9C00546A57 /* Assets.xcassets in Resources */,
C796F29E26CCE9DE0076C5F5 /* GoogleService-Info.plist in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down Expand Up @@ -560,8 +595,10 @@
C796F2B926D228490076C5F5 /* NewPostsView.swift in Sources */,
C796F2BF26D228490076C5F5 /* Database+Extensions.swift in Sources */,
C796F2B326D2283B0076C5F5 /* Comment.swift in Sources */,
9A0FAF3826E7E3A00092BADD /* SimpleAppCheckProviderFactory.swift in Sources */,
C796F2C026D228490076C5F5 /* DatabaseExampleApp.swift in Sources */,
C796F2B426D2283E0076C5F5 /* UserViewModel.swift in Sources */,
9A0FAF4626EAB3AB0092BADD /* MyCustomAppCheckProvider.swift in Sources */,
C796F2BD26D228490076C5F5 /* LoginView.swift in Sources */,
C796F2BB26D228490076C5F5 /* SignUpView.swift in Sources */,
C796F2BA26D228490076C5F5 /* PostCell.swift in Sources */,
Expand All @@ -582,8 +619,10 @@
C79D1AED26A8D9A300B6A169 /* PostsView.swift in Sources */,
C77ABFAE26B8A7FF00BDE919 /* Database+Extensions.swift in Sources */,
C7F60CFC268EE316002F68AB /* ContentView.swift in Sources */,
9A0FAF3626E7E3A00092BADD /* SimpleAppCheckProviderFactory.swift in Sources */,
C799B60E269E1CEF00A43C40 /* PostDetailView.swift in Sources */,
C70B63FF2696B29400851A91 /* NewPostsView.swift in Sources */,
9A0FAF4426EAB3AB0092BADD /* MyCustomAppCheckProvider.swift in Sources */,
C7F60CF2268E352F002F68AB /* SignUpView.swift in Sources */,
C7C6B587268C8C9C00546A57 /* DatabaseExampleApp.swift in Sources */,
C730A31F26B0998A00A29E81 /* PostsType.swift in Sources */,
Expand All @@ -604,8 +643,10 @@
C79D1AEE26A8D9A300B6A169 /* PostsView.swift in Sources */,
C77ABFAF26B8A7FF00BDE919 /* Database+Extensions.swift in Sources */,
C7F60CFD268EE316002F68AB /* ContentView.swift in Sources */,
9A0FAF3726E7E3A00092BADD /* SimpleAppCheckProviderFactory.swift in Sources */,
C799B60F269E1CEF00A43C40 /* PostDetailView.swift in Sources */,
C70B64002696B29400851A91 /* NewPostsView.swift in Sources */,
9A0FAF4526EAB3AB0092BADD /* MyCustomAppCheckProvider.swift in Sources */,
C7F60CF3268E352F002F68AB /* SignUpView.swift in Sources */,
C7C6B588268C8C9C00546A57 /* DatabaseExampleApp.swift in Sources */,
C730A32026B0998A00A29E81 /* PostsType.swift in Sources */,
Expand Down Expand Up @@ -955,16 +996,20 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = DatabaseExample.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 374XEWX2QT;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = iOS/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.google.firebase.quickstart.DatabaseExample;
PRODUCT_BUNDLE_IDENTIFIER = com.google.mmaksym.DeviceTokenGenerator;
PRODUCT_NAME = DatabaseExample;
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = iphoneos;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -976,16 +1021,20 @@
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = DatabaseExample.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
DEVELOPMENT_TEAM = 374XEWX2QT;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = iOS/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 14.0;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.google.firebase.quickstart.DatabaseExample;
PRODUCT_BUNDLE_IDENTIFIER = com.google.mmaksym.DeviceTokenGenerator;
PRODUCT_NAME = DatabaseExample;
PROVISIONING_PROFILE_SPECIFIER = "";
SDKROOT = iphoneos;
SWIFT_VERSION = 5.0;
TARGETED_DEVICE_FAMILY = "1,2";
Expand All @@ -999,16 +1048,18 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = macOS/macOS.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 374XEWX2QT;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = macOS/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
PRODUCT_BUNDLE_IDENTIFIER = com.google.firebase.quickstart.DatabaseExample;
PRODUCT_BUNDLE_IDENTIFIER = com.google.mmaksym.DeviceTokenGenerator;
PRODUCT_NAME = DatabaseExample;
SDKROOT = macosx;
SWIFT_VERSION = 5.0;
Expand All @@ -1021,16 +1072,18 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_ENTITLEMENTS = macOS/macOS.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 374XEWX2QT;
ENABLE_PREVIEWS = YES;
INFOPLIST_FILE = macOS/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
MACOSX_DEPLOYMENT_TARGET = 11.0;
PRODUCT_BUNDLE_IDENTIFIER = com.google.firebase.quickstart.DatabaseExample;
PRODUCT_BUNDLE_IDENTIFIER = com.google.mmaksym.DeviceTokenGenerator;
PRODUCT_NAME = DatabaseExample;
SDKROOT = macosx;
SWIFT_VERSION = 5.0;
Expand Down Expand Up @@ -1117,6 +1170,31 @@
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
9A0FAF2E26E7CFD10092BADD /* FirebaseAppCheck */ = {
isa = XCSwiftPackageProductDependency;
package = C7C6B595268C8D7800546A57 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseAppCheck;
};
9A0FAF3026E7D1310092BADD /* FirebaseAppCheck */ = {
isa = XCSwiftPackageProductDependency;
package = C7C6B595268C8D7800546A57 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseAppCheck;
};
9A0FAF3226E7D1380092BADD /* FirebaseAppCheck */ = {
isa = XCSwiftPackageProductDependency;
package = C7C6B595268C8D7800546A57 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseAppCheck;
};
9A0FAF4926EAB5E40092BADD /* FirebaseRemoteConfig */ = {
isa = XCSwiftPackageProductDependency;
package = C7C6B595268C8D7800546A57 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseRemoteConfig;
};
9A0FAF4B26EB95E20092BADD /* FirebaseAnalytics */ = {
isa = XCSwiftPackageProductDependency;
package = C7C6B595268C8D7800546A57 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
productName = FirebaseAnalytics;
};
C796F29726CCDCEF0076C5F5 /* FirebaseAuth */ = {
isa = XCSwiftPackageProductDependency;
package = C7C6B595268C8D7800546A57 /* XCRemoteSwiftPackageReference "firebase-ios-sdk" */;
Expand Down

This file was deleted.

Loading