target api 27
This commit is contained in:
parent
65db95bb91
commit
86d157676b
7
.idea/kotlinc.xml
Normal file
7
.idea/kotlinc.xml
Normal 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>
|
@ -1,17 +1,17 @@
|
|||||||
apply plugin: 'com.android.application'
|
apply plugin: 'com.android.application'
|
||||||
|
|
||||||
android {
|
android {
|
||||||
compileSdkVersion 26
|
compileSdkVersion 27
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "com.tksls.yellowrectangle"
|
applicationId "com.tksls.yellowrectangle"
|
||||||
minSdkVersion 19
|
minSdkVersion 23
|
||||||
targetSdkVersion 26
|
targetSdkVersion 27
|
||||||
versionCode 1
|
versionCode 1
|
||||||
versionName "1.0"
|
versionName "1.0"
|
||||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||||
externalNativeBuild {
|
externalNativeBuild {
|
||||||
cmake {
|
cmake {
|
||||||
cppFlags ""
|
cppFlags "-std=c++11"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -30,7 +30,7 @@ android {
|
|||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation fileTree(dir: 'libs', include: ['*.jar'])
|
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'
|
implementation 'com.android.support.constraint:constraint-layout:1.0.2'
|
||||||
testImplementation 'junit:junit:4.12'
|
testImplementation 'junit:junit:4.12'
|
||||||
androidTestImplementation 'com.android.support.test:runner:1.0.1'
|
androidTestImplementation 'com.android.support.test:runner:1.0.1'
|
||||||
|
@ -10,7 +10,7 @@ int main(int argc, char **argv) {
|
|||||||
al_install_touch_input();
|
al_install_touch_input();
|
||||||
al_install_keyboard();
|
al_install_keyboard();
|
||||||
|
|
||||||
auto display = al_create_display(0, 0);
|
auto display = al_create_display(640, 480);
|
||||||
auto queue = al_create_event_queue();
|
auto queue = al_create_event_queue();
|
||||||
auto redraw = true;
|
auto redraw = true;
|
||||||
auto done = false;
|
auto done = false;
|
||||||
|
@ -3,19 +3,23 @@
|
|||||||
|
|
||||||
package com.tksls.yellowrectangle;
|
package com.tksls.yellowrectangle;
|
||||||
|
|
||||||
|
import android.util.Log;
|
||||||
|
|
||||||
import org.liballeg.android.AllegroActivity;
|
import org.liballeg.android.AllegroActivity;
|
||||||
|
|
||||||
public class DrawYellowRectangle extends AllegroActivity {
|
public class DrawYellowRectangle extends AllegroActivity {
|
||||||
|
@Override
|
||||||
|
public void onStart() {
|
||||||
|
super.onStart();
|
||||||
|
Log.i("DrawYellowRectangle", "On Start .....");
|
||||||
|
}
|
||||||
|
|
||||||
static {
|
static {
|
||||||
System.loadLibrary("allegro");
|
System.loadLibrary("allegro");
|
||||||
System.loadLibrary("allegro_primitives");
|
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");
|
System.loadLibrary("allegro_color");
|
||||||
}
|
}
|
||||||
|
|
||||||
public DrawYellowRectangle() {
|
public DrawYellowRectangle() {
|
||||||
super("libnative-lib.so");
|
super("libnative-lib.so");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user