Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tilman Kranz
yellow-rectangle-android
Commits
86d15767
Commit
86d15767
authored
Mar 22, 2018
by
Tilman Kranz
Browse files
target api 27
parent
65db95bb
Changes
4
Hide whitespace changes
Inline
Side-by-side
.idea/kotlinc.xml
0 → 100644
View file @
86d15767
<?xml version="1.0" encoding="UTF-8"?>
<project
version=
"4"
>
<component
name=
"Kotlin2JsCompilerArguments"
>
<option
name=
"sourceMapEmbedSources"
/>
<option
name=
"sourceMapPrefix"
/>
</component>
</project>
\ No newline at end of file
app/build.gradle
View file @
86d15767
apply
plugin:
'com.android.application'
android
{
compileSdkVersion
2
6
compileSdkVersion
2
7
defaultConfig
{
applicationId
"com.tksls.yellowrectangle"
minSdkVersion
19
targetSdkVersion
2
6
minSdkVersion
23
targetSdkVersion
2
7
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:2
6
.1.0'
implementation
'com.android.support:appcompat-v7:2
7
.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'
...
...
app/src/main/cpp/native-lib.cpp
View file @
86d15767
...
...
@@ -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
(
64
0
,
48
0
);
auto
queue
=
al_create_event_queue
();
auto
redraw
=
true
;
auto
done
=
false
;
...
...
app/src/main/java/com/tksls/yellowrectangle/DrawYellowRectangle.java
View file @
86d15767
...
...
@@ -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"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment