Вопрос

I'm creating an iOS application using trigger IO, and I would like to add my application's shortcut icon to the list of available editors for certain file types. Like in this article, can this be done using trigger io?

My app inside iMessage UIActivityViewController

I've added the build_steps.json to the ios custom module. I can't get the correct syntax. I get an error from the forge build procress.

[  ERROR] 2013-11-29 22:29:56,654 -- set_in_info_plist() got an unexpected keyword argument 'UTImportedTypeDeclarations'

Here is my build_steps.json:

[
{
    "do": {
        "set_in_info_plist": {
            "UTImportedTypeDeclarations":
            [
                {
                    "UTTypeConformsTo":
                    [
                        "public.image"
                    ],
                    "UTTypeIdentifier": "public.png",
                    "UTTypeTagSpecification":
                    {
                        "com.apple.ostype": "PNG",
                        "public.filename-extension":
                        [
                            "png"
                        ],
                        "public.mime-type": "image/png"
                    }
                },
                {
                    "UTTypeConformsTo":
                    [
                        "public.image"
                    ],
                    "UTTypeIdentifier": "public.jpeg",
                    "UTTypeTagSpecification":
                    {
                        "com.apple.ostype": "JPEG",
                        "public.filename-extension":
                        [
                            "jpg"
                        ],
                        "public.mime-type": "image/jpeg"
                    }
                }
            ]
        }
    }
}   

]

Can anyone tell me what is wrong with this file?

Это было полезно?

Решение

This isn't possible with Trigger's built in functionality, but should be possible by writing your own native module.

See https://trigger.io/docs/current/api/native_modules/index.html and in particular https://trigger.io/docs/current/api/native_modules/native_build_steps.html#set_in_info_plist for updating the Info.plist for an app.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top