-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial support for Vision Barcode API
This work is heavily based on work by @lfxgroove Co-Authored-By: lfxgroove <[email protected]>
- Loading branch information
Showing
28 changed files
with
1,233 additions
and
9 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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,35 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2020, microG Project Team | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
apply plugin: 'com.android.library' | ||
apply plugin: 'maven-publish' | ||
apply plugin: 'signing' | ||
|
||
android { | ||
compileSdkVersion androidCompileSdk | ||
buildToolsVersion "$androidBuildVersionTools" | ||
|
||
defaultConfig { | ||
versionName version | ||
minSdkVersion androidMinSdk | ||
targetSdkVersion androidTargetSdk | ||
} | ||
|
||
compileOptions { | ||
sourceCompatibility = 1.8 | ||
targetCompatibility = 1.8 | ||
} | ||
} | ||
|
||
apply from: '../gradle/publish-android.gradle' | ||
|
||
description = 'microG API for play-services-vision' | ||
|
||
dependencies { | ||
api project(':play-services-basement') | ||
api project(':play-services-base-api') | ||
|
||
implementation "androidx.annotation:annotation:$annotationVersion" | ||
} |
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,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- | ||
~ SPDX-FileCopyrightText: 2020, microG Project Team | ||
~ SPDX-License-Identifier: Apache-2.0 | ||
--> | ||
<manifest package="org.microg.gms.vision.api"/> |
8 changes: 8 additions & 0 deletions
8
play-services-vision-api/src/main/aidl/com/google/android/gms/vision/barcode/Barcode.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,8 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2020, microG Project Team | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.google.android.gms.vision.barcode; | ||
|
||
parcelable Barcode; |
8 changes: 8 additions & 0 deletions
8
...in/aidl/com/google/android/gms/vision/barcode/internal/client/BarcodeDetectorOptions.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,8 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2020, microG Project Team | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.google.android.gms.vision.barcode.internal.client; | ||
|
||
parcelable BarcodeDetectorOptions; |
17 changes: 17 additions & 0 deletions
17
...in/aidl/com/google/android/gms/vision/barcode/internal/client/INativeBarcodeDetector.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,17 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2020, microG Project Team | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.google.android.gms.vision.barcode.internal.client; | ||
|
||
import com.google.android.gms.vision.barcode.Barcode; | ||
import com.google.android.gms.vision.barcode.internal.client.BarcodeDetectorOptions; | ||
import com.google.android.gms.vision.internal.FrameMetadataParcel; | ||
import com.google.android.gms.dynamic.IObjectWrapper; | ||
|
||
interface INativeBarcodeDetector { | ||
Barcode[] detectBytes(IObjectWrapper byteBuffer, in FrameMetadataParcel metadata) = 0; | ||
Barcode[] detectBitmap(IObjectWrapper bitmap, in FrameMetadataParcel metadata) = 1; | ||
void close() = 2; | ||
} |
14 changes: 14 additions & 0 deletions
14
.../com/google/android/gms/vision/barcode/internal/client/INativeBarcodeDetectorCreator.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,14 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2020, microG Project Team | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.google.android.gms.vision.barcode.internal.client; | ||
|
||
import com.google.android.gms.vision.barcode.internal.client.BarcodeDetectorOptions; | ||
import com.google.android.gms.vision.barcode.internal.client.INativeBarcodeDetector; | ||
import com.google.android.gms.dynamic.IObjectWrapper; | ||
|
||
interface INativeBarcodeDetectorCreator { | ||
INativeBarcodeDetector create(IObjectWrapper context, in BarcodeDetectorOptions options) = 0; | ||
} |
8 changes: 8 additions & 0 deletions
8
...-vision-api/src/main/aidl/com/google/android/gms/vision/internal/FrameMetadataParcel.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,8 @@ | ||
/* | ||
* SPDX-FileCopyrightText: 2020, microG Project Team | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
|
||
package com.google.android.gms.vision.internal; | ||
|
||
parcelable FrameMetadataParcel; |
Oops, something went wrong.