com.faker.android.RClassExclusion Maven / Gradle / Ivy
The newest version!
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;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy