Initial commit.

This commit is contained in:
gmp
2019-01-09 18:21:20 -05:00
commit b6d598696c
17 changed files with 933 additions and 0 deletions
+40
View File
@@ -0,0 +1,40 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion = rootProject.ext.sdkVersion
defaultConfig {
ndk {
abiFilters rootProject.ext.archs.split(",")
}
}
buildTypes {
release
debug {
jniDebuggable true
}
}
}
task buildGo(type: Exec) {
commandLine '../bash_script/build_go.sh', rootProject.ext.archs, rootProject.ext.sdkVersion
}
task prepareToolchain(type: Exec) {
commandLine '../bash_script/build_toolchain.sh', rootProject.ext.archs, rootProject.ext.sdkVersion
}
task cleanToolchain(type: Exec) {
commandLine 'rm', '-r', 'build_go/toolchain'
}
task cleanOutput(type: Exec) {
commandLine 'rm', '-r', 'build_go/output'
}
afterEvaluate {
buildGo.dependsOn prepareToolchain
preBuild.dependsOn buildGo
clean.dependsOn cleanOutput
}
@@ -0,0 +1,24 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="st.wow.gitlab.gmp.rand"
android:versionCode="1"
android:versionName="1.0">
<uses-sdk android:minSdkVersion="25" />
<uses-feature android:glEsVersion="0x00030000" android:required="true" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application android:label="Rand" android:hasCode="false">
<activity android:name="android.app.NativeActivity"
android:label="Rand"
android:configChanges="orientation|keyboardHidden">
<meta-data android:name="android.app.lib_name" android:value="gomain" />
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>