Skip to content

Commit

Permalink
Added support version field for ios plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitriy Kuragin committed Apr 10, 2015
1 parent 0286a1b commit afbed7a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/ios/ApiAIPlugin.m
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,11 @@ - (void)init:(CDVInvokedUrlCommand*)command
api.lang = lang;
}

NSString *version = parameters[@"version"];
if (version && [version length]) {
api.version = version;
}

api.configuration = configuration;

self.api = api;
Expand Down

0 comments on commit afbed7a

Please sign in to comment.