136 lines
4.5 KiB
Groovy
136 lines
4.5 KiB
Groovy
/*
|
|
* SPDX-FileCopyrightText: 2013, microG Project Team
|
|
* SPDX-License-Identifier: Apache-2.0
|
|
*/
|
|
|
|
buildscript {
|
|
<<<<<<< HEAD
|
|
ext.kotlinVersion = '1.8.20'
|
|
ext.coroutineVersion = '1.6.4'
|
|
|
|
ext.annotationVersion = '1.6.0'
|
|
ext.appcompatVersion = '1.6.1'
|
|
ext.coreVersion = '1.9.0'
|
|
ext.collectionVersion = '1.3.0-dev01'
|
|
ext.fragmentVersion = '1.5.5'
|
|
ext.lifecycleVersion = '2.5.1'
|
|
ext.materialVersion = '1.8.0'
|
|
ext.navigationVersion = '2.5.3'
|
|
ext.preferenceVersion = '1.2.0'
|
|
ext.webkitVersion = '1.6.0'
|
|
=======
|
|
ext.cronetVersion = '102.5005.125'
|
|
ext.wearableVersion = '0.1.1'
|
|
|
|
ext.kotlinVersion = '1.9.22'
|
|
ext.coroutineVersion = '1.7.3'
|
|
|
|
ext.annotationVersion = '1.7.1'
|
|
ext.appcompatVersion = '1.6.1'
|
|
ext.biometricVersion = '1.1.0'
|
|
ext.coreVersion = '1.12.0'
|
|
ext.fragmentVersion = '1.6.2'
|
|
ext.lifecycleVersion = '2.7.0'
|
|
ext.loaderVersion = '1.1.0'
|
|
ext.materialVersion = '1.11.0'
|
|
ext.mediarouterVersion = '1.6.0'
|
|
ext.multidexVersion = '2.0.1'
|
|
ext.navigationVersion = '2.7.7'
|
|
ext.preferenceVersion = '1.2.0'
|
|
ext.recyclerviewVersion = '1.3.2'
|
|
ext.webkitVersion = '1.10.0'
|
|
>>>>>>> 48e0b00a (Update build tools and dependencies)
|
|
|
|
ext.circleimageviewVersion = '3.1.0'
|
|
ext.volleyVersion = '1.2.1'
|
|
ext.wireVersion = '4.5.5'
|
|
|
|
<<<<<<< HEAD
|
|
|
|
ext.androidBuildGradleVersion = '8.0.0'
|
|
ext.androidBuildVersionTools = '33.0.2'
|
|
|
|
ext.androidMinSdk = 23
|
|
ext.androidTargetSdk = 30
|
|
ext.androidCompileSdk = 33
|
|
=======
|
|
ext.androidBuildGradleVersion = '8.2.2'
|
|
|
|
ext.androidBuildVersionTools = '34.0.0'
|
|
|
|
ext.androidMinSdk = 19
|
|
ext.androidTargetSdk = 29
|
|
ext.androidCompileSdk = 34
|
|
>>>>>>> 48e0b00a (Update build tools and dependencies)
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
|
|
dependencies {
|
|
classpath 'com.android.tools.build:gradle:8.0.2'
|
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
|
|
classpath "com.squareup.wire:wire-gradle-plugin:$wireVersion"
|
|
}
|
|
}
|
|
|
|
|
|
<<<<<<< HEAD
|
|
def gmsVersion = "24.10.17"
|
|
=======
|
|
def gmsVersion = "24.09.13"
|
|
>>>>>>> ef113281 (Bump GMS version to 24.09.13 (#2191))
|
|
def gmsVersionCode = Integer.parseInt(gmsVersion.replaceAll('\\.', ''))
|
|
<<<<<<< HEAD
|
|
|
|
def ourVersionBase = "0.3.0"
|
|
|
|
def ourVersionCode = gmsVersionCode * 1000
|
|
def ourVersionName = "$ourVersionBase.$gmsVersionCode"
|
|
=======
|
|
def vendingVersion = "40.2.26"
|
|
def vendingVersionCode = Integer.parseInt(vendingVersion.replaceAll('\\.', ''))
|
|
def gitVersionBase = execResult('git', 'describe', '--tags', '--abbrev=0', '--match=v[0-9]*').trim().substring(1)
|
|
def gitCommitCount = Integer.parseInt(execResult('git', 'rev-list', '--count', "v$gitVersionBase..HEAD").trim())
|
|
def gitCommitId = execResult('git', 'show-ref', '--abbrev=7', '--head', 'HEAD').trim().split(' ')[0]
|
|
def gitDirty = false
|
|
execResult('git', 'status', '--porcelain').lines().each { stat ->
|
|
def status = stat.substring(0,2)
|
|
def file = stat.substring(3)
|
|
if (status == '??') {
|
|
if (subprojects.any { p -> file.startsWith(p.name + '/') }) {
|
|
logger.lifecycle('Dirty file: {} (untracked)', file)
|
|
gitDirty = true
|
|
} else {
|
|
logger.info('New file outside module: {} (ignored for dirty check)', file)
|
|
}
|
|
} else {
|
|
logger.lifecycle('Dirty file: {} (changed)', file)
|
|
gitDirty = true
|
|
}
|
|
}
|
|
def ourVersionBase = gitVersionBase.substring(0, gitVersionBase.lastIndexOf('.'))
|
|
def ourVersionMinor = Integer.parseInt(ourVersionBase.substring(ourVersionBase.lastIndexOf('.') + 1))
|
|
def ourGmsVersionCode = gmsVersionCode * 1000 + ourVersionMinor * 2 + (gitCommitCount > 0 || gitDirty ? 1 : 0)
|
|
def ourGmsVersionName = "$ourVersionBase.$gmsVersionCode" + (gitCommitCount > 0 && !gitDirty ? "-$gitCommitCount" : "") + (gitDirty ? "-dirty" : "") + (gitCommitCount > 0 && !gitDirty ? " ($gitCommitId)" : "")
|
|
def ourVendingVersionCode = 80000000 + vendingVersionCode * 100 + ourVersionMinor * 2 + (gitCommitCount > 0 || gitDirty ? 1 : 0)
|
|
def ourVendingVersionName = "$ourVersionBase.$vendingVersionCode" + (gitCommitCount > 0 && !gitDirty ? "-$gitCommitCount" : "") + (gitDirty ? "-dirty" : "") + (gitCommitCount > 0 && !gitDirty ? " ($gitCommitId)" : "")
|
|
logger.lifecycle('Starting build for GMS version {} ({})...', ourGmsVersionName, ourGmsVersionCode)
|
|
>>>>>>> 33109df6 (Bump Companion version)
|
|
|
|
allprojects {
|
|
apply plugin: 'idea'
|
|
|
|
group = 'org.microg.gms'
|
|
version = ourVersionName
|
|
ext.appVersionCode = ourVersionCode
|
|
ext.isReleaseVersion = false
|
|
}
|
|
|
|
subprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
}
|