Disable Xcode code in Editor
This commit is contained in:
parent
2be2ae3296
commit
d8cba35c31
@ -234,15 +234,18 @@ namespace Firebase.Editor {
|
||||
|
||||
// Called when the Window gets focus.
|
||||
void OnFocus() {
|
||||
var androidProjectFields = GenerateXmlFromGoogleServicesJson.ReadProjectFields();
|
||||
#if UNITY_ANDROID
|
||||
var androidProjectFields = GenerateXmlFromGoogleServicesJson.ReadProjectFields();
|
||||
if (!androidProjectFields.TryGetValue("project_id", out s_androidProjectId)) {
|
||||
s_androidProjectId = null;
|
||||
}
|
||||
XcodeProjectPatcher.ReadConfig(errorOnNoConfig: false);
|
||||
#elif UNITY_IOS
|
||||
XcodeProjectPatcher.ReadConfig(errorOnNoConfig: false);
|
||||
var iosProjectConfig = XcodeProjectPatcher.GetConfig();
|
||||
if (!iosProjectConfig.TryGetValue("PROJECT_ID", out s_iosProjectId)) {
|
||||
s_iosProjectId = null;
|
||||
}
|
||||
#endif
|
||||
Repaint();
|
||||
}
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#if UNITY_EDITOR && UNITY_IOS
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
@ -251,3 +251,4 @@ internal class XcodeProjectModifier {
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@ -13,7 +13,7 @@
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#if UNITY_EDITOR && UNITY_IOS
|
||||
namespace Firebase.Editor {
|
||||
|
||||
using Google;
|
||||
@ -525,3 +525,4 @@ internal class XcodeProjectPatcher : AssetPostprocessor {
|
||||
}
|
||||
|
||||
} // namespace Firebase.Editor
|
||||
#endif
|
||||
@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "com.bywaystudios.firebase.app",
|
||||
"displayName": "FirebaseApp",
|
||||
"version": "13.6.0-exp.9",
|
||||
"version": "13.6.0-exp.10",
|
||||
"description": "Firebase Base Package that every Firebase Package should depend on",
|
||||
"dependencies": {
|
||||
"com.google.external-dependency-manager": "1.2.186"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user