[ios] change name of parameter packageName to androidPackageName

This commit is contained in:
Omer Levy 2017-10-02 00:55:08 +03:00
parent 78ab8ebd1b
commit ccc178cf05
1 changed files with 2 additions and 2 deletions

View File

@ -172,9 +172,9 @@ RCT_EXPORT_METHOD(createShortDynamicLink: (NSDictionary *) metadata resolver:(RC
- (void)setAndroidParameters:(NSDictionary *)metadata
components:(FIRDynamicLinkComponents *)components {
NSDictionary *androidParametersDict = metadata[@"androidInfo"];
if (androidParametersDict && androidParametersDict[@"packageName"]) {
if (androidParametersDict && androidParametersDict[@"androidPackageName"]) {
FIRDynamicLinkAndroidParameters *androidParams = [FIRDynamicLinkAndroidParameters
parametersWithPackageName: androidParametersDict[@"packageName"]];
parametersWithPackageName: androidParametersDict[@"androidPackageName"]];
if (androidParametersDict[@"androidFallbackLink"]) {
androidParams.fallbackURL = [NSURL URLWithString:androidParametersDict[@"androidFallbackLink"]];
}