Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

FR: Add more helper API relate to config files patching into this package #690

Open
@Thaina

Description

@Thaina

Feature proposal

  • EDM4U Component: Android Resolver, iOS Resolver

Since this package is very widely used for everyone developing in android and ios.Dependencies.xml mechanic is very amazing. So I think it would be more beneficial if this package also have mechanism to do patching toInfo.plist andAndroidManifest.xml also variousres/values/ xml files

Specifically things that related to adding and verifying key/value, query if the key and value already existed. Handling of android namespace (usingSystem.Xml directly is very difficult at this). And generating required values of 3rd party packages for android and ios, which always required for package like google signin and firebase

It wouldn't need to be xml declarative pattern, I wish we would just have some C# editor API we can use to write our ownIPostprocessBuildWithReport

Such as

usingEDM4U.Helper.Android;//// IPostGenerateGradleAndroidProject.OnPostGenerateGradleAndroidProjectvarxmlElement=AndroidManifestHelper.GetOrCreateMetaDataWithAndroidName("com.google.android.gms.games.APP_ID");// get meta-data in manifest/application that has attribute android:name=com.google.android.gms.games.APP_IDxmlElement.SetAndroidValue(appId);// Extension method to set android:value=XXXXXXXX
usingEDM4U.Helper.iOS;//// IPostprocessBuildWithReport.OnPostprocessBuildvarinfo=newPlistDocument();info.ReadFromFile(plistPath);varplistArrayCFBUT=info.root.GetOrCreateArray("CFBundleURLTypes");// extension method in PListHelperif(!plistArrayCFBUT.values.Any(/* any dict with CFBundleURLTypes contain reversedClientID */)){vardict=plistArrayCFBUT.AddDict();dict.SetString("CFBundleTypeRole","Editor");dict.GetOrCreateArray("CFBundleURLSchemes").AddString(reversedClientID);}

Actually I have seen similar feature exist in firebase core. I think it would be better if it was moved into this repo so that it can be utilized by almost all of google dependent package

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp