android: fix setting the debuggable property for the apk

This commit is contained in:
Sebastian Krzyszkowiak 2019-01-21 04:52:15 +01:00
parent 54a305b3ec
commit d1fbe5dd49
No known key found for this signature in database
GPG key ID: E8F235CF3BDBC3FF
2 changed files with 11 additions and 3 deletions

View file

@ -9,10 +9,18 @@ android {
versionCode ${LIBSUPERDERPY_RELEASE}
versionName "${LIBSUPERDERPY_VERSION}"
}
sourceSets { main { jniLibs.srcDirs = ['libs'] } }
sourceSets {
main {
jniLibs.srcDirs = ['libs']
}
}
buildTypes {
debug {
debuggable ${LIBSUPERDERPY_ANDROID_DEBUGGABLE}
}
}
}
dependencies {
//implementation fileTree(dir: 'libs', include: ['*.jar', '*.so'])
implementation "org.liballeg.android:allegro:1.0@aar"
}

View file

@ -7,7 +7,7 @@
<uses-sdk android:minSdkVersion="15" android:targetSdkVersion="${ANDROID_TARGET_VERSION}" />
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
<supports-screens android:smallScreens="true" android:normalScreens="true" android:largeScreens="true" android:xlargeScreens="true" android:anyDensity="true" android:resizeable="true" />
<application android:label="@string/app_name" android:debuggable="${LIBSUPERDERPY_ANDROID_DEBUGGABLE}" android:icon="@mipmap/${LIBSUPERDERPY_GAMENAME}">
<application android:label="@string/app_name" android:icon="@mipmap/${LIBSUPERDERPY_GAMENAME}">
<activity android:name="net.dosowisko.libsuperderpy.Activity"
android:label="@string/app_name"
android:launchMode="singleTask"