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

299 Commits

Author SHA1 Message Date
codingtosh
502ee7a824 Include Edgecases in kotlin migration script + Touch ups
Fix: #11102

Edgecases included:
1. File Renamed instead of deleted+new file
   If the changes made to the file after kotlin conversion
   are not too different, Git's heuristics identifies the
   changelist as a rename directly and "git status" outputs
   "renamed :" instead of "deleted:" + "new file:".
2. Files modified:
   Let the user confirm whether all modified changes are intended.
2022-05-27 10:13:24 +02:00
codingtosh
ef2fa99030 Remove ShellCheck Warnings
Fix: #11100: nit 3

Remove warnings:

1. Double quote to prevent globbing and word splitting.
   see: https://github.com/koalaman/shellcheck/wiki/SC2086
   status: fixed

2. var is referenced but not assigned
   see: https://github.com/koalaman/shellcheck/wiki/SC2154
   status: Suppressed

3. See if you can use ${variable//search/replace} instead.
   see: https://github.com/koalaman/shellcheck/wiki/SC2001
   status: fixed 1 occurrence, suppressed the second
2022-04-27 12:26:00 -05:00
codingtosh
e9cd79f1a3 Reformat with shell script formatter
Fix ankidroid#11100 : nit 3
2022-04-27 12:26:00 -05:00
codingtosh
2b43cd1e96 Fix #11100 : migrate.sh should give changed commit msg
"refactor: Convert fileName to Kotlin"
instead of
"refactor: Convert fileName.kt to Kotlin"
2022-04-26 15:30:07 -05:00
Mike Hardy
b565d5b19c perf(ci, emulator): community emulator action / AVD caching / gradle cachine
Also adds an emulator run benchmarking suite that works in combo with matrix

If branch builds result in cache upload of emulator files the cache files there will
need to be scoped for just changes on the snapshot file(s)
2022-04-24 13:15:19 -05:00
David Allison
253d72d43d kotlin migration: Enable ANDROID_TEST migration
Tested and this works
2022-04-24 09:30:11 -05:00
Arthur Milchior
85f63a5c48
Add a tools/migrate.sh file for Kotlin migration (#10779)
* Add a tools/migrate.sh file for Kotlin migration

Once actual code migration is done, once the code compiles correctly, tests
passes, and before any commit is done, run `tools/migrate.sh`. This will create the
two commits, as we want them in the migration process.

* Fix script for the mac

Signed-off-by: Kshitij Patil <kshitijpatil98@gmail.com>

Co-authored-by: Kshitij Patil <kshitijpatil98@gmail.com>
2022-04-23 16:05:58 -05:00
Mike Hardy
68c6d6ebd4 fix(release): eagerly tag+push version number
This fixes case where a merge happens while release is
happening, this happens a few times a year and requires
a manual fix when it occurs
2022-04-16 18:47:25 -05:00
Brayan Oliveira
44acc13a6f Fix parallel package app name
A comment added to the app_name constant broke its configuration by parallel-package-name.sh

This fixes it by changing the Regex
2022-04-16 13:45:00 +01:00
Mahathi Vempati
2de01c8710
Add warning not to make changes in generated translated files (#10566) 2022-04-07 12:02:57 -05:00
Mike Hardy
458dc53884
chore: rename default branch to main 2022-03-06 14:22:18 -05:00
Mike Hardy
b0c9ba767a
fix(release): continue with release process after google reject
Fixes #9810
2021-11-07 17:22:04 -05:00
Mike Hardy
b8c77b33c9
release: commit/push version / tag immediately after play upload
this shrinks the window where a publish may leave the versioning out of sync
Related #8219 - still a tiny window where a merge within 10mins or so of a publish
may cause problems
2021-10-25 15:24:01 -05:00
David Allison
61b060eabd translations: add 'Sardinian' (ISO 'sc')
Issue 9550
2021-09-24 11:13:02 -05:00
Mike Hardy
c8a1edfb52 fix: do not erase the amp; from &amp;
It seems 6146b1f9e6 is no longer needed

Fixes #9319
Obsoletes #9320
2021-07-28 17:56:14 -05:00
Mike Hardy
4154a37398 fix: use latest command line tools for android linting
This is required for it to work on Java 11, and the old version in use without
this change is obsolete (because it does not work on java11)

Note that GitHub macos-latest - which is used by the workflow that runs this script
as well as normal development environments - has this installed, verified in:
https://github.com/actions/virtual-environments/blob/main/images/macos/macos-10.15-Readme.md#android
(command line tools 4.x is sufficient, it is current "latest" and is installed)
2021-07-28 17:56:14 -05:00
David Allison
9287caecb1 language: Add Kannada
This requires a translation sync to test

Fixes 8979
2021-05-29 03:54:15 +01:00
Mike Hardy
2bcfd2f199 fix(amazon): assemble amazon release w/universal APK, publish correct path
It works!
2021-05-25 18:19:52 -05:00
Mike Hardy
51473903fc Fix language code for Malayalam Language
It needs a regional specificier: ml-IN not ml

hard to know that until you see how it comes down from crowdin...
2021-04-25 13:23:26 -05:00
vinish vishwanath
39b1cc3c60 Added Malayalam Language 2021-04-25 12:40:22 -05:00
Mrudul Tora
6d68424cd4
Fixes #8151 Build flavors for Amazon Appstore and Google Playstore (#8427)
Fixes #8151 Build flavors for Amazon Appstore and Google Playstore
2021-04-19 22:39:06 -05:00
David Allison
98a26cf40f Import 'Odia (India)' language from CrowdIn
01-core hit 100%, so we can import it for testing

This does not enable it in the UI, but allows a language sync and testing

Related: 7850
2020-12-27 19:30:09 -05:00
Arthur Milchior
d2f5db0a10 Still test upload string 2020-08-28 14:34:54 -05:00
Arthur Milchior
372b2b3115 Crowdin: add parameter in -F and not in url
Seems to correspond to the examples of https://support.crowdin.com/api/update-file/
2020-08-28 13:48:10 -05:00
Arthur Milchior
04faa0413f NF: don't translate string 2020-08-28 10:58:33 +02:00
Arthur Milchior
f362e6b2b0 NF: Change of string are not reflected in crowdin
According to https://support.crowdin.com/api/update-file/ , currently, if a string is changed in english, it'll be
marked as needing review everywhere. This is a problem because we either want to add meta-clarification (for translator)
or correct typo. This change ensure that we have the behaviour we want; strings as never seen as changed. If we want to
really change a string, it'll be a new id

This can't be tested until it is actually merged in github.
2020-08-28 10:58:33 +02:00
Mike Hardy
8142207263
Specify path for I18N linter, push after sync 2020-08-23 15:48:07 -05:00
Mike Hardy
ed3d237d42
Port I18N upload to bash, avoid python dependencies 2020-08-23 15:34:42 -05:00
Mike Hardy
1af10d6107
Add workflow to automate crowdin i18n sync 2020-08-23 12:54:40 -05:00
Mike Hardy
d92fdf2a92
GitHub alpha publish - non-zero exit on build fail, +x on utility 2020-08-19 00:26:19 -05:00
Mike Hardy
98f702f0fe
GitHub alpha publish - changelog only important for public release 2020-08-19 00:14:17 -05:00
Mike Hardy
5c51d3b4a0
GitHub alpha publish - install/path for utilities 2020-08-19 00:02:08 -05:00
Mike Hardy
527d35cdb3
Automate alpha publish in github workflow 2020-08-18 23:31:35 -05:00
Mike Hardy
b428d389fe Copy-edit the github release text 2020-07-08 11:23:53 -05:00
Mike Hardy
6e9b923f64
Ignore a specific string in i18n lint check
This was a whole screen full of false positives making
verification that there were no problems quite difficult
2020-06-28 12:46:20 -05:00
Mike Hardy
f7cf613c6e
Use known values for app and id in parallel rename
With the addition of amazon publishing, and another 'applicationId'
in build.gradle, the search for the original app name broke so parallel
rename was not working

There is no need to scan for those values dynamically though, they are fixed
deeply in order to preserve application contintuity on the app stores, so
we can just hard-code them
2020-06-19 17:38:10 -05:00
Mike Hardy
d3a7e94c19
Correct ABIS reference and parallel posting in release script 2020-06-18 12:20:08 -05:00
Mike Hardy
37e5c39476
Use correct github-release arguments
Their README says one thing, code demands another.
I will file an upstream PR
2020-06-18 11:47:48 -05:00
Mike Hardy
0f11c7715e
Upload ABI splits for main APK, with user advice on selection
Fixes #6493
2020-06-18 11:38:52 -05:00
Mike Hardy
598e16e538
Upload universal APK to Amazon for public releases 2020-06-17 16:51:47 -05:00
Mike Hardy
405f2523ec
Invert public / parallel build test for releases
For some reason the 2.12alpha11 build uploaded all parallel builds
but for non-public builds I only want to upload one. Perhaps this will
work
2020-06-17 13:49:44 -05:00
Mike Hardy
3d1d9179ee
Release builds parallel correctly, w/existing passwords 2020-06-15 18:03:16 -05:00
Mike Hardy
f9cf683bae Publish parallel A every release, all parallels on public release
This should help testers that don't want to commit to testing all alphas
This will help release management as parallel releases will be automatic now
2020-06-15 17:12:33 -05:00
Mike Hardy
6c51a9c5f8 Allow universal APK in release, upload it to github
Previous change meant we never had universal APKs but they are useful

This enables them again if you send a command-line toggle in, and then
uses the toggle to upload builds to github
2020-06-15 17:12:33 -05:00
Mike Hardy
bb89029292 Implement ABI splits for release builds
This reduces built APK to 7.5MB vs 10.4MB

Careful consideration was taken to version range space so we won't exhaust it

Manual downloads (github attachments, mostly) are configured as armv7 since no
one uses x86 in real devices anymore - and armv8 devices can run armv7 code
2020-06-14 20:58:13 -05:00
Mike Hardy
143b27c319 Remap Indonesia/Hebrew/Tagalog to three-letter-codes
Fixes #6338 temporarily, @Arthus is potentially going to fix pre-export
via crowdin settings
2020-06-10 18:06:25 -05:00
Mike Hardy
e1cabb4372 Add Santali language 2020-06-09 14:21:20 -05:00
Mike Hardy
a7c44bb041 Improve error attribution in broken I18N finder 2020-06-01 14:00:39 -05:00
Mike Hardy
c507e211ff NF: Improve logging, Improve test, Document I18N variant add 2020-06-01 14:00:39 -05:00
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