forked from openboard-team/openboard
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
378 changed files
with
1,615 additions
and
1,555 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: Android CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- 'develop' | ||
- 'release/*' | ||
|
||
jobs: | ||
apk: | ||
name: Generate APK | ||
runs-on: ubuntu-18.04 | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
|
||
- name: Update Run Number in properties | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: gradle.properties | ||
property: RUN_NUMBER | ||
value: ${{ github.run_number }} | ||
|
||
- name: set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
|
||
- name: Make .android folder | ||
run: mkdir /home/runner/.android | ||
|
||
- name: Create debug keystore | ||
run: | | ||
echo "${{ secrets.CI_KEYSTORE }}" > debug.keystore.asc | ||
gpg -d --passphrase "${{ secrets.CI_KEYSTORE_DECRYPT }}" --batch debug.keystore.asc > /home/runner/.android/debug.keystore | ||
- name: Build debug APK | ||
run: bash ./gradlew assembleCi --stacktrace | ||
|
||
- name: set apk name env | ||
run: echo ::set-env name=APK_NAME::$(basename app/build/outputs/apk/ci/*.apk .apk) | ||
|
||
- name: Upload APK | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
name: ${{ env.APK_NAME }} | ||
path: app/build/outputs/apk/ci/${{ env.APK_NAME }}.apk | ||
|
||
- name: Upload to Discord | ||
uses: sinshutu/[email protected] | ||
env: | ||
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} | ||
with: | ||
args: app/build/outputs/apk/ci/${{ env.APK_NAME }}.apk |
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 |
---|---|---|
@@ -1,52 +1,11 @@ | ||
# OpenBoard | ||
<a href='https://f-droid.org/packages/org.dslul.openboard.inputmethod.latin'><img src='https://fdroid.gitlab.io/artwork/badge/get-it-on.png' alt='Get it on F-Droid' height='80'></a> | ||
<a href='https://play.google.com/store/apps/details?id=org.dslul.openboard.inputmethod.latin&pcampaignid=pcampaignidMKT-Other-global-all-co-prtnr-py-PartBadge-Mar2515-1'><img alt='Get it on Google Play' src='https://play.google.com/intl/en_us/badges/static/images/badges/en_badge_web_generic.png' height='80px'/></a> | ||
100% FOSS keyboard, forked from [OpenBoard](https://github.com/dslul/openboard), which is forked from the AOSP keyboard. | ||
|
||
![](images/feature.png) | ||
A huge thank you to [@dslul](https://github.com/dslul), who made this project possible! 😁 Otherwise, | ||
I would have had to spend a long time figuring out how to make the AOSP keyboard compile out of tree and make | ||
dictionaries work. | ||
|
||
100% FOSS keyboard, based on AOSP. | ||
## Contributing | ||
Contribute to the [OpenBoard](https://github.com/dslul/openboard) project if it isn't a fix for the Key Mapper integration. | ||
|
||
## Permissions | ||
* **Read Contacts**: Used to add your contact list to suggestions. Disabled by default. | ||
|
||
## Contribute | ||
|
||
### How to create a dictionary | ||
You can use [this tool](https://github.com/remi0s/aosp-dictionary-tools) to create a dictionary. You need a wordlist, as described [here](https://github.com/dslul/openboard/blob/master/dictionaries/sample.combined). The output .dict file must be put in [res/raw](https://github.com/dslul/openboard/tree/master/app/src/main/res/raw). | ||
|
||
### APK Development | ||
|
||
#### Linux | ||
|
||
Install java: | ||
```sh | ||
sudo pacman -S jdk8-openjdk jre8-openjdk jre8-openjdk-headless | ||
``` | ||
|
||
Install Android SDK: | ||
```sh | ||
sudo pacman -S snapd | ||
sudo snap install androidsdk | ||
``` | ||
|
||
Configure your SDK location in your `~/.bash_profile` or `~/.bashrc`: | ||
```bash | ||
export ANDROID_SDK_ROOT=~/snap/androidsdk/current/AndroidSDK/ | ||
``` | ||
|
||
Install the platform tools for your target android version: | ||
```sh | ||
androidsdk "platform-tools" "platforms;android-28" | ||
``` | ||
|
||
Compile the project. This will install all dependencies, make sure to accept | ||
licenses when prompted. | ||
|
||
```sh | ||
./gradlew assembleDebug | ||
``` | ||
|
||
Connect your phone and install the debug APK | ||
```sh | ||
adb install ./app/build/outputs/apk/debug/app-debug.apk | ||
``` | ||
I will make any bug fixes or add features that are useful to people who don't use Key Mapper pull requests in | ||
OpenBoard. |
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
6 changes: 3 additions & 3 deletions
6
...essibility/AccessibilityLongPressTimer.kt → ...essibility/AccessibilityLongPressTimer.kt
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
14 changes: 7 additions & 7 deletions
14
...accessibility/KeyCodeDescriptionMapper.kt → ...accessibility/KeyCodeDescriptionMapper.kt
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
10 changes: 5 additions & 5 deletions
10
...lity/MainKeyboardAccessibilityDelegate.kt → ...lity/MainKeyboardAccessibilityDelegate.kt
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
8 changes: 4 additions & 4 deletions
8
.../MoreKeysKeyboardAccessibilityDelegate.kt → .../MoreKeysKeyboardAccessibilityDelegate.kt
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
2 changes: 1 addition & 1 deletion
2
...ethod/annotations/ExternallyReferenced.kt → ...ethod/annotations/ExternallyReferenced.kt
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
2 changes: 1 addition & 1 deletion
2
...inputmethod/annotations/UsedForTesting.kt → ...inputmethod/annotations/UsedForTesting.kt
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
2 changes: 1 addition & 1 deletion
2
...inputmethod/compat/AppWorkaroundsUtils.kt → ...inputmethod/compat/AppWorkaroundsUtils.kt
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
2 changes: 1 addition & 1 deletion
2
...enboard/inputmethod/compat/CompatUtils.kt → ...ymapper/inputmethod/compat/CompatUtils.kt
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
2 changes: 1 addition & 1 deletion
2
...d/compat/CursorAnchorInfoCompatWrapper.kt → ...d/compat/CursorAnchorInfoCompatWrapper.kt
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
2 changes: 1 addition & 1 deletion
2
...putmethod/compat/EditorInfoCompatUtils.kt → ...putmethod/compat/EditorInfoCompatUtils.kt
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
Oops, something went wrong.