android-library

Dealing with R8 + JvmStatic Annotation + Lambda in public API for Android Library written in Kotlin

ぃ、小莉子 提交于 2021-02-07 05:52:08
问题 First of all, please note that I'm not expecting why do you want to obfuscate library comments. This is a genuine problem I'm asking about. I have been having an issue dealing with R8/obfuscation with an Android library written in Kotlin. I've a public API method which is annotated with @JvmStatic and that method takes a Lambda as parameter. For example, take a look at code below, typealias MyLambdaCallback = (String, Map<String, Any>) -> Unit @Keep object MyApi { private var callback:

Dealing with R8 + JvmStatic Annotation + Lambda in public API for Android Library written in Kotlin

谁说胖子不能爱 提交于 2021-02-07 05:51:01
问题 First of all, please note that I'm not expecting why do you want to obfuscate library comments. This is a genuine problem I'm asking about. I have been having an issue dealing with R8/obfuscation with an Android library written in Kotlin. I've a public API method which is annotated with @JvmStatic and that method takes a Lambda as parameter. For example, take a look at code below, typealias MyLambdaCallback = (String, Map<String, Any>) -> Unit @Keep object MyApi { private var callback:

Android Library: Release .aar getting classes.jar empty when using proguard

好久不见. 提交于 2021-02-07 02:36:01
问题 I'm trying to generate a library with minifyEnabled true but, inside the release .aar, classes.jar is getting empty. I have checked my proguard-rules.pro and it seems to be all right. I've even created a new module with the default .gradle files and when i set minifyEnable true the release version still gets the classes.jar with no class inside. After all, is it possible to generate an android library obfuscating the code? EDIT 1: Adding module build.gradle apply plugin: 'com.android.library'

Android Library: Release .aar getting classes.jar empty when using proguard

妖精的绣舞 提交于 2021-02-07 02:33:17
问题 I'm trying to generate a library with minifyEnabled true but, inside the release .aar, classes.jar is getting empty. I have checked my proguard-rules.pro and it seems to be all right. I've even created a new module with the default .gradle files and when i set minifyEnable true the release version still gets the classes.jar with no class inside. After all, is it possible to generate an android library obfuscating the code? EDIT 1: Adding module build.gradle apply plugin: 'com.android.library'

Android Library: Release .aar getting classes.jar empty when using proguard

♀尐吖头ヾ 提交于 2021-02-07 02:33:16
问题 I'm trying to generate a library with minifyEnabled true but, inside the release .aar, classes.jar is getting empty. I have checked my proguard-rules.pro and it seems to be all right. I've even created a new module with the default .gradle files and when i set minifyEnable true the release version still gets the classes.jar with no class inside. After all, is it possible to generate an android library obfuscating the code? EDIT 1: Adding module build.gradle apply plugin: 'com.android.library'

Android Library: Release .aar getting classes.jar empty when using proguard

|▌冷眼眸甩不掉的悲伤 提交于 2021-02-07 02:32:48
问题 I'm trying to generate a library with minifyEnabled true but, inside the release .aar, classes.jar is getting empty. I have checked my proguard-rules.pro and it seems to be all right. I've even created a new module with the default .gradle files and when i set minifyEnable true the release version still gets the classes.jar with no class inside. After all, is it possible to generate an android library obfuscating the code? EDIT 1: Adding module build.gradle apply plugin: 'com.android.library'

How to trim the video with start & end time in android programmatically?

孤者浪人 提交于 2021-02-06 13:50:47
问题 I want to trim the local video based on start and end time in android programmatically ,I tried below attached few links but haven't worked for me.Please let me know any working libraries or sample code to overcome this? Refereed links: Android sdk cut/trim video file How to trim the video using FFMPEG library in android? https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg Thanks in advance! 回答1: Use FFMPEG library to solve your

How to trim the video with start & end time in android programmatically?

拥有回忆 提交于 2021-02-06 13:49:36
问题 I want to trim the local video based on start and end time in android programmatically ,I tried below attached few links but haven't worked for me.Please let me know any working libraries or sample code to overcome this? Refereed links: Android sdk cut/trim video file How to trim the video using FFMPEG library in android? https://superuser.com/questions/377343/cut-part-from-video-file-from-start-position-to-end-position-with-ffmpeg Thanks in advance! 回答1: Use FFMPEG library to solve your

How to debug android library module in Android Studio?

ε祈祈猫儿з 提交于 2021-02-06 10:43:05
问题 I have an Android Studio project which contains a library module, which is added as another gradle project to it. I would like to debug the library code and set breakpoints on it. What gradle settings should I use, if I want to debug a library module while running the app on emulator or real device ? Update 1 this is the settings.gradle file : include ':app' include':my-library' 回答1: After a few days struggling I found the right configuration for being able to debug the library module : 1-

Publish Android aar to artifactory

左心房为你撑大大i 提交于 2021-01-27 05:51:45
问题 I'm stuck with integrating artifactory 3.0.1 plugin with Gradle. I'm using Android Studio 1.0 so I'm guessing that I'm on Gradle 2.0. Any examples on publishing to artifactory using the 3.0.1 plugin would be highly helpful. Thanks in advance 回答1: Publishing to Artifactory is just a configuration task. You just need to configure two plugins, com.jfrog.artifactory and maven-publish , and run artifactoryPublish Gradle's task. But... let's explain it by code, to ease copypasting :·) At your