0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-20 12:02:16 +02:00
Commit Graph

350 Commits

Author SHA1 Message Date
Mike Hardy
79d6e4254e Handle 3-letter language roots correctly
There was an expectation in the importer script that all
language codes had a 2-letter root, but many valid codes that Android
accepts have 3-letter codes *and* collide with the 2-letter codes (fi vs fil)

There was the expectation in the LanguageUtil object that languages
all had 2-letter roots as well, it was altered to split on '-' instead
of on specific character indices, with associated unit testing to verify

Additionally, the 'yu' (Cantonese) custom code needed to map to 'yue'
2020-06-01 14:00:39 -05:00
Mike Hardy
8fb4f6d222
Add note on broken string finder that it is macOS dependent
Not sure exactly why it is mac dependent but it seems to be now,
so I made the one search that was failing not be a hard-fail and
gave it a notice for any developers using it to scan
2020-05-20 11:39:56 -05:00
Mike Hardy
74248a59dc Disable non-functional locale error finding grep
This was working recently, not sure what changed - might just be
an Ubuntu vs macOS difference. Not workin on Ubuntu right now
2020-05-19 09:34:46 -05:00
Mike Hardy
a045fdae74 Add all locales currently targeted by crowdin
Not sure why I didn't notice before but we have a lot more languages
enabled than we were importing and allowing.

No not all of them are translated but they were all user requests, and
if we don't put them in the UI, why would a translator bother?

This was primarily in response to a user request for Sorani (Kurdish),
which is now enabled (locale code ckb)
2020-05-19 09:34:46 -05:00
Mike Hardy
b42bf2bb2c
Remove testing exit from release tool 2020-05-18 10:23:47 -05:00
Mike Hardy
b38e10089e
Note the 30 minute crowdin i18n zip build delay 2020-05-18 10:10:02 -05:00
Mike Hardy
4b088ebd4c Render the official changelog for public releases
This enforces that the public changelog is up to date as it
becomes the source for the changelog shipped with the app

Checks that all the necessary release tools exist and that the changelog
actually contains the information for the current version too

Fixes #6197
2020-05-16 13:01:28 -05:00
Mike Hardy
75df489d1e Call invalid-string finder when we update localizations
Also eliminate a false-positive in the theme file
2020-05-15 15:21:39 -05:00
Mike Hardy
398b832e48 Update broken translation string finder for current code
This still would not have detected #6160 but it will get quite a few
bad translations (it found a couple already, fixed in crowdin for next
download)
2020-05-15 15:21:39 -05:00
Mike Hardy
7ac8ab1beb De-lint and add resilience to APK release tools 2020-05-15 15:21:39 -05:00
Mike Hardy
751c643976 Add missing languages to crowdin manage script 2020-03-30 14:50:49 -05:00
Mike Hardy
ca84b6207d Update localization script with new in-app location of language codes 2020-03-30 14:50:49 -05:00
Mike Hardy
087ae32d55 Add Norwegian Nynorsk and Tatar language codes per user request 2020-03-30 14:50:49 -05:00
Mike Hardy
3dfe576dd1 Alphabetize existing language codes 2020-03-30 14:50:49 -05:00
Mike Hardy
d83a9dc6d3 Optimize CI w/test split; Verify osx/win work 2019-11-04 00:38:02 -05:00
Joshua Ford
5c6d293ebf CI: Use emulator acceleration
To take advantage of some of the new nested virtualization capabilities
of some of the images in Travis, you must be using the newest LTS
release of Ubuntu, 18.04 Bionic Beaver.

However, the Travis image of Bionic does not include support for JDK 8,
which we need to utilize the Android SDK manager. To circumvent this
issue, we change from the "android" language type to "generic", and take
care of both the JDK and the Android SDK ourselves.

As such, this commit makes the following changes:
* Switch `dist` from `trusty` to `bionic`
* Switch `language` from `android` to `generic`
* Enable the use of `sudo`
* Install libpulse0 for emulator audio
* Set up KVM inside the allocated Travis image
* Use Gravis repository to download and install Java
* Version android-wait-for-emulator in our repo
* Download and install the Android SDK ourselves
* Switch to `emulator-headless` for the x86 emulators

Since we're free to switch Java versions as we please, we can finally
support JDK 11 by switching to it after starting our emulator.
2019-11-01 12:01:22 -05:00
Arthur Milchior
9224ff005b Use resources instead of string in standard templates.
In Anki, standard models are localized. More precisely, there are
translations of field names, card name and model names. I ported this
to ankidroid.
2019-10-25 19:19:04 +09:00
Timothy Rae
aa94e209f2 Don't run gitflow-integrate script unless we're on correct branch 2019-10-22 07:11:56 +09:00
Joshua Ford
dfeae3e053 Move Codacy upload into a shell script 2019-06-06 16:17:17 -05:00
Mike Hardy
05bcefdf01 Remove adb restart
It was only needed because I accidentally had multiple adb's on my local system
and they conflicted with one another. In a correctly installed system it is unneeded
2019-02-20 09:45:41 +09:00
Timothy Rae
adf3edeac7 Fix python script shebang 2019-02-17 23:22:55 +09:00
Mike Hardy
597edc2f71 Allow two more parallel build names (5 total now) 2018-12-21 01:10:01 -05:00
Mike Hardy
dd4e7aa52c Emulator tooling to allow for robolectric tests 2018-09-20 23:12:05 +09:00
Mike Hardy
1cf2cbea61 Allow for start to be instantaneous (for manual runs) 2018-09-14 13:31:28 -05:00
Mike Hardy
f00fc2cc20 This file moved to quality sub-dir 2018-09-14 11:55:05 -05:00
Mike Hardy
d3261602c8 Fix parallel release APK location, and tag arg 2018-09-14 11:55:05 -05:00
Mike Hardy
34255cd37e
Add emulator fleet management, local codacy check 2018-09-13 00:46:17 -05:00
Mike Hardy
d8d095b4fa Add local tool for codacy analysis pre-commit 2018-09-10 08:57:05 +09:00
Timothy Rae
db0e1c6983 Update url for crowdin zip file
The old url is failing now, I guess they changed the path
2018-07-29 16:35:04 +09:00
Timothy Rae
6fed42e611 Update manage-crowdin script to python3
pycurl isn't that easy to install for python2 on modern linux systems
2018-07-05 00:18:31 +09:00
Timothy Rae
752e9afb8a Add support for Esperanto 2018-06-26 08:57:28 +09:00
Timothy Rae
01785c2ebf Fix apk location in build script
It's changed in the new gradle
2018-05-11 07:46:39 +09:00
Mike Hardy
063b1de017 in-place sed editing not cross-platform, use perl, fixes #4777 2018-01-29 12:59:14 +09:00
Mike Hardy
e6eb737a40 Add tool to build typical parallel packages
Uses the names used for the previous parallel builds so should
generate 3 new builds that should work as upgrades for the old parallel builds
2017-12-19 12:01:53 +09:00
Mike Hardy
70a8550d8d Alter parallel rename sed to skip backup files
If you use "sed -i -e" it creates backup files with extension '-e' for every edit
This was breaking the build (on MacOS 10.13 + AndroidStudio at least)
I changed it to "-i ''" (zero-length backup extension) so no backup was created
2017-12-19 12:01:53 +09:00
Mike Hardy
4217076d81 updated tool to correctly scrape current format of crowdin.com project translations status 2017-12-15 15:05:58 +09:00
Timothy Rae
d8ba8aacb5 Update gradle-play-publisher 2016-10-23 17:57:36 +09:00
Alexander Grueneberg
30d129c516 Enable fullscreen support. 2015-11-30 12:00:21 -05:00
Alexander Grueneberg
a07da82631 Improve SCRIPT_PATH detection.
Kudos http://stackoverflow.com/a/246128
2015-11-30 12:00:19 -05:00
Alexander Grueneberg
c0c7d400f5 Check for conversion script and apk file separately. 2015-11-30 12:00:17 -05:00
Alexander Grueneberg
95f3b1c7c6 Check if jq exists. 2015-11-30 12:00:09 -05:00
Alexander Grueneberg
3a48cbb295 Remove temporary apk_to_crx output. 2015-11-30 12:00:09 -05:00
Alexander Grueneberg
b55eaa583a apk_to_crx does not support Python 3 anymore. 2015-11-30 12:00:07 -05:00
Alexander Grueneberg
b22a0d6e32 Remove debug scripts in favor of ARC Welder. 2015-11-30 11:59:52 -05:00
Timothy Rae
6e8d0024a1 Add script to update screenshots on Google Play
remove some old files
2015-11-29 23:57:03 +09:00
Timothy Rae
a7cd31ee03 Updated strings from Crowdin 2015-11-27 14:09:23 +09:00
Timothy Rae
f529fbf65d Add parallel install script to release-2.5 branch
@branch-specific
2015-11-19 13:46:51 +09:00
timrae
d3d827927f use the play publishing task in the build script 2015-10-31 12:46:23 +09:00
timrae
9f35b4b4fc Add model manager strings to crowdin script 2015-10-03 03:45:37 +09:00
js
72d200a7d4 Material design version of account setup
Register and login pages placed in scrollviews to accomodate landscape
  and small screens.
Also fixed state transition issues, allowing back/cancel to transition
  rom account setup to login

Not done:
- Dialogs
- home/up button in action bar not implemented
2015-04-12 19:56:05 +09:00
timrae
25d405b2cd Fix crowdin script indentationj 2015-04-11 22:24:59 +09:00
timrae
5098ae502c Run crowdin master script from root dir
By default look in $HOME/src/ for API key
Disable broken options in manage-crowdin.py
2015-04-02 17:08:12 +09:00
timrae
a87da9e83c Add multimedia-editor to crowdin script 2015-03-31 18:41:37 +09:00
timrae
7f250ecaf8 Remove newfeatures from translations 2015-03-31 12:57:31 +09:00
Tim Rae
7e70b90458 remove newfeatures from crowdin 2015-03-31 12:25:01 +09:00
Tim Rae
92acd9255e Switch to Travis android language configuration
http://docs.travis-ci.com/user/languages/android/
Change to container based infrastructure
http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
2015-03-31 03:37:08 +09:00
Tim Rae
8ce053b5f9 Update continuous-test.sh 2015-03-28 22:16:04 +09:00
timrae
b585aac4f0 Change compileSdkVersion to 22 and update travis script 2015-03-28 21:54:45 +09:00
timrae
1278aa73d5 Remove dependency on AnkiDroidApp.onCreate
Clean up AnkiDroidApp in general, favoring singletons instead
2015-03-24 09:37:01 +09:00
Tim Rae
cf1bffb32f Merge pull request #763 from jshevek/new-icons-clean
New icons - partially done
2015-03-23 19:46:26 +09:00
js
3f06817921 New icons, icon generator script, night mode logic
Added new icons, both holo light and holo dark, taken from https://google.github.io/material-design-icons/
Added script to generate pngs from svgs.  Makes icons for all sizes and themes given. Includes modified svgs to use as source.
Added some night-mode logic[1] to use icons.

Remove ic_menu_manage

Script generates holo-light icons using:
  Color: #333333
  Enabled: 60% opacity
  Disabled: 30% opacity

The following icons (and _dark versions) added to  mdpi, hdpi, xhdpi, xxhdip.

ic_action_accept.png
ic_action_camera.png
ic_action_cancel.png
ic_action_email.png
ic_action_import_export.png
ic_action_mic.png
ic_action_replay.png
ic_action_search.png
ic_action_settings.png
ic_action_storage.png
ic_action_time.png
ic_dialog_alert.png
ic_dialog_info.png
ic_menu_add.png
ic_menu_edit.png
ic_menu_mark.png
ic_menu_marked.png
ic_menu_night.png
ic_menu_night_checked.png
ic_menu_refresh.png
ic_menu_send.png
ic_menu_sort_by_size.png
ic_menu_statistics.png

ic_menu_refresh (from ic_sync_24px.svg)
ic_action_whiteboard_enable_light (from ic_brush_24px.svg)
ic_menu_revert (from ic_undo_24px.svg)

[1] This is painful, as this code should be made simpler, not more complex, by using themes and attributes.
But the only way to avoid this do a complete rewrite.
2015-03-23 02:55:06 -07:00
Houssam Salem
69e84f6513 Update template test deck 2015-03-21 22:04:30 +11:00
timrae
25962f3546 add test video deck 2015-03-18 12:55:04 +09:00
Houssam Salem
5148d99d31 Add a test deck for template rendering 2015-03-17 19:31:39 +11:00
timrae
0afa10f710 update crowdin scripts 2015-01-29 00:54:00 +09:00
timrae
4b7863a236 Update crowdin scripts 2015-01-20 13:41:11 +09:00
timrae
3f7d932e17 Update humanize-new-features.sh script 2014-12-18 10:58:16 +09:00
Alexander Grüneberg
7929d5475d Add short name to Chrome app metadata for display in app launcher. 2014-12-10 17:15:55 -06:00
Alexander Grüneberg
05e53d2ed3 Provide default translations for Chrome app metadata.
Prominent examples of languages that do not have a marketdescription are
en, en_US, and en_GB. m(
2014-12-10 17:14:52 -06:00
Alexander Grüneberg
134e2c94f4 Use extName and extDesc to provide translated Chrome app metadata. 2014-12-10 17:12:14 -06:00
Tim Rae
c0970b028a Merge pull request #643 from agrueneberg/chromeos-fix-file-handler
More ChromeOS release script fixes
2014-11-21 17:09:57 +09:00
Alexander Grüneberg
de03b49cd9 Default to "AnkiDroid Flashcards" if NAME is null. 2014-11-21 00:51:11 -06:00
Alexander Grüneberg
1484c4084b Preserve JSON pretty-print. 2014-11-20 22:55:53 -06:00
Alexander Grüneberg
c60127ad90 Work around intent filter restriction to support APKG file handler. 2014-11-20 22:48:01 -06:00
Alexander Grüneberg
d3be51f6a7 Create debug CRX in $PWD. 2014-11-20 14:01:49 -06:00
Alexander Grüneberg
040827d06c Add ChromeOS debug and release scripts. 2014-11-15 09:05:23 -06:00
timrae
66654f3528 Only run tests for AnkiDroid module
Remove unnecessary clean from build process
2014-11-13 13:15:31 +09:00
timrae
a7a0979292 Update continuous-setup.sh
Add the support repository to list of SDK necessary components
2014-11-11 23:58:21 +09:00
timrae
2e236482ce echo ANDROID_HOME to debug Travis failure 2014-11-11 12:59:34 +09:00
timrae
b697b28cd6 make release script do clean release 2014-11-10 23:57:16 +09:00
timrae
30b73edd69 Switch Travis over to gradle 2014-11-10 23:28:52 +09:00
timrae
cbe0dec566 Update release script for new project structure 2014-11-10 02:19:57 +09:00
timrae
7b207cad71 a few changes to the release script 2014-11-09 14:31:46 +09:00
ospalh
dda93a9b17 Use local files when changing icon to blue 2014-10-30 10:04:04 +01:00
Nicolas Raoul
e5014d5cf2 Removed tmp files 2014-10-21 22:23:22 +09:00
Nicolas Raoul
0c56384e9a Fixed script for new Crowdin site 2014-10-14 14:11:41 +09:00
Nicolas Raoul
b43ac8fd74 Updated strings from Crowdin 2014-10-06 15:42:49 +09:00
Nicolas Raoul
5aa9f1a1d4 No more file 12 2014-10-06 15:31:09 +09:00
Nicolas Raoul
5e368b79bb Fixed subprocess call 2014-09-17 13:21:12 +09:00
Nicolas Raoul
2140006d39 Added missing import 2014-09-17 13:16:46 +09:00
Nicolas Raoul
55c310644c New API URL 2014-09-17 13:05:29 +09:00
Nicolas Raoul
b2d57bd4d3 Commit and check after update, it is always what I do anyway 2014-09-16 13:47:24 +09:00
Nicolas Raoul
b91d89020c New API URL 2014-09-16 13:36:13 +09:00
Nicolas Raoul
c63d854618 Build before downloading if key available 2014-09-16 13:35:55 +09:00
Nicolas Raoul
0fa7332a84 New API URL 2014-09-16 13:17:40 +09:00
Flavio Lerda
287af3fc3d Move gitflow-integrate into tools directory.
I mistankely put this tool in the root directory. Also, it lost its
executable bit, so restoring it.
2014-09-03 05:42:04 +01:00
Nicolas Raoul
59b8cac45b Added Latvian , 80% of core 2014-07-21 12:51:38 +09:00
Nicolas Raoul
6f7872a70d run Lint after compilation 2014-07-02 21:21:48 +09:00
Nicolas Raoul
0d88dd2b99 removed unused script 2014-06-26 13:54:23 +09:00
Nicolas Raoul
5968c9cd49 Check for broken CDATA 2014-06-25 14:45:06 +09:00
Nicolas Raoul
c7abcd6426 Exit if compilation fails 2014-06-04 21:38:02 +09:00
Alexander Grüneberg
adcf0b8259 Update to Android API Level 19. 2014-05-17 20:58:39 -04:00
Nicolas Raoul
9fb6f97998 Run Lint before each release 2014-05-16 10:36:10 +09:00
Nicolas Raoul
7e8eec5506 Removed interactivity, found errors are not actually errors 2014-04-02 18:28:07 +09:00
Flavio Lerda
5a44d60802 Merged '9624e12' from hotfix-2.1.2: Added branch specific tag to bumping commit 2014-04-01 01:28:00 +01:00
Nicolas Raoul
9624e12459 Added branch specific tag to bumping commit 2014-03-31 14:55:25 +09:00
Flavio Lerda
04047e110e Merged '83d2770' from release-2.1: Made usable for public releases as well 2014-03-28 08:39:00 +00:00
Flavio Lerda
1b5ce6fd02 Merged 'c811a0c' from release-2.1: Made executable from project home 2014-03-28 08:38:51 +00:00
Flavio Lerda
7bbe94807c Merged 'e768f72' from release-2.1: Made tools executable from project home 2014-03-28 08:38:16 +00:00
Nicolas Raoul
83d2770ff4 Made usable for public releases as well 2014-03-28 17:11:14 +09:00
Nicolas Raoul
c811a0c8e5 Made executable from project home 2014-03-28 17:10:32 +09:00
Nicolas Raoul
e768f72f11 Made tools executable from project home 2014-03-28 11:38:57 +09:00
Flavio Lerda
dfd161a0da Merged 'b3f881f' from release-2.1: Made executable from project home 2014-03-26 22:25:21 +00:00
Flavio Lerda
8940cbaa21 Merged '1d63b5d' from release-2.1: Made executable from project home 2014-03-26 22:25:20 +00:00
Nicolas Raoul
b3f881fd3a Made executable from project home 2014-03-21 18:00:56 +09:00
Nicolas Raoul
1d63b5dc75 Made executable from project home 2014-03-20 17:25:16 +09:00
Nicolas Raoul
ff1bfb8651 Catch more errors 2014-03-14 13:09:55 +09:00
Nicolas Raoul
e1b9849f58 cp instead of mv so that ant installr still works 2014-03-08 01:16:52 +09:00
Nicolas Raoul
a492a97b3e Added 6 languages: gl he hi lt sk sl 2014-02-28 18:49:34 +09:00
Nicolas Raoul
1b9d45faf2 Filter more 2014-02-24 21:46:19 +09:00
Nicolas Raoul
780bea63a0 ready for use 2014-02-23 22:51:29 +09:00
Nicolas Raoul
b84d4b3040 Fixed scraper for new website 2014-02-23 22:50:27 +09:00
Nicolas Raoul
627fa165c5 Fixed shell variable scope bug when pushing to Github 2014-02-20 16:13:23 +09:00
Nicolas Raoul
b3a3cfac71 Update release script for new versioning scheme and switch from Google Downloads to Github Releases 2014-02-19 17:26:10 +09:00
Nicolas Raoul
6148829962 Disabled upload to Google Code as it is not working anymore 2014-01-06 00:03:39 +09:00
Nicolas Raoul
7993588d07 check with Lint too 2014-01-02 14:52:54 +09:00
Nicolas Raoul
707f403fdf Disabled grep that hides too much 2013-12-26 21:14:33 +09:00
Nicolas Raoul
64ee8602e0 Script to change icons to release colors 2013-12-16 16:46:49 +09:00
Nicolas Raoul
5c01553f5b Reduce server calls to make script faster 2013-10-16 22:31:58 +09:00
Nicolas Raoul
0b1c127f4c Tag the version 2013-10-16 22:11:24 +09:00
Nicolas Raoul
8042aa7953 Increment version code too 2013-09-26 16:08:44 +09:00
Flavio Lerda
0ddee387da Update to the latest version of Android.
This commit updates the AndroidManifest.xml to target the latest SDK:
this prevents compatibility behavior on latest version of the OS.

Moreover, update the tools used by Travis CI to the latest and greatest.

Finally, make the download a bit let verbose and easier to debug.
2013-08-11 22:44:45 +01:00
Nicolas Raoul
793bc15c9d Upgrade to the latest android SDK and tools.
The latest version of the android command now requires a --target
argument to be specified.
2013-07-04 15:51:09 +01:00
Flavio Lerda
d009c75c0b Add support for running tests in Travis-CI.
This commit configures our continuous build to also run the tests for us
on an emulator.
2013-06-20 08:12:51 +01:00
Flavio Lerda
d818bd1f52 Refresh to Travis CI configuration.
This commit updates the Travis Continuous Integration configuration to
make it work again.

I chose a different approach to installing the SDK, that avoid depending
on the order in which things are returned by the tool and breaks each
time something changes (like a new release). Instead use static links to
the SDK components that we need.

Since the continuous build is not reliable enough (or at least I am not
sure it is), also only notify myself of failures.
2013-04-14 22:18:18 +01:00
nobnago
db904d35fe localisation 2012-12-11 12:05:41 +01:00
Nicolas Raoul
4420ffec3d HTML format has slightly changed 2012-11-02 22:18:11 +09:00
nobnago
22a498c65c add farsi (thanks to salehi) 2012-10-07 11:37:49 +02:00
nobnago
f7534a3258 add Argentinian localisation (thanks to zenarola) 2012-10-02 09:51:30 +02:00
Nicolas Raoul
64255f5a7f Fixed script for cases where prefix is empty 2012-07-18 13:25:57 +09:00
nobnago
7deb72e58c fix two bugs in manage crowdin 2012-07-16 13:50:29 +02:00
nobnago
4c7b3abce2 make sure, non translated strings are not marked as translations 2012-07-16 13:17:32 +02:00
nobnago
732253c644 Revert "minor change in update-localizations.py"
revert this commit as it breaks the upload translation function

This reverts commit 1b348e281b.
2012-07-14 22:13:12 +02:00
nobnago
1b348e281b minor change in update-localizations.py 2012-07-11 14:54:59 +02:00
Nicolas Raoul
1ee8839900 Rebuild completely at each pull-push 2012-07-02 11:06:10 +09:00
nobnago
3fef1090f6 fix minor bug in manage-crowdin 2012-05-15 09:53:00 +02:00
nobnago
855addaec5 better error handling when downloading localisations 2012-04-16 11:54:19 +02:00
nobnago
96ccbf6ea7 add ukrainian localisation 2012-04-11 14:06:20 +02:00
Nicolas Raoul
760f8f8df9 Updated release script to allow -EXPERIMENTAL suffix 2012-03-22 15:33:29 +09:00
Nicolas Raoul
2b0933ad8c Script to generate the list of translators, useful for thanks in release email 2012-03-21 17:19:17 +09:00