Skip to content

[in_app_purchase] Fix clang analyzer warnings in iOS platform code #42679

@jmagman

Description

@jmagman

Steps to Reproduce

$ cd packages/in_app_purchase/example/    
$ flutter build ios
$ cd ios
$ /usr/bin/xcodebuild build -workspace Runner.xcworkspace -scheme Runner -configuration Release CODE_SIGN_IDENTITY=- CODE_SIGNING_ALLOWED=NO analyze

Logs

InAppPurchasePlugin.m:20:1: warning: Property of mutable type 'NSMutableDictionary' has 'copy' attribute; an immutable object
      will be stored instead
@property(copy, nonatomic) NSMutableDictionary *productsCache;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 warning generated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: contributor-productivityTeam-specific productivity, code health, technical debt.p: in_app_purchasePlugin for in-app purchasepackageflutter/packages repository. See also p: labels.platform-iosiOS applications specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions