Oleksandr Tereshchuk
Oleksandr Tereshchuk
This JAR worked for me, but I can't guarantee it would satisfy all your needs too https://drive.google.com/open?id=1Qnu1eWvo70PczJ7OhlSVwbrtU6GmAau7
the code is far from beautiful, but it worked for me... **JarProcessor.kt** ``` import java.io.IOException import java.util.jar.JarEntry import java.util.jar.JarFile import org.objectweb.asm.ClassReader import org.objectweb.asm.Opcodes import org.objectweb.asm.tree.ClassNode import java.util.HashMap import java.io.File import...
it's based on examples from - https://riptutorial.com/java/example/12965/how-to-edit-jar-files-with-asm - https://asm.ow2.io/faq.html
Oh, it helped me figure out why obvious `Thread.sleep(7000)` is not caught sometimes... Ended up with: ``` new ANRWatchDog(500) .setANRInterceptor(new ANRWatchDog.ANRInterceptor() { private long lastReportTs = 0L; @Override public long...
This should be enough: ``` -dontwarn org.apache.logging.log4j.** -keep class org.apache.logging.log4j.simple.** -keep class ai.api.model.** { *; } ```
Interesting... I was playing with this delay a bit and it seem like Google app (recognizer component) would stop listening anyway. So, even if you set `STOP_DELAY` to a couple...
https://github.com/api-ai/apiai-android-client has transitive dependency on https://github.com/api-ai/apiai-java-client Which adds **log4j** to your app. log4j was not really designed to work on Android VM, so the best way to solve your issue...
@sergiandreplace Just put into `src/main/resources` folder ``` > tail -vn +1 src/main/resources/* ==> src/main/resources/log4j2.component.properties src/main/resources/log4j2.simplelog.properties
I've experienced this on devices with older Google search app installed - when audio is disabled and it's very quite in room. To be safe, you would need to schedule...
The only workaround (as of version 3.1.6) is to use `java-compat` module. Honestly, there's no good reason why there's no direct Kotlin equivalent to pass ViewModel class.