This repository has been archived by the owner on Sep 9, 2020. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add FusedLocationProvider stuff required for newer Google client libs
- Loading branch information
1 parent
74f959a
commit cfd7c4e
Showing
4 changed files
with
55 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
...i/src/main/aidl/com/google/android/gms/location/internal/FusedLocationProviderResult.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
package com.google.android.gms.location.internal; | ||
|
||
parcelable FusedLocationProviderResult; |
7 changes: 7 additions & 0 deletions
7
...rc/main/aidl/com/google/android/gms/location/internal/IFusedLocationProviderCallback.aidl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package com.google.android.gms.location.internal; | ||
|
||
import com.google.android.gms.location.internal.FusedLocationProviderResult; | ||
|
||
interface IFusedLocationProviderCallback { | ||
void onFusedLocationProviderResult(in FusedLocationProviderResult result) = 0; | ||
} |
40 changes: 40 additions & 0 deletions
40
...i/src/main/java/com/google/android/gms/location/internal/FusedLocationProviderResult.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
/* | ||
* Copyright 2013-2015 microG Project Team | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package com.google.android.gms.location.internal; | ||
|
||
import com.google.android.gms.common.api.Status; | ||
|
||
import org.microg.safeparcel.AutoSafeParcelable; | ||
import org.microg.safeparcel.SafeParceled; | ||
|
||
public class FusedLocationProviderResult extends AutoSafeParcelable { | ||
public static final FusedLocationProviderResult SUCCESS = FusedLocationProviderResult.create(Status.SUCCESS); | ||
|
||
@SafeParceled(1000) | ||
private int versionCode = 1; | ||
|
||
@SafeParceled(1) | ||
public Status status; | ||
|
||
public static FusedLocationProviderResult create(Status status) { | ||
FusedLocationProviderResult result = new FusedLocationProviderResult(); | ||
result.status = status; | ||
return result; | ||
} | ||
|
||
public static final Creator<FusedLocationProviderResult> CREATOR = new AutoCreator<FusedLocationProviderResult>(FusedLocationProviderResult.class); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters