| 2317 | } |
| 2318 | |
| 2319 | void |
| 2320 | addProguardKeepMethodRule(ProguardKeepSet* keep, const String8& memberName, |
| 2321 | const char* pkg, const String8& srcName, int line) |
| 2322 | { |
| 2323 | String8 rule("-keepclassmembers class * { *** "); |
| 2324 | rule += memberName; |
| 2325 | rule += "(...); }"; |
| 2326 | |
| 2327 | String8 location("onClick "); |
| 2328 | location += srcName; |
| 2329 | char lineno[20]; |
| 2330 | sprintf(lineno, ":%d", line); |
| 2331 | location += lineno; |
| 2332 | |
| 2333 | keep->add(rule, location); |
| 2334 | } |
| 2335 | |
| 2336 | status_t |
| 2337 | writeProguardForAndroidManifest(ProguardKeepSet* keep, const sp<AaptAssets>& assets) |
no test coverage detected