0
0
mirror of https://github.com/ankidroid/Anki-Android.git synced 2024-09-19 19:42:17 +02:00

Dependency updates 20240815 (#16877)

* build(deps): bump androidxFragmentKtx from 1.8.1 to 1.8.2 (#16780)

Bumps `androidxFragmentKtx` from 1.8.1 to 1.8.2.

Updates `androidx.fragment:fragment-ktx` from 1.8.1 to 1.8.2

Updates `androidx.fragment:fragment-testing` from 1.8.1 to 1.8.2

Updates `androidx.fragment:fragment-testing-manifest` from 1.8.1 to 1.8.2

---
updated-dependencies:
- dependency-name: androidx.fragment:fragment-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: androidx.fragment:fragment-testing
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: androidx.fragment:fragment-testing-manifest
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump androidx.annotation:annotation from 1.8.0 to 1.8.1 (#16782)

Bumps androidx.annotation:annotation from 1.8.0 to 1.8.1.

---
updated-dependencies:
- dependency-name: androidx.annotation:annotation
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump hamcrest from 2.2 to 3.0 (#16802)

Bumps `hamcrest` from 2.2 to 3.0.

Updates `org.hamcrest:hamcrest` from 2.2 to 3.0
- [Release notes](https://github.com/hamcrest/JavaHamcrest/releases)
- [Changelog](https://github.com/hamcrest/JavaHamcrest/blob/master/CHANGES.md)
- [Commits](https://github.com/hamcrest/JavaHamcrest/compare/v2.2...v3.0)

Updates `org.hamcrest:hamcrest-library` from 2.2 to 3.0
- [Release notes](https://github.com/hamcrest/JavaHamcrest/releases)
- [Changelog](https://github.com/hamcrest/JavaHamcrest/blob/master/CHANGES.md)
- [Commits](https://github.com/hamcrest/JavaHamcrest/compare/v2.2...v3.0)

---
updated-dependencies:
- dependency-name: org.hamcrest:hamcrest
  dependency-type: direct:production
  update-type: version-update:semver-major
- dependency-name: org.hamcrest:hamcrest-library
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump com.google.protobuf:protobuf-kotlin-lite (#16801)

Bumps com.google.protobuf:protobuf-kotlin-lite from 4.27.2 to 4.27.3.

---
updated-dependencies:
- dependency-name: com.google.protobuf:protobuf-kotlin-lite
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump androidx.activity:activity from 1.9.0 to 1.9.1 (#16781)

Bumps androidx.activity:activity from 1.9.0 to 1.9.1.

---
updated-dependencies:
- dependency-name: androidx.activity:activity
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump kotlinTest from 2.0.0 to 2.0.10 (#16835)

Bumps `kotlinTest` from 2.0.0 to 2.0.10.

Updates `org.jetbrains.kotlin:kotlin-test` from 2.0.0 to 2.0.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

Updates `org.jetbrains.kotlin:kotlin-test-junit` from 2.0.0 to 2.0.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

Updates `org.jetbrains.kotlin:kotlin-test-junit5` from 2.0.0 to 2.0.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-test
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-test-junit
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin:kotlin-test-junit5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump kotlin from 2.0.0 to 2.0.10 (#16834)

Bumps `kotlin` from 2.0.0 to 2.0.10.

Updates `org.jetbrains.kotlin:kotlin-stdlib` from 2.0.0 to 2.0.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

Updates `org.jetbrains.kotlin.android` from 2.0.0 to 2.0.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

Updates `org.jetbrains.kotlin.plugin.parcelize` from 2.0.0 to 2.0.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

Updates `org.jetbrains.kotlin.jvm` from 2.0.0 to 2.0.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

Updates `org.jetbrains.kotlin.plugin.serialization` from 2.0.0 to 2.0.10
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-stdlib
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin.android
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin.plugin.parcelize
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin.jvm
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: org.jetbrains.kotlin.plugin.serialization
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* build(deps): bump org.jetbrains.kotlin:kotlin-reflect (#16833)

Bumps [org.jetbrains.kotlin:kotlin-reflect](https://github.com/JetBrains/kotlin) from 2.0.0 to 2.0.10.
- [Release notes](https://github.com/JetBrains/kotlin/releases)
- [Changelog](https://github.com/JetBrains/kotlin/blob/master/ChangeLog.md)
- [Commits](https://github.com/JetBrains/kotlin/commits)

---
updated-dependencies:
- dependency-name: org.jetbrains.kotlin:kotlin-reflect
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump androidx.annotation:annotation from 1.8.1 to 1.8.2 (#16846)

Bumps androidx.annotation:annotation from 1.8.1 to 1.8.2.

---
updated-dependencies:
- dependency-name: androidx.annotation:annotation
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump workRuntimeKtx from 2.9.0 to 2.9.1 (#16845)

Bumps `workRuntimeKtx` from 2.9.0 to 2.9.1.

Updates `androidx.work:work-runtime-ktx` from 2.9.0 to 2.9.1

Updates `androidx.work:work-testing` from 2.9.0 to 2.9.1

---
updated-dependencies:
- dependency-name: androidx.work:work-runtime-ktx
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: androidx.work:work-testing
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump org.apache.commons:commons-compress (#16852)

Bumps org.apache.commons:commons-compress from 1.26.2 to 1.27.0.

---
updated-dependencies:
- dependency-name: org.apache.commons:commons-compress
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump lint from 31.5.1 to 31.5.2 (#16854)

Bumps `lint` from 31.5.1 to 31.5.2.

Updates `com.android.tools.lint:lint-api` from 31.5.1 to 31.5.2

Updates `com.android.tools.lint:lint` from 31.5.1 to 31.5.2

Updates `com.android.tools.lint:lint-tests` from 31.5.1 to 31.5.2

---
updated-dependencies:
- dependency-name: com.android.tools.lint:lint-api
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.android.tools.lint:lint-tests
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* chore(deps): bump androidGradlePlugin from 8.5.1 to 8.5.2 (#16853)

Bumps `androidGradlePlugin` from 8.5.1 to 8.5.2.

Updates `com.android.application` from 8.5.1 to 8.5.2

Updates `com.android.library` from 8.5.1 to 8.5.2

---
updated-dependencies:
- dependency-name: com.android.application
  dependency-type: direct:production
  update-type: version-update:semver-patch
- dependency-name: com.android.library
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

* Update Gradle Wrapper from 8.9 to 8.10

(this was applied automatically but I inadvertently clobbered it while
untangling some git rebase conflicts since it went in between rebase
start and push)

* style(lint): fix lint errors from previous refactors

it appears lint is not run on checkin or CI here

* build(deps): update to / forward port to eslint v9+

* style(lint): result of `yarn format`

it appears this is not checked in CI

* test(ci): check localization lint + formatting in CI

* build(deps): `yarn upgrade-interactive` in tools/localization

all of these updates are minors, should be fine but will
need an i18n sync in production to verify

* build(deps): bump androidxMedia3 from 1.3.1 to 1.4.0

Bumps `androidxMedia3` from 1.3.1 to 1.4.0.

Updates `androidx.media3:media3-ui` from 1.3.1 to 1.4.0
- [Release notes](https://github.com/androidx/media/releases)
- [Changelog](https://github.com/androidx/media/blob/release/RELEASENOTES.md)
- [Commits](https://github.com/androidx/media/compare/1.3.1...1.4.0)

Updates `androidx.media3:media3-exoplayer-dash` from 1.3.1 to 1.4.0
- [Release notes](https://github.com/androidx/media/releases)
- [Changelog](https://github.com/androidx/media/blob/release/RELEASENOTES.md)
- [Commits](https://github.com/androidx/media/compare/1.3.1...1.4.0)

Updates `androidx.media3:media3-exoplayer` from 1.3.1 to 1.4.0
- [Release notes](https://github.com/androidx/media/releases)
- [Changelog](https://github.com/androidx/media/blob/release/RELEASENOTES.md)
- [Commits](https://github.com/androidx/media/compare/1.3.1...1.4.0)

---
updated-dependencies:
- dependency-name: androidx.media3:media3-ui
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: androidx.media3:media3-exoplayer-dash
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: androidx.media3:media3-exoplayer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* build(deps): junit-jupiter moves as a locked-version set, consolidate it

* chore(deps): bump org.junit.jupiter:junit-jupiter

Bumps [org.junit.jupiter:junit-jupiter](https://github.com/junit-team/junit5) from 5.10.3 to 5.11.0.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.10.3...r5.11.0)

---
updated-dependencies:
- dependency-name: org.junit.jupiter:junit-jupiter-params
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
Mike Hardy 2024-08-15 19:45:59 -06:00 committed by GitHub
parent 38272302d5
commit 977fd5685e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
10 changed files with 3910 additions and 55 deletions

View File

@ -14,8 +14,8 @@ concurrency:
cancel-in-progress: true
jobs:
lintDebug:
name: Lint Debug
lintKotlin:
name: Lint Kotlin
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
@ -55,13 +55,31 @@ jobs:
# "lintVitalFullRelease": if `main` resources are only used in `androidTest` (#15741)
run: ./gradlew lintPlayDebug :api:lintDebug ktLintCheck lintVitalFullRelease lint-rules:test --daemon
lintJavascript:
name: Lint Javascript
timeout-minutes: 20
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
# Handled under the pre-commit hook: ./gradlew installGitHook
# To run manually, run the following inside folder: Anki-Android
# npm install --location=global prettier
# prettier --check AnkiDroid/**/*.js
- name: Prettify code
- name: Prettify AnkiDroid javascript code
uses: creyD/prettier_action@v4.3
with:
prettier_options: --check AnkiDroid/**/*.js
dry: True
- name: Install Localization
run: cd tools/localization && yarn
- name: Lint Localization
run: cd tools/localization && yarn lint
- name: Format Localization
run: cd tools/localization && yarn checkformat

View File

@ -3,11 +3,11 @@ compileSdk = "34"
minSdk = "23" # also in testlib/build.gradle.kts
targetSdk = "34" # also in ../robolectricDownloader.gradle
acra = '5.11.3'
androidGradlePlugin = "8.5.1"
androidGradlePlugin = "8.5.2"
# https://developer.android.com/jetpack/androidx/releases/activity
androidxActivity = "1.9.0"
androidxActivity = "1.9.1"
# https://developer.android.com/jetpack/androidx/releases/annotation
androidxAnnotation = "1.8.0"
androidxAnnotation = "1.8.2"
# https://developer.android.com/jetpack/androidx/releases/appcompat
androidxAppCompat = "1.7.0"
# https://developer.android.com/jetpack/androidx/releases/browser
@ -21,11 +21,11 @@ androidxDragAndDrop = "1.0.0"
# https://developer.android.com/jetpack/androidx/releases/exifinterface
androidxExifinterface = "1.3.7"
# https://developer.android.com/jetpack/androidx/releases/fragment
androidxFragmentKtx = "1.8.1"
androidxFragmentKtx = "1.8.2"
# https://developer.android.com/jetpack/androidx/releases/media
androidxMedia = "1.7.0"
# https://developer.android.com/jetpack/androidx/releases/media3
androidxMedia3 = "1.3.1"
androidxMedia3 = "1.4.0"
# https://developer.android.com/jetpack/androidx/releases/preference
androidxPreferenceKtx = "1.2.1"
# https://developer.android.com/jetpack/androidx/releases/recyclerview
@ -43,7 +43,7 @@ androidxViewpager2 = "1.1.0"
# https://developer.android.com/jetpack/androidx/releases/webkit
androidxWebkit = "1.11.0"
# https://developer.android.com/jetpack/androidx/releases/work
androidxWork = "2.9.0"
androidxWork = "2.9.1"
annotations = "24.1.0"
ankiBackend = '0.1.39-anki24.06.2'
autoService = "1.1.1"
@ -52,7 +52,7 @@ colorpicker = "1.2.0"
# https://commons.apache.org/proper/commons-collections/changes-report.html
commonsCollections4 = "4.4"
# https://commons.apache.org/proper/commons-compress/changes-report.html
commonsCompress = "1.26.2"
commonsCompress = "1.27.0"
# https://commons.apache.org/proper/commons-exec/changes-report.html
commonsExec = "1.4.0"
# https://commons.apache.org/proper/commons-io/changes-report.html
@ -63,22 +63,20 @@ drawer = "1.0.3"
dokka = "1.9.20"
espresso = '3.6.1'
mikehardyGoogleAnalyticsJava7 = "2.0.13"
hamcrest = "2.2"
hamcrest = "3.0"
imageCropper = "4.5.0"
javaSemver = "0.10.2"
json = "20240303"
jsoup = "1.18.1"
androidTestJunit = "1.2.1"
junitJupiter = "5.10.3"
junitJupiterParams = "5.10.3"
junitVintageEngine = "5.10.3"
kotlin = '2.0.0'
kotlinReflect = "2.0.0"
kotlinTest = "2.0.0"
junitJupiter= "5.11.0"
kotlin = '2.0.10'
kotlinReflect = "2.0.10"
kotlinTest = "2.0.10"
kotlinxSerializationJson = "1.7.1"
ktlint = "11.6.1"
leakcanaryAndroid = "2.14"
lint = '31.5.1'
lint = '31.5.2'
material = "1.12.0"
materialTapTargetPrompt = "3.3.2"
mockitoInline = "5.2.0"
@ -87,7 +85,7 @@ mockk = "1.13.12"
nanohttpd = "2.3.1"
okhttp = "4.12.0"
# https://github.com/protocolbuffers/protobuf/releases
protobufKotlinLite = "4.27.2"
protobufKotlinLite = "4.27.3"
robolectric = "4.13"
searchpreference = "2.5.1"
seismic = "1.0.3"
@ -173,8 +171,8 @@ hamcrest-library = { module = "org.hamcrest:hamcrest-library", version.ref = "ha
ivanshafran-shared-preferences-mock = { module = "io.github.ivanshafran:shared-preferences-mock", version.ref = "sharedPreferencesMock" }
json = { module = "org.json:json", version.ref = "json" }
junit-jupiter = { module = "org.junit.jupiter:junit-jupiter", version.ref = "junitJupiter" }
junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junitJupiterParams" }
junit-vintage-engine = { module = "org.junit.vintage:junit-vintage-engine", version.ref = "junitVintageEngine" }
junit-jupiter-params = { module = "org.junit.jupiter:junit-jupiter-params", version.ref = "junitJupiter" }
junit-vintage-engine = { module = "org.junit.vintage:junit-vintage-engine", version.ref = "junitJupiter" }
kotlin-reflect = { module = "org.jetbrains.kotlin:kotlin-reflect", version.ref = "kotlinReflect" }
kotlin-test = { module = "org.jetbrains.kotlin:kotlin-test", version.ref = "kotlinTest" }
kotlin-test-junit = { module = "org.jetbrains.kotlin:kotlin-test-junit", version.ref = "kotlinTest" }

View File

@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.9-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME

View File

@ -1,20 +0,0 @@
module.exports = {
env: {
es2021: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: "latest",
sourceType: "module",
},
plugins: ["@typescript-eslint"],
rules: {
"no-useless-escape": 0,
},
};

View File

@ -0,0 +1,43 @@
import typescriptEslint from "@typescript-eslint/eslint-plugin";
import globals from "globals";
import tsParser from "@typescript-eslint/parser";
import path from "node:path";
import { fileURLToPath } from "node:url";
import js from "@eslint/js";
import { FlatCompat } from "@eslint/eslintrc";
const __filename = fileURLToPath(import.meta.url);
const __dirname = path.dirname(__filename);
const compat = new FlatCompat({
baseDirectory: __dirname,
recommendedConfig: js.configs.recommended,
allConfig: js.configs.all,
});
export default [
...compat.extends(
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
),
{
files: ["**/*.js", "**/*.jsx", "**/*.ts", "**/*.tsx"],
plugins: {
"@typescript-eslint": typescriptEslint,
},
languageOptions: {
globals: {
...globals.node,
},
parser: tsParser,
ecmaVersion: "latest",
sourceType: "module",
},
rules: {
"no-useless-escape": 0,
},
},
];

View File

@ -8,8 +8,9 @@
"build": "tsc",
"start": "node ./dist/index.js",
"dev": "tsc --watch",
"checkformat": "npx prettier --check .",
"format": "npx prettier --write .",
"lint": "eslint src/ --ext .js,.jsx,.ts,.tsx --max-warnings=0",
"lint": "eslint src/ --max-warnings=0",
"test": "jest --passWithNoTests"
},
"repository": "https://github.com/ankidroid/Anki-Android",
@ -23,16 +24,19 @@
"typescript": "^5.3.3"
},
"devDependencies": {
"@eslint/eslintrc": "^3.1.0",
"@eslint/js": "^9.8.0",
"@types/jest": "^29.5.12",
"@types/node": "^20.11.18",
"@typescript-eslint/eslint-plugin": "^7.0.0",
"@typescript-eslint/parser": "^7.0.1",
"eslint": "^8.56.0",
"@types/node": "^22.1.0",
"@typescript-eslint/eslint-plugin": "^8.0.0",
"@typescript-eslint/parser": "^8.0.0",
"eslint": "^9.8.0",
"eslint-config-prettier": "^9.1.0",
"eslint-config-standard": "^17.1.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-n": "^17.2.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-promise": "^7.0.0",
"globals": "^15.9.0",
"jest": "^29.7.0",
"prettier": "^3.2.5",
"ts-jest": "^29.1.2",

View File

@ -22,7 +22,6 @@ export const credentialsConst: Credentials = {
};
export const PROJECT_ID = 720;
export const TITLE_STR = "AnkiDroid Flashcards";
const RES_DIR = "../../../AnkiDroid/src/main/res";
const DOCS_MARKET_DIR = "../../../docs/marketing/localized_description";

View File

@ -19,7 +19,6 @@ import {
LANGUAGES,
LOCALIZED_REGIONS,
TEMP_DIR,
TITLE_STR,
I18N_FILES,
XML_LICENSE_HEADER,
RES_VALUES_LANG_DIR,
@ -192,11 +191,13 @@ export async function updateI18nFiles() {
break;
}
androidLanguages.map(async androidLanguage => {
androidLanguages.map(async (androidLanguage) => {
console.log(
"\nCopying language files from " + language + " to " + androidLanguage,
);
const valuesDirectory = path.join(RES_VALUES_LANG_DIR + androidLanguage + "/");
const valuesDirectory = path.join(
RES_VALUES_LANG_DIR + androidLanguage + "/",
);
createDirIfNotExisting(valuesDirectory);
// Copy localization files, mask chars and append gnu/gpl licence

View File

@ -18,11 +18,8 @@ import {
credentialsConst,
I18N_FILES,
I18N_FILES_DIR,
TEMP_DIR,
TITLE_STR,
MARKET_DESC_FILE,
} from "./constants";
import path from "path";
// initialization of crowdin client
const { uploadStorageApi, sourceFilesApi } = new crowdin(credentialsConst);

3815
tools/localization/yarn.lock Normal file

File diff suppressed because it is too large Load Diff