com.faker.android.RClassExclusion Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle Show documentation
Show all versions of gradle Show documentation
fakeradnroid gradle builder
package com.faker.android;
public class RClassExclusion implements ClassExclusion{
String applicaionId;
public RClassExclusion(String applicaionId){
this.applicaionId = applicaionId;
}
@Override
public boolean exclude(String smaliFileName) {
String pkgToPath = applicaionId.replace(".","/");
if(smaliFileName.startsWith(pkgToPath+"/R$")){
System.out.println("target appliationId is"+applicaionId +"R smali class will exclude"+smaliFileName);
return true;
}
if(smaliFileName.equals(pkgToPath+"/R.smali")){
System.out.println("target appliationId is"+applicaionId +"R smali class will exclude"+smaliFileName);
return true;
}
return false;
}
}