Prechádzať zdrojové kódy

Restore Firebase pod to closed source location (#4112)

Paul Beusterien 6 rokov pred
rodič
commit
d8e3a11bb1

+ 0 - 0
Firebase/Firebase/CHANGELOG.md → CoreOnly/CHANGELOG.md


+ 0 - 0
Firebase/Firebase/NOTICES → CoreOnly/NOTICES


+ 0 - 0
Firebase/Firebase/README.md → CoreOnly/README.md


+ 0 - 0
Firebase/Firebase/Sources/Firebase.h → CoreOnly/Sources/Firebase.h


+ 0 - 0
Firebase/Firebase/Sources/module.modulemap → CoreOnly/Sources/module.modulemap


+ 2 - 6
Firebase/Firebase/Tests/FirebasePodTest/FirebasePodTest.xcodeproj/project.pbxproj → CoreOnly/Tests/FirebasePodTest/FirebasePodTest.xcodeproj/project.pbxproj

@@ -295,7 +295,7 @@
 				CODE_SIGN_STYLE = Automatic;
 				HEADER_SEARCH_PATHS = (
 					"$(inherited)",
-					../../../../Firebase/Firebase/Sources,
+					../../../CoreOnly/Sources,
 					"\"${PODS_CONFIGURATION_BUILD_DIR}/FirebaseCore/FirebaseCore.framework/Headers\"",
 					"\"${PODS_CONFIGURATION_BUILD_DIR}/FirebaseCoreDiagnostics/FirebaseCoreDiagnostics.framework/Headers\"",
 					"\"${PODS_CONFIGURATION_BUILD_DIR}/FirebaseInstanceID/FirebaseInstanceID.framework/Headers\"",
@@ -306,8 +306,6 @@
 					"\"${PODS_ROOT}/Headers/Public\"",
 					"\"${PODS_ROOT}/Headers/Public/Firebase\"",
 					"\"${PODS_ROOT}/Headers/Public/FirebaseCoreDiagnosticsInterop\"",
-					"$(inherited)",
-					"${PODS_ROOT}/Firebase/Firebase/Firebase/Sources",
 				);
 				INFOPLIST_FILE = FirebasePodTest/Info.plist;
 				LD_RUNPATH_SEARCH_PATHS = (
@@ -328,7 +326,7 @@
 				CODE_SIGN_STYLE = Automatic;
 				HEADER_SEARCH_PATHS = (
 					"$(inherited)",
-					../../../../Firebase/Firebase/Sources,
+					../../../CoreOnly/Sources,
 					"\"${PODS_CONFIGURATION_BUILD_DIR}/FirebaseCore/FirebaseCore.framework/Headers\"",
 					"\"${PODS_CONFIGURATION_BUILD_DIR}/FirebaseCoreDiagnostics/FirebaseCoreDiagnostics.framework/Headers\"",
 					"\"${PODS_CONFIGURATION_BUILD_DIR}/FirebaseInstanceID/FirebaseInstanceID.framework/Headers\"",
@@ -339,8 +337,6 @@
 					"\"${PODS_ROOT}/Headers/Public\"",
 					"\"${PODS_ROOT}/Headers/Public/Firebase\"",
 					"\"${PODS_ROOT}/Headers/Public/FirebaseCoreDiagnosticsInterop\"",
-					"$(inherited)",
-					"${PODS_ROOT}/Firebase/Firebase/Firebase/Sources",
 				);
 				INFOPLIST_FILE = FirebasePodTest/Info.plist;
 				LD_RUNPATH_SEARCH_PATHS = (

+ 0 - 0
Firebase/Firebase/Tests/FirebasePodTest/FirebasePodTest/AppDelegate.swift → CoreOnly/Tests/FirebasePodTest/FirebasePodTest/AppDelegate.swift


+ 0 - 0
Firebase/Firebase/Tests/FirebasePodTest/FirebasePodTest/Assets.xcassets/AppIcon.appiconset/Contents.json → CoreOnly/Tests/FirebasePodTest/FirebasePodTest/Assets.xcassets/AppIcon.appiconset/Contents.json


+ 0 - 0
Firebase/Firebase/Tests/FirebasePodTest/FirebasePodTest/Assets.xcassets/Contents.json → CoreOnly/Tests/FirebasePodTest/FirebasePodTest/Assets.xcassets/Contents.json


+ 0 - 0
Firebase/Firebase/Tests/FirebasePodTest/FirebasePodTest/Base.lproj/LaunchScreen.storyboard → CoreOnly/Tests/FirebasePodTest/FirebasePodTest/Base.lproj/LaunchScreen.storyboard


+ 0 - 0
Firebase/Firebase/Tests/FirebasePodTest/FirebasePodTest/Base.lproj/Main.storyboard → CoreOnly/Tests/FirebasePodTest/FirebasePodTest/Base.lproj/Main.storyboard


+ 0 - 0
Firebase/Firebase/Tests/FirebasePodTest/FirebasePodTest/Info.plist → CoreOnly/Tests/FirebasePodTest/FirebasePodTest/Info.plist


+ 0 - 0
Firebase/Firebase/Tests/FirebasePodTest/FirebasePodTest/SceneDelegate.swift → CoreOnly/Tests/FirebasePodTest/FirebasePodTest/SceneDelegate.swift


+ 0 - 0
Firebase/Firebase/Tests/FirebasePodTest/FirebasePodTest/ViewController.swift → CoreOnly/Tests/FirebasePodTest/FirebasePodTest/ViewController.swift


+ 29 - 0
CoreOnly/Tests/FirebasePodTest/Podfile

@@ -0,0 +1,29 @@
+# Uncomment the next line to define a global platform for your project
+# platform :ios, '9.0'
+
+target 'FirebasePodTest' do
+  # Comment the next line if you don't want to use dynamic frameworks
+  use_frameworks!
+
+  pod 'Firebase', :path => '../../../'
+  pod 'FirebaseABTesting', :path => '../../../'
+  pod 'FirebaseAnalyticsInterop', :path => '../../../'
+  pod 'FirebaseAuth', :path => '../../../'
+  pod 'FirebaseAuthInterop', :path => '../../../'
+  pod 'FirebaseCoreDiagnostics', :path => '../../../'
+  pod 'FirebaseCoreDiagnosticsInterop', :path => '../../../'
+  pod 'FirebaseDatabase', :path => '../../../'
+  pod 'FirebaseDynamicLinks', :path => '../../../'
+  pod 'FirebaseFirestore', :path => '../../../'
+  pod 'FirebaseFunctions', :path => '../../../'
+  pod 'FirebaseInAppMessaging', :path => '../../../'
+  pod 'FirebaseInAppMessagingDisplay', :path => '../../../'
+  pod 'FirebaseInstallations', :path => '../../../'
+  pod 'FirebaseInstanceID', :path => '../../../'
+  pod 'FirebaseMessaging', :path => '../../../'
+  pod 'FirebaseRemoteConfig', :path => '../../../'
+  pod 'FirebaseStorage', :path => '../../../'
+
+  pod 'FirebaseAnalytics' # Analytics is not open source
+  pod 'FirebasePerformance' # Performance is not open source
+end

+ 1 - 1
Dangerfile

@@ -72,7 +72,7 @@ has_license_changes = didModify(["LICENSE"])
 @has_core_changes = hasChangesIn([
   "Firebase/Core/",
   "Firebase/CoreDiagnostics/",
-  "Firebase/Firebase/"])
+  "CoreOnly/"])
 @has_database_changes = hasChangesIn("Firebase/Database/")
 @has_dynamiclinks_changes = hasChangesIn("Firebase/DynamicLinks/")
 @has_firestore_changes = hasChangesIn("Firestore/")

+ 6 - 7
Firebase.podspec

@@ -17,10 +17,9 @@ Simplify your iOS development, grow your user base, and monetize more effectivel
   }
 
   s.preserve_paths = [
-    "Firebase/Firebase/.cocoapods.yml",
-    "Firebase/Firebase/CHANGELOG.md",
-    "Firebase/Firebase/NOTICES",
-    "Firebase/Firebase/README.md"
+    "CoreOnly/CHANGELOG.md",
+    "CoreOnly/NOTICES",
+    "CoreOnly/README.md"
   ]
   s.social_media_url = 'https://twitter.com/Firebase'
   s.ios.deployment_target = '8.0'
