INNER CODE UNIT · Java

getProguardRules

kezong/fat-aar-android · source/src/main/java/com/kezong/fataar/AndroidArchiveLibrary.java:104

    public File getProguardRules() {
        return new File(getRootFolder(), "proguard.txt");
    }

    public File getSymbolFile() {
        return new File(getRootFolder(), "R.txt");
    }

    public synchronized String getPackageName() {
        if (mPackageName == null) {
            File manifestFile = getManifest();
            if (manifestFile.exists()) {
                try {
                    DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
                    Document doc = dbf.newDocumentBuilder().parse(manifestFile);
                    Element element = doc.getDocumentElement();
                    mPackageName = element.getAttribute("package");
                } catch (Exception e) {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…