<commit_before># Chrome Apps Developer Tool for Mobile

This repository contains scripts and assets that will remix the
[Apache Cordova project](https://cordova.apache.org)'s
[App Harness](https://git-wip-us.apache.org/repos/asf/cordova-app-harness.git)
so that it can run Chrome Apps on mobile devices. This is based on the plugins
from the [cca](https://github.com/MobileChomeApps/mobile-chrome-apps) toolkit.

## Use a Pre-built APK
Pre-built APKs are available [here](https://github.com/MobileChromeApps/harness/releases).

## Building From Source
Use `makeharness.sh` to create a project. Example invocation:

    PLATFORMS="android ios" ./makeharness.sh ../../cordova/cordova-app-harness

For more info:

    ./makeharness.sh --help

### Extra Steps

- Replace the title in index.html to "Chrome ADT"
- Replace the default Cordova icons with your desired icons.
- Build the app in release mode to get a signed APK file.

## TODO

- Add icons
<commit_msg>Update release steps in README.md<commit_after># Chrome Apps Developer Tool for Mobile

This repository contains scripts and assets that will remix the
[Apache Cordova project](https://cordova.apache.org)'s
[App Harness](https://git-wip-us.apache.org/repos/asf/cordova-app-harness.git)
so that it can run Chrome Apps on mobile devices. This is based on the plugins
from the [cca](https://github.com/MobileChomeApps/mobile-chrome-apps) toolkit.

## Use a Pre-built APK
Pre-built APKs are available [here](https://github.com/MobileChromeApps/harness/releases).

## Building From Source
Use `makeharness.sh` to create a project. Example invocation:

    PLATFORMS="android ios" ./makeharness.sh ../../cordova/cordova-app-harness

For more info:

    ./makeharness.sh --help

### Extra Steps

- Replace the default Cordova icons with your desired icons.
  - `rm platforms/android/res/drawable-*/icon.png`
  - `cp ../../mobile-chrome-apps/templates/default-app/assets/icons/icon128.png platforms/android/res/drawable/icon.png`
- Update the version in `config.xml`
  - `vim config.xml`
- Update versionCode in `platforms/android/AndroidManifest.xml`
  - `vim platforms/android/AndroidManifest.xml`
- Replace the title in index.html to "Chrome ADT vX.X.X"
  - `vim www/cdvah/index.html`
- Build the app in release mode to get a signed APK file.
  - `cordova build android --release`

## TODO

- Add custom icon

{'fraction_non_alphanumeric': 0.11548223350253807, 'fraction_numerical': 0.0012690355329949238, 'mean_word_length': 3.89648033126294, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 1, 'xml': 4}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5571865', 'n_tokens_mistral': 771, 'n_tokens_neox': 731, 'n_words': 240}