@@ -38,10 +37,10 @@ Simplify your iOS development, grow your user base, and monetize more effectivel
 
   s.subspec 'CoreOnly' do |ss|
     ss.dependency 'FirebaseCore', '6.3.0'
-    ss.source_files = 'Firebase/Firebase/Sources/Firebase.h'
-    ss.preserve_paths = 'Firebase/Firebase/Sources/module.modulemap'
+    ss.source_files = 'CoreOnly/Sources/Firebase.h'
+    ss.preserve_paths = 'CoreOnly/Sources/module.modulemap'
     ss.user_target_xcconfig = {
-      'HEADER_SEARCH_PATHS' => "$(inherited) ${PODS_ROOT}/Firebase/Firebase/Firebase/Sources"
+      'HEADER_SEARCH_PATHS' => "$(inherited) ${PODS_ROOT}/Firebase/CoreOnly/Sources"
   }
   end
 

+ 0 - 29
Firebase/Firebase/Tests/FirebasePodTest/Podfile

@@ -1,29 +0,0 @@
-# Uncomment the next line to define a global platform for your project
-# platform :ios, '9.0'
-
-target 'FirebasePodTest' do
-  # Comment the next line if you don't want to use dynamic frameworks
-  use_frameworks!
-
-  pod 'Firebase', :path => '../../../../'
-  pod 'FirebaseABTesting', :path => '../../../../'
-  pod 'FirebaseAnalyticsInterop', :path => '../../../../'
-  pod 'FirebaseAuth', :path => '../../../../'
-  pod 'FirebaseAuthInterop', :path => '../../../../'
-  pod 'FirebaseCoreDiagnostics', :path => '../../../../'
-  pod 'FirebaseCoreDiagnosticsInterop', :path => '../../../../'
-  pod 'FirebaseDatabase', :path => '../../../../'
-  pod 'FirebaseDynamicLinks', :path => '../../../../'
-  pod 'FirebaseFirestore', :path => '../../../../'
-  pod 'FirebaseFunctions', :path => '../../../../'
-  pod 'FirebaseInAppMessaging', :path => '../../../../'
-  pod 'FirebaseInAppMessagingDisplay', :path => '../../../../'
-  pod 'FirebaseInstallations', :path => '../../../../'
-  pod 'FirebaseInstanceID', :path => '../../../../'
-  pod 'FirebaseMessaging', :path => '../../../../'
-  pod 'FirebaseRemoteConfig', :path => '../../../../'
-  pod 'FirebaseStorage', :path => '../../../../'
-
-  pod 'FirebaseAnalytics' # Analytics is not open source
-  pod 'FirebasePerformance' # Performance is not open source
-end

