|
| 1 | +/* |
| 2 | + * SPDX-FileCopyrightText: 2026, microG Project Team |
| 3 | + * SPDX-License-Identifier: Apache-2.0 |
| 4 | + */ |
| 5 | + |
| 6 | +apply plugin: 'com.android.library' |
| 7 | +apply plugin: 'maven-publish' |
| 8 | +apply plugin: 'kotlin-android' |
| 9 | +apply plugin: 'kotlin-parcelize' |
| 10 | +apply plugin: 'kotlin-kapt' |
| 11 | +apply plugin: 'signing' |
| 12 | + |
| 13 | +buildscript { |
| 14 | + repositories { |
| 15 | + mavenCentral() |
| 16 | + } |
| 17 | + dependencies { |
| 18 | + classpath 'com.squareup.wire:wire-gradle-plugin:4.9.3' |
| 19 | + } |
| 20 | +} |
| 21 | +apply plugin: 'com.squareup.wire' |
| 22 | + |
| 23 | +android { |
| 24 | + namespace "org.microg.gms.constellation" |
| 25 | + |
| 26 | + compileSdkVersion androidCompileSdk |
| 27 | + buildToolsVersion "$androidBuildVersionTools" |
| 28 | + |
| 29 | + buildFeatures { |
| 30 | + aidl = true |
| 31 | + } |
| 32 | + |
| 33 | + defaultConfig { |
| 34 | + versionName version |
| 35 | + minSdkVersion androidMinSdk |
| 36 | + targetSdkVersion androidTargetSdk |
| 37 | + } |
| 38 | + |
| 39 | + compileOptions { |
| 40 | + sourceCompatibility JavaVersion.VERSION_1_8 |
| 41 | + targetCompatibility JavaVersion.VERSION_1_8 |
| 42 | + } |
| 43 | + |
| 44 | + kotlinOptions { |
| 45 | + jvmTarget = 1.8 |
| 46 | + } |
| 47 | +} |
| 48 | + |
| 49 | +wire { |
| 50 | + kotlin { |
| 51 | + rpcRole = 'client' |
| 52 | + rpcCallStyle = 'suspending' |
| 53 | + } |
| 54 | +} |
| 55 | + |
| 56 | +apply from: '../gradle/publish-android.gradle' |
| 57 | + |
| 58 | +description = 'microG service implementation for play-services-constellation' |
| 59 | + |
| 60 | +dependencies { |
| 61 | + implementation project(':play-services-base-core') |
| 62 | + implementation project(':play-services-iid') |
| 63 | + implementation project(':play-services-auth-base') |
| 64 | + |
| 65 | + implementation project(':play-services-droidguard') |
| 66 | + implementation project(':play-services-tasks-ktx') |
| 67 | + |
| 68 | + api 'com.squareup.wire:wire-runtime:4.9.3' |
| 69 | + api 'com.squareup.wire:wire-grpc-client:4.9.3' |
| 70 | + api 'com.squareup.okhttp3:okhttp:4.12.0' |
| 71 | + |
| 72 | + kapt project(":safe-parcel-processor") |
| 73 | +} |
0 commit comments