创建工程
This commit is contained in:
1
collect-library/.gitignore
vendored
Normal file
1
collect-library/.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
/build
|
||||
124
collect-library/build.gradle
Normal file
124
collect-library/build.gradle
Normal file
@@ -0,0 +1,124 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
id 'org.jetbrains.kotlin.android'
|
||||
}
|
||||
apply plugin: 'kotlin-android'
|
||||
apply plugin: 'kotlin-kapt'
|
||||
apply plugin: 'realm-android'
|
||||
|
||||
ext.vtmVersion = "0.18.0"
|
||||
ext.realm_version = '10.10.1'
|
||||
ext.appcompatVersion = "1.3.0"
|
||||
ext.materialVersion = "1.5.0"
|
||||
ext.kotlin_version = '1.7.0'
|
||||
|
||||
android {
|
||||
compileSdk 30
|
||||
|
||||
defaultConfig {
|
||||
minSdk 23
|
||||
targetSdk 30
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
|
||||
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
|
||||
consumerProguardFiles "consumer-rules.pro"
|
||||
|
||||
// 指定room.schemaLocation生成的文件路径
|
||||
javaCompileOptions {
|
||||
annotationProcessorOptions {
|
||||
arguments = ["room.schemaLocation": "$projectDir/schemas".toString()]
|
||||
}
|
||||
}
|
||||
ndk {
|
||||
abiFilters "armeabi", "armeabi-v7a"
|
||||
}
|
||||
}
|
||||
|
||||
buildTypes {
|
||||
release {
|
||||
minifyEnabled false
|
||||
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
|
||||
}
|
||||
}
|
||||
compileOptions {
|
||||
sourceCompatibility JavaVersion.VERSION_1_8
|
||||
targetCompatibility JavaVersion.VERSION_1_8
|
||||
}
|
||||
|
||||
sourceSets {
|
||||
main {
|
||||
jniLibs.srcDirs = ['libs']
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
dependencies {
|
||||
api fileTree(dir: 'libs', include: ['*.jar', '*.aar'])
|
||||
implementation files('libs/vtm-jts-0.16.0.jar')
|
||||
implementation files('libs/vtm-android-gdx-0.17.0-natives-x86.jar')
|
||||
implementation files('libs/vtm-android-gdx-0.17.0-natives-arm64-v8a.jar')
|
||||
implementation files('libs/vtm-android-gdx-0.17.0-natives-armeabi-v7a.jar')
|
||||
implementation files('libs/vtm-android-gdx-0.17.0-natives-x86_64.jar')
|
||||
|
||||
implementation "androidx.appcompat:appcompat:$appcompatVersion"
|
||||
implementation "com.google.android.material:material:$materialVersion"
|
||||
testImplementation 'junit:junit:4.13.2'
|
||||
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
|
||||
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
|
||||
implementation 'com.yanzhenjie:kalle:0.1.7'
|
||||
|
||||
// VTM依赖
|
||||
implementation "net.sf.kxml:kxml2:2.3.0"
|
||||
implementation "org.slf4j:slf4j-api:1.7.28"
|
||||
implementation "org.mapsforge:vtm:$vtmVersion"
|
||||
implementation "org.mapsforge:vtm-themes:$vtmVersion"
|
||||
implementation "org.mapsforge:vtm-android:$vtmVersion"
|
||||
implementation "org.mapsforge:vtm-android:$vtmVersion:natives-armeabi-v7a"
|
||||
implementation "org.mapsforge:vtm-android:$vtmVersion:natives-arm64-v8a"
|
||||
implementation "org.mapsforge:vtm-android:$vtmVersion:natives-x86"
|
||||
implementation "org.mapsforge:vtm-android:$vtmVersion:natives-x86_64"
|
||||
implementation "org.mapsforge:vtm-http:$vtmVersion"
|
||||
|
||||
implementation "org.mapsforge:vtm-json:$vtmVersion"
|
||||
implementation "org.mapsforge:vtm-gdx:$vtmVersion"
|
||||
implementation "org.mapsforge:vtm-gdx-poi3d:$vtmVersion"
|
||||
implementation "org.mapsforge:vtm-android-gdx:$vtmVersion"
|
||||
implementation "org.mapsforge:vtm-android-mvt:$vtmVersion"
|
||||
implementation "org.mapsforge:vtm-mvt:$vtmVersion"
|
||||
|
||||
implementation "com.google.protobuf:protobuf-java:3.6.1"
|
||||
implementation "com.wdtinc:mapbox-vector-tile:3.1.0"
|
||||
implementation "com.caverock:androidsvg:1.4"
|
||||
implementation "com.badlogicgames.gdx:gdx:1.9.10"
|
||||
implementation "com.badlogicgames.gdx:gdx-backend-android:1.9.10"
|
||||
implementation "com.caverock:androidsvg:1.4"
|
||||
implementation "org.locationtech.jts:jts-core:1.18.2"
|
||||
implementation "com.squareup.okhttp3:okhttp:3.12.13"
|
||||
implementation "com.squareup.okio:okio:1.15.0"
|
||||
|
||||
implementation "com.fasterxml.jackson.core:jackson-annotations:2.9.9"
|
||||
implementation "com.fasterxml.jackson.core:jackson-core:2.9.9"
|
||||
implementation "com.fasterxml.jackson.core:jackson-databind:2.9.9"
|
||||
implementation 'com.tencent.wcdb:room:1.0.8' // 代替 room-runtime,同时也不需要再引用 wcdb-android
|
||||
|
||||
implementation "androidx.sqlite:sqlite:2.0.1"
|
||||
implementation "androidx.room:room-runtime:2.1.0"
|
||||
annotationProcessor "androidx.room:room-compiler:2.1.0"
|
||||
kapt 'android.arch.persistence.room:compiler:1.1.1' // compiler 需要用 room 的
|
||||
kapt "androidx.room:room-compiler:2.1.0"
|
||||
androidTestImplementation "android.arch.persistence.room:testing:1.1.1"
|
||||
implementation "android.arch.lifecycle:extensions:1.1.1"
|
||||
kapt "android.arch.lifecycle:compiler:1.1.1"
|
||||
implementation 'com.tencent.wcdb:wcdb-android:1.0.0'
|
||||
implementation "androidx.core:core-ktx:1.8.0"
|
||||
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
|
||||
|
||||
// 协程核心库
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
|
||||
// 协程Android支持库
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.6.4'
|
||||
// 协程Java8支持库
|
||||
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-jdk8:1.6.4'
|
||||
}
|
||||
0
collect-library/consumer-rules.pro
Normal file
0
collect-library/consumer-rules.pro
Normal file
21
collect-library/proguard-rules.pro
vendored
Normal file
21
collect-library/proguard-rules.pro
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
# Add project specific ProGuard rules here.
|
||||
# You can control the set of applied configuration files using the
|
||||
# proguardFiles setting in build.gradle.
|
||||
#
|
||||
# For more details, see
|
||||
# http://developer.android.com/guide/developing/tools/proguard.html
|
||||
|
||||
# If your project uses WebView with JS, uncomment the following
|
||||
# and specify the fully qualified class name to the JavaScript interface
|
||||
# class:
|
||||
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
|
||||
# public *;
|
||||
#}
|
||||
|
||||
# Uncomment this to preserve the line number information for
|
||||
# debugging stack traces.
|
||||
#-keepattributes SourceFile,LineNumberTable
|
||||
|
||||
# If you keep the line number information, uncomment this to
|
||||
# hide the original source file name.
|
||||
#-renamesourcefileattribute SourceFile
|
||||
Reference in New Issue
Block a user