[Request]: The missing PrivacyManifest support

Aberta
#3,627 2 comentários 4 reações 0 responsáveis Ver no GitHub

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
1/5
Tempo estimado
Menos de uma hora
Facilidade para iniciantes
58/100
Tipo de issue
Funcionalidade
Clareza
Razoavelmente clara
Status de atividade
Estagnada
Stack de tecnologia
dart, flutter, ios
Domínio
mobile, security

Direção de pesquisa

Comece por packages/package_info_plus/package_info_plus/ios/package_info_plus/Sources/package_info_plus/PrivacyInfo.xcprivacy e inspecione o uso de _NSFileCreationDate em FPPPackageInfoPlusPlugin.m. Execute o comando nm fornecido ou o scanner de required reasons do iOS e, em seguida, atualize o manifesto com a categoria File Timestamp e o reason confirmados. Está concluído quando o pacote compilado declara a API necessária sem avisos do scanner.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

enhancement triage
Plugin

package_info_plus

Use case

Hi package_info_plus team,

First, thank you for maintaining this incredibly useful package.

I am writing to report a potential issue regarding the privacy manifest (PrivacyInfo.xcprivacy) that may require your attention to ensure compliance with Apple's App Store policies.

Issue Description

While using a scanner tool (omarzl/ios_17_required_reason_api_scanner) and manually inspecting the framework binary, I found that package_info_plus seems to use an API that requires a "Required Reason" declaration.

Specifically, the symbol _NSFileCreationDate was found, which is part of the File Timestamp API category (NSPrivacyAccessedAPICategoryFileTimestamp). However, the package's current PrivacyInfo.xcprivacy does not include a declaration for this API category.

Without this declaration, apps using this package may face warnings or rejections during the App Store review process.

Steps to Reproduce

Build a Flutter app that includes package_info_plus for an iOS target.

Locate the built framework at build/ios/Debug-iphoneos/package_info_plus/package_info_plus.framework/package_info_plus.

Run the nm command to inspect the symbols used by the binary:

nm -u path/to/package_info_plus | grep '_NSFileCreationDate'

The output confirms that the _NSFileCreationDate symbol is being used.

Proposal

I would like to request that you update the PrivacyInfo.xcprivacy file to include the necessary declaration for the File Timestamp API. Based on Apple's documentation, the following entry should be added to the NSPrivacyAccessedAPITypes array:

<dict>
    <key>NSPrivacyAccessedAPIType</key>
    <string>NSPrivacyAccessedAPICategoryFileTimestamp</string>
    <key>NSPrivacyAccessedAPITypeReasons</key>
    <array>
        <!-- Reason C617.1: To display file timestamp information to the user. -->
        <string>C617.1</string>
    </array>
</dict>

I've suggested reason code C617.1 as it seems the most likely fit for this package's functionality (displaying app information). Please confirm if this is the appropriate reason.

Thank you for your time and consideration on this matter.

Linguagem predominante
Dart
Estrelas
1.9k
Forks
1.3k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de fluttercommunity/plus_plugins

Todas as issues de fluttercommunity/plus_plugins

Issues semelhantes

Mais issues de Dart

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.