-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android sdk #11
Merged
Merged
Android sdk #11
Changes from 10 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
001e68c
init
albho b42f517
demo
albho a232e7a
update
albho 61fc61f
libs
albho 116006e
spelling
albho 7a8bff7
post staging
albho efc1e4b
minor
albho 8ab1ed6
add init perf
albho 6d589f7
try without release
albho 4104008
chmod gradlew, node lts
albho b2e43f4
new jni
albho cc9d573
fix
albho a8c5a85
fix perf test threshold
albho File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ body: | |
- C | ||
- Python | ||
- Web | ||
- Android | ||
validations: | ||
required: true | ||
- type: input | ||
|
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,133 @@ | ||
name: Android AppCenter Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'binding/android/FalconTestApp/**' | ||
- '.github/workflows/android-appcenter.yml' | ||
- 'resources/audio_samples/**' | ||
pull_request: | ||
branches: [ main, 'v[0-9]+.[0-9]+' ] | ||
paths: | ||
- 'binding/android/FalconTestApp/**' | ||
- '.github/workflows/android-appcenter.yml' | ||
- 'resources/audio_samples/**' | ||
|
||
defaults: | ||
run: | ||
working-directory: binding/android/FalconTestApp | ||
|
||
jobs: | ||
build: | ||
name: Run Android Tests on AppCenter | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js LTS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: lts/* | ||
|
||
- name: Install AppCenter CLI | ||
run: npm install -g appcenter-cli | ||
|
||
- name: set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
||
- name: Copy test_resources | ||
run: ./copy_test_resources.sh | ||
|
||
- name: Inject AccessKey | ||
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties | ||
|
||
- name: Inject Android keystore variables | ||
run: | | ||
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties | ||
echo keyPassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties | ||
echo keyAlias=picovoice >> local.properties | ||
echo storeFile=../picovoice.jks >> local.properties | ||
|
||
- name: Setup Android keystore file | ||
run: echo "${{secrets.ANDROID_RELEASE_KEYSTORE_FILE_B64}}" | base64 -d > picovoice.jks | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build app | ||
run: ./gradlew assembleDebug | ||
|
||
- name: Build androidTest | ||
run: ./gradlew assembleDebugAndroidTest | ||
|
||
- name: Run tests on AppCenter | ||
run: appcenter test run espresso | ||
--token ${{secrets.APPCENTERAPITOKEN}} | ||
--app "Picovoice/Falcon-Android" | ||
--devices "Picovoice/android-min-max" | ||
--app-path falcon-test-app/build/outputs/apk/debug/falcon-test-app-debug.apk | ||
--test-series "falcon-android" | ||
--locale "en_US" | ||
--build-dir falcon-test-app/build/outputs/apk/androidTest/debug | ||
|
||
build-integ: | ||
name: Run Android Integration Tests on AppCenter | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Node.js LTS | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: lts/* | ||
|
||
- name: Install AppCenter CLI | ||
run: npm install -g appcenter-cli | ||
|
||
- name: set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
||
- name: Copy test_resources | ||
run: ./copy_test_resources.sh | ||
|
||
- name: Inject AccessKey | ||
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties | ||
|
||
- name: Inject Android keystore variables | ||
run: | | ||
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties | ||
echo keyPassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties | ||
echo keyAlias=picovoice >> local.properties | ||
echo storeFile=../picovoice.jks >> local.properties | ||
|
||
- name: Setup Android keystore file | ||
run: echo "${{secrets.ANDROID_RELEASE_KEYSTORE_FILE_B64}}" | base64 -d > picovoice.jks | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build app | ||
run: ./gradlew assembleRelease | ||
|
||
- name: Build androidTest | ||
run: ./gradlew assembleReleaseAndroidTest -DtestBuildType=integ | ||
|
||
- name: Run tests on AppCenter | ||
run: appcenter test run espresso | ||
--token ${{secrets.APPCENTERAPITOKEN}} | ||
--app "Picovoice/Falcon-Android" | ||
--devices "Picovoice/android-min-max" | ||
--app-path falcon-test-app/build/outputs/apk/release/falcon-test-app-release.apk | ||
--test-series "falcon-android" | ||
--locale "en_US" | ||
--build-dir falcon-test-app/build/outputs/apk/androidTest/release |
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 @@ | ||
name: Android Demos | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- '.github/workflows/android-demos.yml' | ||
- 'demo/android/**' | ||
- '!demo/android/FalconDemo/README.md' | ||
pull_request: | ||
branches: [ main, 'v[0-9]+.[0-9]+' ] | ||
paths: | ||
- '.github/workflows/android-demos.yml' | ||
- 'demo/android/**' | ||
- '!demo/android/FalconDemo/README.md' | ||
|
||
jobs: | ||
build-falcon-demo: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: demo/android/FalconDemo | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
||
- name: Build | ||
run: ./gradlew assembleDebug |
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,95 @@ | ||
name: Android Performance | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: [ main ] | ||
paths: | ||
- 'lib/android/**' | ||
- 'lib/common/**' | ||
- '.github/workflows/android-perf.yml' | ||
pull_request: | ||
branches: [ main, 'v[0-9]+.[0-9]+' ] | ||
paths: | ||
- 'lib/android/**' | ||
- 'lib/common/**' | ||
- '.github/workflows/android-perf.yml' | ||
|
||
defaults: | ||
run: | ||
working-directory: binding/android/FalconTestApp | ||
|
||
jobs: | ||
build: | ||
name: Run Android Speed Tests on AppCenter | ||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
device: [single-android, 32bit-android] | ||
include: | ||
- device: single-android | ||
initPerformanceThresholdSec: 1.0 | ||
procPerformanceThresholdSec: 1.0 | ||
- device: 32bit-android | ||
initPerformanceThresholdSec: 1.0 | ||
procPerformanceThresholdSec: 1.0 | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Setup Node.js environment | ||
uses: actions/setup-node@v3 | ||
|
||
- name: Install AppCenter CLI | ||
run: npm install -g appcenter-cli | ||
|
||
- name: set up JDK 11 | ||
uses: actions/setup-java@v3 | ||
with: | ||
java-version: '11' | ||
distribution: 'temurin' | ||
|
||
- name: Copy test_resources | ||
run: ./copy_test_resources.sh | ||
|
||
- name: Inject AccessKey | ||
run: echo pvTestingAccessKey="${{secrets.PV_VALID_ACCESS_KEY}}" >> local.properties | ||
|
||
- name: Inject Android keystore variables | ||
run: | | ||
echo storePassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties | ||
echo keyPassword="${{secrets.ANDROID_RELEASE_KEYSTORE_PASSWORD}}" >> local.properties | ||
echo keyAlias=picovoice >> local.properties | ||
echo storeFile=../picovoice.jks >> local.properties | ||
|
||
- name: Setup Android keystore file | ||
run: echo "${{secrets.ANDROID_RELEASE_KEYSTORE_FILE_B64}}" | base64 -d > picovoice.jks | ||
|
||
- name: Inject Number of Iterations | ||
run: echo numTestIterations="20" >> local.properties | ||
|
||
- name: Inject Init Performance Threshold | ||
run: echo initPerformanceThresholdSec="${{ matrix.initPerformanceThresholdSec }}" >> local.properties | ||
|
||
- name: Inject Proc Performance Threshold | ||
run: echo procPerformanceThresholdSec="${{ matrix.procPerformanceThresholdSec }}" >> local.properties | ||
|
||
- name: Grant execute permission for gradlew | ||
run: chmod +x gradlew | ||
|
||
- name: Build app | ||
run: ./gradlew assembleDebug | ||
|
||
- name: Build androidTest | ||
run: ./gradlew assembleDebugAndroidTest | ||
|
||
- name: Run tests on AppCenter | ||
run: appcenter test run espresso | ||
--token ${{secrets.APPCENTERAPITOKEN}} | ||
--app "Picovoice/Falcon-Android" | ||
--devices "Picovoice/${{ matrix.device }}" | ||
--app-path falcon-test-app/build/outputs/apk/debug/falcon-test-app-debug.apk | ||
--test-series "falcon-android" | ||
--locale "en_US" | ||
--build-dir falcon-test-app/build/outputs/apk/androidTest/debug |
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,12 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/ | ||
.DS_Store | ||
/build | ||
/captures | ||
test_resources | ||
.settings | ||
.classpath | ||
.project | ||
publish-mavencentral.gradle |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then why this one is 1.0? :)