+ 0 - 2
Firestore/Example/Firestore.xcodeproj/project.pbxproj

@@ -5001,7 +5001,6 @@
 				GCC_PREFIX_HEADER = "";
 				HEADER_SEARCH_PATHS = (
 					"$(inherited)",
-					"\"${PODS_ROOT}/Firebase/Firebase/Firebase\"",
 					"\"${PODS_ROOT}/leveldb-library/include\"",
 				);
 				INFOPLIST_FILE = "App/iOS/Firestore-Info.plist";
@@ -5024,7 +5023,6 @@
 				GCC_PREFIX_HEADER = "";
 				HEADER_SEARCH_PATHS = (
 					"$(inherited)",
-					"\"${PODS_ROOT}/Firebase/Firebase/Firebase\"",
 					"\"${PODS_ROOT}/leveldb-library/include\"",
 				);
 				INFOPLIST_FILE = "App/iOS/Firestore-Info.plist";

+ 1 - 1
scripts/build.sh

@@ -224,7 +224,7 @@ case "$product-$method-$platform" in
 
   FirebasePod-xcodebuild-*)
     RunXcodebuild \
-        -workspace 'Firebase/Firebase/Tests/FirebasePodTest/FirebasePodTest.xcworkspace' \
+        -workspace 'CoreOnly/Tests/FirebasePodTest/FirebasePodTest.xcworkspace' \
         -scheme "FirebasePodTest" \
         "${xcb_flags[@]}" \
         build

+ 1 - 1
scripts/check_whitespace.sh

@@ -28,7 +28,7 @@ options=(
 git grep "${options[@]}" -- \
     ':(exclude)Firebase/CoreDiagnostics/FIRCDLibrary/Protogen/nanopb' \
     ':(exclude)Firebase/CoreDiagnostics/ProtoSupport' \
-    ':(exclude)Firebase/Firebase/NOTICES' \
+    ':(exclude)CoreOnly/NOTICES' \
     ':(exclude)Firebase/InAppMessaging/ProtoSupport' \
     ':(exclude)Firebase/InAppMessaging/Analytics/Protogen/nanopb' \
     ':(exclude)Firestore/Protos/nanopb' \

+ 1 - 1
scripts/if_changed.sh

@@ -67,7 +67,7 @@ else
       ;;
 
     FirebasePod-*)
-      check_changes '^(Firebase/Firebase|Firebase.podspec)'
+      check_changes '^(CoreOnly|Firebase.podspec)'
       ;;
 
     Core-*)

+ 1 - 1
scripts/install_prereqs.sh

@@ -60,7 +60,7 @@ case "$PROJECT-$PLATFORM-$METHOD" in
 
   FirebasePod-iOS-xcodebuild)
     gem install xcpretty
-    bundle exec pod install --project-directory=Firebase/Firebase/Tests/FirebasePodTest --repo-update
+    bundle exec pod install --project-directory=CoreOnly/Tests/FirebasePodTest --repo-update
     ;;
 
   Auth-*)

+ 1 - 1
scripts/style.sh

@@ -157,7 +157,7 @@ s%^./%%
 \%^(Example|Firebase)/(Auth|AuthSamples|Messaging)/% d
 
 # Keep Firebase.h indenting
-\%^Firebase/Firebase/Sources/Firebase.h% d
+\%^CoreOnly/Sources/Firebase.h% d
 
 # Checked-in generated code
 \%\.pb(objc|rpc)\.% d