-
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
Android sdk #11
Changes from all commits
001e68c
b42f517
a232e7a
61fc61f
116006e
7a8bff7
efc1e4b
8ab1ed6
6d589f7
4104008
b2e43f4
cc9d573
a8c5a85
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,6 +25,7 @@ body: | |
- C | ||
- Python | ||
- Web | ||
- Android | ||
validations: | ||
required: true | ||
- type: input | ||
|
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 |
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 |
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: 7.0 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. how did this go from 1 to 7? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it was never 1, I put that arbitrarily, then ran the AppCenter test to see how long it takes and updated it after There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. oh i see |
||
|
||
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 -DtestBuildType=perf | ||
|
||
- 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 |
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 |
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? :)