Skip to content

Commit 5991207

Browse files
committed
Implement play-services-constellation
1 parent e19a998 commit 5991207

49 files changed

Lines changed: 5108 additions & 3 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="utf-8"?><!--
2+
~ Copyright (C) 2013-2017 microG Project Team
3+
~
4+
~ Licensed under the Apache License, Version 2.0 (the "License");
5+
~ you may not use this file except in compliance with the License.
6+
~ You may obtain a copy of the License at
7+
~
8+
~ http://www.apache.org/licenses/LICENSE-2.0
9+
~
10+
~ Unless required by applicable law or agreed to in writing, software
11+
~ distributed under the License is distributed on an "AS IS" BASIS,
12+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
~ See the License for the specific language governing permissions and
14+
~ limitations under the License.
15+
-->
16+
17+
<manifest />
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package com.google.android.gms.constellation;
2+
3+
parcelable GetIidTokenRequest;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package com.google.android.gms.constellation;
2+
3+
parcelable GetIidTokenResponse;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package com.google.android.gms.constellation;
2+
3+
parcelable GetPnvCapabilitiesRequest;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package com.google.android.gms.constellation;
2+
3+
parcelable GetPnvCapabilitiesResponse;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package com.google.android.gms.constellation;
2+
3+
parcelable PhoneNumberInfo;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package com.google.android.gms.constellation;
2+
3+
parcelable VerifyPhoneNumberRequest;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package com.google.android.gms.constellation;
2+
3+
parcelable VerifyPhoneNumberResponse;
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
package com.google.android.gms.constellation.internal;
2+
3+
import com.google.android.gms.common.api.ApiMetadata;
4+
import com.google.android.gms.constellation.internal.IConstellationCallbacks;
5+
import com.google.android.gms.constellation.GetIidTokenRequest;
6+
import com.google.android.gms.constellation.GetPnvCapabilitiesRequest;
7+
import com.google.android.gms.constellation.VerifyPhoneNumberRequest;
8+
9+
interface IConstellationApiService {
10+
void verifyPhoneNumberV1(
11+
IConstellationCallbacks cb,
12+
in Bundle bundle,
13+
in ApiMetadata apiMetadata
14+
);
15+
16+
void verifyPhoneNumberSingleUse(
17+
IConstellationCallbacks cb,
18+
in Bundle bundle,
19+
in ApiMetadata apiMetadata
20+
);
21+
22+
void verifyPhoneNumber(
23+
IConstellationCallbacks cb,
24+
in VerifyPhoneNumberRequest request,
25+
in ApiMetadata apiMetadata
26+
);
27+
28+
void getIidToken(
29+
IConstellationCallbacks cb,
30+
in GetIidTokenRequest request,
31+
in ApiMetadata apiMetadata
32+
);
33+
34+
void getPnvCapabilities(
35+
IConstellationCallbacks cb,
36+
in GetPnvCapabilitiesRequest request,
37+
in ApiMetadata apiMetadata
38+
);
39+
}

0 commit comments

Comments
 (0)