Skip to content

Commit

Permalink
Dependency updates 20240815 (#16877)
Browse files Browse the repository at this point in the history
* 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] <[email protected]>
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] <[email protected]>
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](hamcrest/JavaHamcrest@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](hamcrest/JavaHamcrest@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] <[email protected]>
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] <[email protected]>
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] <[email protected]>
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] <[email protected]>
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] <[email protected]>
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] <[email protected]>
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] <[email protected]>
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] <[email protected]>
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] <[email protected]>
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] <[email protected]>
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] <[email protected]>
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](androidx/media@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](androidx/media@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](androidx/media@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] <[email protected]>

* 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](junit-team/junit5@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] <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
mikehardy and dependabot[bot] authored Aug 16, 2024
1 parent 3827230 commit 977fd56
Show file tree
Hide file tree
Showing 10 changed files with 3,910 additions and 55 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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/[email protected]
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
34 changes: 16 additions & 18 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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"
Expand All @@ -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
Expand All @@ -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"
Expand All @@ -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"
Expand Down Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -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
Expand Down
20 changes: 0 additions & 20 deletions tools/localization/.eslintrc.js

This file was deleted.

43 changes: 43 additions & 0 deletions tools/localization/eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -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,
},
},
];
16 changes: 10 additions & 6 deletions tools/localization/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
1 change: 0 additions & 1 deletion tools/localization/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
7 changes: 4 additions & 3 deletions tools/localization/src/update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ import {
LANGUAGES,
LOCALIZED_REGIONS,
TEMP_DIR,
TITLE_STR,
I18N_FILES,
XML_LICENSE_HEADER,
RES_VALUES_LANG_DIR,
Expand Down Expand Up @@ -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
Expand Down
3 changes: 0 additions & 3 deletions tools/localization/src/upload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading

0 comments on commit 977fd56

Please sign in to comment.