2017-04-05 00:39:18 +00:00
|
|
|
rootProject.name = 'masterpassword'
|
2017-03-06 19:52:52 +00:00
|
|
|
|
2018-07-01 00:53:29 +00:00
|
|
|
def local = new Properties()
|
|
|
|
def localFile = file( 'local.properties' )
|
|
|
|
localFile.exists() && local.load( localFile.newDataInputStream() )
|
2017-09-20 20:52:20 +00:00
|
|
|
|
2018-05-25 17:08:05 +00:00
|
|
|
include 'masterpassword-core'
|
2019-09-23 18:13:03 +00:00
|
|
|
project( ':masterpassword-core' ).projectDir = new File( 'platform-independent/c/core' )
|
2018-05-25 17:08:05 +00:00
|
|
|
|
2017-04-05 00:39:18 +00:00
|
|
|
include 'masterpassword-algorithm'
|
2019-09-23 18:13:03 +00:00
|
|
|
project( ':masterpassword-algorithm' ).projectDir = new File( 'platform-independent/java/algorithm' )
|
2017-03-06 19:52:52 +00:00
|
|
|
|
2017-04-05 00:39:18 +00:00
|
|
|
include 'masterpassword-model'
|
2019-09-23 18:13:03 +00:00
|
|
|
project( ':masterpassword-model' ).projectDir = new File( 'platform-independent/java/model' )
|
2017-03-06 19:52:52 +00:00
|
|
|
|
2017-04-05 00:39:18 +00:00
|
|
|
include 'masterpassword-tests'
|
2019-09-23 18:13:03 +00:00
|
|
|
project( ':masterpassword-tests' ).projectDir = new File( 'platform-independent/java/tests' )
|
2017-03-06 19:52:52 +00:00
|
|
|
|
2017-04-05 00:39:18 +00:00
|
|
|
include 'masterpassword-gui'
|
2019-09-23 18:13:03 +00:00
|
|
|
project( ':masterpassword-gui' ).projectDir = new File( 'platform-independent/java/gui' )
|
2017-03-06 19:52:52 +00:00
|
|
|
|
2018-07-01 00:53:29 +00:00
|
|
|
if (local.containsKey( 'sdk.dir' ) && file( local.getProperty( 'sdk.dir' ) ).exists()) {
|
2017-09-20 20:52:20 +00:00
|
|
|
include 'masterpassword-android'
|
2019-09-23 18:13:03 +00:00
|
|
|
project( ':masterpassword-android' ).projectDir = new File( 'platform-android' )
|
2018-07-01 00:53:29 +00:00
|
|
|
} else {
|
|
|
|
logger.warn( "Skipping masterpassword-android since sdk.dir is not defined in local.properties." )
|
|
|
|
}
|