### Build Glance Android Application with Gradle Source: https://github.com/onlyinamerica/glancereader/blob/master/README.md Instructions to build the Glance Android application from source. This involves ensuring specific Android SDK components are installed (Android SDK Build-tools 19.0.2, Android SDK tools 22.3, SDK Platform 19, Android Support Repository 4), setting the ANDROID_HOME environment variable to your Android SDK location, and then running the Gradle assemble command. The resulting .apk file will be located in the ./app/build/apk directory. ```Shell ./gradlew assemble ``` -------------------------------- ### Keep All Public Members of Jsoup Library Source: https://github.com/onlyinamerica/glancereader/blob/master/app/proguard-rules.txt Ensures that all public classes and their public members within the `org.jsoup` package are kept and not obfuscated or removed by ProGuard. This rule is essential for libraries like Jsoup to function correctly after code shrinking. ```ProGuard -keep public class org.jsoup.** { public *; } ``` -------------------------------- ### Suppress Warnings for javax.xml Package Source: https://github.com/onlyinamerica/glancereader/blob/master/app/proguard-rules.txt Instructs ProGuard to suppress warnings related to missing or unresolved classes within the `javax.xml` package. These warnings can occur if parts of the JDK's XML processing capabilities are not fully included or referenced in the Android build environment. ```ProGuard -dontwarn javax.xml.** ``` -------------------------------- ### Suppress Warnings for Third-Party Libraries Source: https://github.com/onlyinamerica/glancereader/blob/master/app/proguard-rules.txt Suppresses ProGuard warnings for specific third-party libraries such as Facebook SDK, SLF4J, and `sun.misc.Unsafe`. These warnings often arise when libraries reference classes not available in the Android runtime or cause build issues due to their internal structure. ```ProGuard -dontwarn com.facebook.** -dontwarn org.slf4j.** -dontwarn sun.misc.Unsafe ``` -------------------------------- ### ProGuard Rule for WebView JavaScript Interface Source: https://github.com/onlyinamerica/glancereader/blob/master/lib/proguard-rules.txt This rule demonstrates how to prevent obfuscation of methods within a JavaScript interface class used by Android's WebView component. It ensures that all public methods of the specified class remain accessible from JavaScript, which is crucial for proper communication between the WebView and the native application. ```ProGuard # If your project uses WebView with JS, uncomment the following # and specify the fully qualified class name to the JavaScript interface # class: #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} ``` -------------------------------- ### Disable Code Obfuscation Source: https://github.com/onlyinamerica/glancereader/blob/master/app/proguard-rules.txt A ProGuard rule to completely disable code obfuscation for the entire application. This is often used during development, debugging, or for specific builds where obfuscation is not desired. ```ProGuard -dontobfuscate ``` -------------------------------- ### Keep Members of WebView JavaScript Interface Source: https://github.com/onlyinamerica/glancereader/blob/master/app/proguard-rules.txt Specifies a ProGuard rule to keep all public members of a JavaScript interface class used with WebView, preventing them from being obfuscated or removed, which is crucial for JavaScript-to-Java communication. ```ProGuard #-keepclassmembers class fqcn.of.javascript.interface.for.webview { # public *; #} ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.