Merge pull request #315 from afischerdev/migrate-to-android11
Migrate to gradle part 3
This commit is contained in:
commit
e8970c8626
6 changed files with 16 additions and 7 deletions
|
@ -46,10 +46,10 @@ A full documentation on how to set this up is available at
|
|||
|
||||
### Build and Install
|
||||
|
||||
To compile BRouter (including the BRouter Android app), add a file 'local.properties' to main folder with your Android path (Windows sample)
|
||||
To compile BRouter including the BRouter Android app, add a file 'local.properties' to main folder with your Android path
|
||||
|
||||
```
|
||||
sdk.dir=D\:\\Android\\android-sdk
|
||||
sdk.dir=<your/android/sdk/path>
|
||||
```
|
||||
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ plugins {
|
|||
id 'application'
|
||||
}
|
||||
|
||||
version = '1.6.1'
|
||||
|
||||
application {
|
||||
// Gradles 'application' plugin requires one main class; since we have multiple ones, just specify
|
||||
|
|
|
@ -11,7 +11,7 @@ android {
|
|||
targetSdkVersion 30
|
||||
|
||||
versionCode 41
|
||||
versionName "1.6.1"
|
||||
versionName version
|
||||
|
||||
setProperty("archivesBaseName","BRouterApp." + defaultConfig.versionName)
|
||||
|
||||
|
|
|
@ -2,7 +2,6 @@ plugins {
|
|||
id 'application'
|
||||
}
|
||||
|
||||
version = '1.6.1'
|
||||
|
||||
application {
|
||||
mainClass.set('btools.server.BRouter')
|
||||
|
|
|
@ -1,7 +1,11 @@
|
|||
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
buildscript {
|
||||
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
google()
|
||||
|
@ -16,6 +20,8 @@ buildscript {
|
|||
}
|
||||
|
||||
allprojects {
|
||||
version "1.6.1"
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
google()
|
||||
|
|
|
@ -1,2 +1,7 @@
|
|||
rootProject.name='brouter'
|
||||
include ':brouter-routing-app', ':brouter-mapaccess', ':brouter-core', ':brouter-util', ':brouter-expressions', ':brouter-codec', ':brouter-map-creator', ':brouter-server'
|
||||
if (file('local.properties').exists()) {
|
||||
include ':brouter-routing-app'
|
||||
} else {
|
||||
println "Note: To include Android app add 'local.properties' with 'sdk.dir=...' "
|
||||
}
|
||||
include ':brouter-mapaccess', ':brouter-core', ':brouter-util', ':brouter-expressions', ':brouter-codec', ':brouter-map-creator', ':brouter-server'
|
Loading…
Reference in a new issue