aar

Exporting cocos2d Android application as aar and calling its Activity from another project

荒凉一梦 提交于 2020-07-10 10:25:18
问题 I had built a cocos2d Android project from cocos creator. (sample application) And I exported this android application as an android library (sample.aar) I created another Android application (MyDemo) and imported the android library (sample.aar) I am calling the AppActivity of (sample.aar) library from the MainActivity of (MyDemo) application on Button click aarButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent intent = new Intent(); intent

Maven refuse to download aar packaged dependency from remote repository

自闭症网瘾萝莉.ら 提交于 2020-04-28 02:34:26
问题 I want to use this android dependency in my java program: http://jcenter.bintray.com/com/o3dr/android/dronekit-android/2.9.0/ so I added all the plugins & repositories into my maven pom file: <repositories> <repository> <id>central</id> <name>bintray</name> <url>http://jcenter.bintray.com</url> <!--<snapshots>--> <!--<enabled>false</enabled>--> <!--</snapshots>--> </repository> </repositories> <pluginRepositories> <pluginRepository> <!--<snapshots>--> <!--<enabled>false</enabled>--> <!--<

Maven refuse to download aar packaged dependency from remote repository

只愿长相守 提交于 2020-04-28 02:33:05
问题 I want to use this android dependency in my java program: http://jcenter.bintray.com/com/o3dr/android/dronekit-android/2.9.0/ so I added all the plugins & repositories into my maven pom file: <repositories> <repository> <id>central</id> <name>bintray</name> <url>http://jcenter.bintray.com</url> <!--<snapshots>--> <!--<enabled>false</enabled>--> <!--</snapshots>--> </repository> </repositories> <pluginRepositories> <pluginRepository> <!--<snapshots>--> <!--<enabled>false</enabled>--> <!--<

how to call Non-static method from Unity Android Plugin?

给你一囗甜甜゛ 提交于 2020-03-03 10:47:45
问题 i want use this java code to get uri data in unity i write this script code to call this method , but not work *java public String GetUri(){ Intent intent = getIntent(); Uri intentData = intent.getData(); return intentData.getQueryParameter("token"); } *c# TextShow.text += ajc.Call<string>("GetUri"); After many tests , i find only static method can call in unity like this *java public static String DoSthInAndroid3() { return "33333"; } *c# TextShow.text += ajc.Call<string>("DoSthInAndroid3");

how to start an activity in another module explicitly

拈花ヽ惹草 提交于 2020-02-26 08:00:05
问题 I created an aar and i added it to my project as an module. in this module i have a HelloWorldActivity that i want to run. my module manifest looks like this. <application android:allowBackup="true" android:icon="@mipmap/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name="ir.sibvas.testlibary1.HelloWorldActivity" android:label="@string/app_name" > <intent-filter> <action android:name="ir.sibvas.testlibary1.HelloWorldActivity" /> <category

Kotlin AAR library w/ proguard: How to keep ONLY class and method names?

早过忘川 提交于 2020-02-25 13:20:36
问题 I am building an android library (aar file) with Kotlin. I need to obfuscate the code in a way that the 3rd party user will see the class and method names, he must be able to use them (they are pubilc), but I need to hide/obfuscate the code itself. I tried using this file for the myLibrary\proguard-rules.pro file: https://github.com/mohitrajput987/android-utility/blob/master/preference/proguard-rules.pro but every class, method and var is changed, except for a directory that has both a Kotlin

Kotlin AAR library w/ proguard: How to keep ONLY class and method names?

橙三吉。 提交于 2020-02-25 13:19:47
问题 I am building an android library (aar file) with Kotlin. I need to obfuscate the code in a way that the 3rd party user will see the class and method names, he must be able to use them (they are pubilc), but I need to hide/obfuscate the code itself. I tried using this file for the myLibrary\proguard-rules.pro file: https://github.com/mohitrajput987/android-utility/blob/master/preference/proguard-rules.pro but every class, method and var is changed, except for a directory that has both a Kotlin

Kotlin AAR library w/ proguard: How to keep ONLY class and method names?

不想你离开。 提交于 2020-02-25 13:18:06
问题 I am building an android library (aar file) with Kotlin. I need to obfuscate the code in a way that the 3rd party user will see the class and method names, he must be able to use them (they are pubilc), but I need to hide/obfuscate the code itself. I tried using this file for the myLibrary\proguard-rules.pro file: https://github.com/mohitrajput987/android-utility/blob/master/preference/proguard-rules.pro but every class, method and var is changed, except for a directory that has both a Kotlin

Android AAR lib - resource linking failed

给你一囗甜甜゛ 提交于 2020-01-24 10:01:05
问题 I'm trying to convert Android app to lib module, without copying source. I did it (modified build.gradle file), and it syncs and builds, but when I add dependency to resulting AAR file into another project (where I want to use this lib) build fails and resource linking fails. I can't understand why: original app builds and runs lib module (converted from app) builds project that uses AAR from that lib does not builds, and finds error in this AAR. For example, one of the possible errors is: