Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
101 changes: 101 additions & 0 deletions .github/workflows/emoji-search-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
name: Emoji Search Android 14
on:
push:
branches: [feature/emoji-semantic-search]
pull_request:
branches: [preview]
paths: ['symbol_keyboard/**', 'tools/emoji_search/**', '**/*EmojiSearch*', '.github/workflows/emoji-search-ci.yml']
permissions:
contents: read
concurrency:
group: emoji-search-${{ github.head_ref || github.ref_name }}
cancel-in-progress: true
jobs:
search:
runs-on: ubuntu-24.04
timeout-minutes: 90
env:
ZENZ_DEBUG_NATIVE_ABIS: arm64-v8a,x86_64
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
submodules: recursive
persist-credentials: false
- uses: actions/setup-java@cf277c60eb25467037889841efdb72551f06f6c3
with:
distribution: temurin
java-version: '17'
- name: Android build dependencies
run: |
echo "ZENZ_MODEL_CACHE_DIR=$RUNNER_TEMP/zenz-model-cache" >> "$GITHUB_ENV"
"$ANDROID_HOME/cmdline-tools/latest/bin/sdkmanager" "platforms;android-37.0" "build-tools;36.0.0" "ndk;29.0.14206865" "cmake;3.22.1"
- name: Reproduce bundled search data
run: |
python3 -m unittest discover -s tools/emoji_search -p 'test_*.py' -v
java tools/emoji_search/ExportBundledEmoji.java app/src/main/assets/emoji tools/emoji_search/bundled-emoji.tsv
python3 tools/emoji_search/generate.py
git diff --exit-code -- tools/emoji_search/bundled-emoji.tsv tools/emoji_search/manifest.json symbol_keyboard/src/main/assets/emoji_search
- name: Search engine and existing symbol unit tests
id: symbol
continue-on-error: true
run: bash ./gradlew :symbol_keyboard:testDebugUnitTest --no-daemon --console=plain --max-workers=2
- name: Real inventory quality and editor isolation tests
id: app
continue-on-error: true
run: bash ./gradlew :app:testFullStandardDebugUnitTest --tests '*EmojiSearch*' --no-daemon --console=plain --max-workers=2
- name: Enable KVM
run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
- name: Android 14 real IME query, editor, skin, history and rotation
uses: reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d
with:
api-level: 34
profile: pixel_6_pro
cores: 2
ram-size: 3072M
heap-size: 512M
disk-size: 8192M
arch: x86_64
target: google_apis
enable-hw-keyboard: false
disable-spellchecker: true
disable-animations: true
pre-emulator-launch-script: >-
avd_config="${ANDROID_AVD_HOME}/test.avd/config.ini" &&
sed -i '/^[[:space:]]*hw\.keyboard[[:space:]]*=/d' "$avd_config" &&
printf '%s\n' 'hw.keyboard=no' >> "$avd_config"
emulator-options: -no-window -gpu swiftshader_indirect -no-snapshot -noaudio -no-boot-anim
script: bash tools/emoji_search/device-test.sh
- name: Inspect the installed debug testbench APK
if: success() && steps.symbol.outcome == 'success' && steps.app.outcome == 'success'
run: python3 tools/emoji_search/inspect_debug_apk.py
- name: Upload installable debug testbench APK
if: success() && steps.symbol.outcome == 'success' && steps.app.outcome == 'success'
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: emoji-search-debug-testbench
path: emoji-search-debug-artifact/
if-no-files-found: error
compression-level: 0
retention-days: 30
- name: Upload search verification
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
with:
name: emoji-search-verification
path: |
symbol_keyboard/build/test-results/
app/build/test-results/testFullStandardDebugUnitTest/
app/build/reports/emoji-search/
app/build/outputs/androidTest-results/connected/
app/build/reports/androidTests/connected/
emoji-search-device/
retention-days: 30
- name: Require both unit suites
if: always()
env:
SYMBOL_RESULT: ${{ steps.symbol.outcome }}
APP_RESULT: ${{ steps.app.outcome }}
run: test "$SYMBOL_RESULT" = success && test "$APP_RESULT" = success
12 changes: 12 additions & 0 deletions THIRD-PARTY-NOTICES.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,15 @@ verifies archive and asset hashes, derives source-input memberships from the
hash-verified frozen records, and snapshots upstream notices.
`python3 tools/classified-dictionaries/prepare.py --check` verifies the bundled
release assets and notice hashes without network access.

## Japanese emoji search metadata

`symbol_keyboard/src/main/assets/emoji_search/ja.tsv` includes names and keywords
from Unicode CLDR 48.2 (`common/annotations/ja.xml` and
`common/annotationsDerived/ja.xml`, https://github.com/unicode-org/cldr/tree/release-48-2).
These data are redistributed under Unicode-3.0. The complete copyright and
permission notice is shipped in `emoji_search/NOTICE.txt` in every APK and in
`tools/emoji_search/upstream/LICENSE`. Source hashes and regeneration instructions
are in `tools/emoji_search`. Sumire-authored usage concepts use this repository's
MIT license. Existing bundled emoji dictionary readings and Unicode 17.0 category
metadata are reused; no font, artwork, or AI model is added by this feature.
3 changes: 3 additions & 0 deletions app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -1160,6 +1160,9 @@ dependencies {

// JUnit
testImplementation "junit:junit:4.13.2"
// Search probes inspect SymbolAdapter's PagingDataAdapter superclass.
testImplementation 'androidx.paging:paging-runtime-ktx:3.3.6'
androidTestImplementation 'androidx.paging:paging-runtime-ktx:3.3.6'

// Mockito for mocking objects
testImplementation "org.mockito:mockito-core:5.24.0"
Expand Down
Loading
Loading