target api 27

This commit is contained in:
Tilman Kranz 2018-03-22 00:49:30 +01:00
parent 65db95bb91
commit 86d157676b
4 changed files with 22 additions and 11 deletions

7
.idea/kotlinc.xml generated Normal file
View File

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Kotlin2JsCompilerArguments">
<option name="sourceMapEmbedSources" />
<option name="sourceMapPrefix" />
</component>
</project>

View File

@ -1,17 +1,17 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
compileSdkVersion 27
defaultConfig {
applicationId "com.tksls.yellowrectangle"
minSdkVersion 19
targetSdkVersion 26
minSdkVersion 23
targetSdkVersion 27
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
externalNativeBuild {
cmake {
cppFlags ""
cppFlags "-std=c++11"
}
}
}
@ -30,7 +30,7 @@ android {
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support:appcompat-v7:27.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.1'

View File

@ -10,7 +10,7 @@ int main(int argc, char **argv) {
al_install_touch_input();
al_install_keyboard();
auto display = al_create_display(0, 0);
auto display = al_create_display(640, 480);
auto queue = al_create_event_queue();
auto redraw = true;
auto done = false;

View File

@ -3,19 +3,23 @@
package com.tksls.yellowrectangle;
import android.util.Log;
import org.liballeg.android.AllegroActivity;
public class DrawYellowRectangle extends AllegroActivity {
@Override
public void onStart() {
super.onStart();
Log.i("DrawYellowRectangle", "On Start .....");
}
static {
System.loadLibrary("allegro");
System.loadLibrary("allegro_primitives");
System.loadLibrary("allegro_image");
System.loadLibrary("allegro_font");
System.loadLibrary("allegro_ttf");
System.loadLibrary("allegro_audio");
System.loadLibrary("allegro_acodec");
System.loadLibrary("allegro_color");
}
public DrawYellowRectangle() {
super("libnative-lib.so");
}