понедельник, 6 июля 2015 г.

Library as aar file

in build.gradle of the library:

apply plugin: 'com.android.library'

aar can be found in build/outputs/aar/ 

in build.gradle of the project:
repositories {
    flatDir {
        dirs 'libs'

dependencies {
    compile(name:'cards', ext:'aar')

Do-not-forget proguard settings

-renamesourcefileattribute SourceFile
-keepattributes SourceFile,LineNumberTable

пятница, 22 мая 2015 г.

Android app stress testing. Monkey.

You'll need an emulator or an ADB-connected device.
It's a command line utility. To start it:

$ /Users/Username/Library/Android/sdk/platform-tools/adb shell

Start pushing events (an example for 500 events):
monkey -p your.package.name -v 500

Enjoy your phone's life:)

Android SDK location on OS X

Default path is /Users/username/Library/Android/sdk

You can change it via File -> Project structure -> SDK Location in Android Studio