Skip to content

Commit ce38bd5

Browse files
committed
Start to migrate to Gradle
1 parent 5e9fcee commit ce38bd5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+372
-26
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
.gradle
2+
build
3+
.cxx

app/build.gradle

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 21
5+
buildToolsVersion '29.0.2'
6+
ndkVersion '21.1.6352462'
7+
8+
defaultConfig {
9+
applicationId "cosine.boat"
10+
minSdkVersion 21
11+
targetSdkVersion 21
12+
versionCode 20
13+
versionName "0.4.3"
14+
15+
externalNativeBuild {
16+
cmake {
17+
abiFilters 'arm64-v8a'
18+
arguments '-DANDROID_TOOLCHAIN=clang', '-DANDROID_STL=c++_static'
19+
}
20+
}
21+
}
22+
externalNativeBuild {
23+
cmake {
24+
path 'src/main/jni/boat/CMakeLists.txt'
25+
path 'src/main/jni/loadme/CMakeLists.txt'
26+
}
27+
}
28+
29+
buildTypes {
30+
release {
31+
minifyEnabled = false
32+
}
33+
}
34+
35+
compileOptions {
36+
sourceCompatibility JavaVersion.VERSION_1_8
37+
targetCompatibility JavaVersion.VERSION_1_8
38+
}
39+
}
40+
41+
dependencies {
42+
implementation fileTree(dir: 'libs', include: ['*.jar'])
43+
implementation 'org.tukaani:xz:1.8'
44+
implementation 'com.google.code.gson:gson:2.8.2'
45+
implementation 'org.apache.commons:commons-compress:1.19'
46+
}

AndroidManifest.xml renamed to app/src/main/AndroidManifest.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<manifest
33
xmlns:android="http://schemas.android.com/apk/res/android"
4-
android:versionCode="18"
5-
android:versionName="0.2.4"
64
package="cosine.boat">
75
<uses-feature
86
android:glEsVersion="0x00020000"
97
android:required="true" />
10-
<uses-sdk
11-
android:minSdkVersion="19" />
128
<uses-permission
139
android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
1410
<uses-permission
@@ -44,10 +40,6 @@
4440
android:launchMode="singleInstance"
4541
android:alwaysRetainTaskState="true">
4642

47-
<meta-data
48-
android:name="android.app.lib_name"
49-
android:value="boat" />
50-
5143
</activity>
5244
</application>
5345
</manifest>
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)