uber/piranha

PiranhaObjC: Use properties.json to specify configuration properties

Aperta

#51 aperta il 15 giu 2020

 (1 commento) (0 reazioni) (0 assegnatari)Java (178 fork)batch import
enhancementgood first issuehelp wantedlegacy-objc

Metriche repository

Star
 (2143 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Currently PiranhaObjC APIs are hardcoded. See here. Introduce a configuration json file that contains an array of methodProperties with methodName, flagType, returnType and argumentIndex. See below.

{ "methodProperties": [ { "methodName": "isToggleEnabled", "flagType": "treated", "returnType": "boolean", "argumentIndex": 0 }, ... ], }

This properties file will be parsed and the listed APIs will be used for refactoring.

Guida contributor