Skip to content

Commit 75075d9

Browse files
Merge pull request #18 from OpenDTU-App/separate-translations
2 parents 9e7f239 + 1eb1500 commit 75075d9

File tree

10 files changed

+45
-543
lines changed

10 files changed

+45
-543
lines changed

.github/workflows/pull-requests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,9 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout
16-
uses: actions/checkout@v3
16+
uses: actions/checkout@v4
17+
with:
18+
submodules: recursive
1719

1820
- name: Fetch all tags
1921
run: git fetch --tags
@@ -41,7 +43,7 @@ jobs:
4143
${{ runner.os }}-yarn-
4244
4345
- name: Install dependencies
44-
run: yarn install --frozen-lockfile
46+
run: yarn install --frozen-lockfile --prefer-offline
4547

4648
- name: Cache Gradle Wrapper
4749
uses: actions/cache@v3

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,9 @@ jobs:
1414
contents: write
1515
steps:
1616
- name: Checkout
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
18+
with:
19+
submodules: recursive
1820

1921
- name: Fetch all tags
2022
run: git fetch --tags --force
@@ -42,7 +44,7 @@ jobs:
4244
${{ runner.os }}-yarn-
4345
4446
- name: Install dependencies
45-
run: yarn install --frozen-lockfile
47+
run: yarn install --frozen-lockfile --prefer-offline
4648

4749
- name: Cache Gradle Wrapper
4850
uses: actions/cache@v3

.github/workflows/testing.yml

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,32 @@ jobs:
77
test:
88
name: Run Tests
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
checks: write
1013
steps:
1114
- name: Checkout
12-
uses: actions/checkout@v2
13-
- uses: actions/setup-node@master
14-
- uses: c-hive/gha-yarn-cache@v1
15+
uses: actions/checkout@v4
16+
with:
17+
submodules: recursive
18+
19+
- name: Setup Node
20+
uses: actions/setup-node@v4
21+
22+
- name: Cache node modules
23+
uses: c-hive/gha-yarn-cache@v1
1524

1625
- name: Install node modules
1726
run: |
18-
yarn install
27+
yarn install --frozen-lockfile --prefer-offline
1928
20-
- name: Run Lint
29+
- name: Run ESLint
2130
run: |
2231
yarn lint --max-warnings=0
2332
24-
- name: Run test
25-
run: |
26-
yarn test
33+
- name: Run tests
34+
uses: willcaul/jest-github-action@v4
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
with:
38+
test-command: "yarn test"

.gitmodules

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[submodule "src/translations/translation-files"]
2+
path = src/translations/translation-files
3+
url = [email protected]:OpenDTU-App/opendtu-react-native-translations.git

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
This is a mobile app for the [OpenDTU project by tbnobody](https://github.com/tbnobody/OpenDTU).
44
I am a OpenDTU user, but I am not affiliated with the original project. However, for API communication, I inspired my code by the original webapp.
55

6+
## Installation
7+
There are signed .apk files inside the "Releases" tab. As of now, the is no plan to publish to Google Play store or F-Droid. However, if you want to help with F-Droid, feel free to contact me.
8+
9+
## Development
10+
There are two branches. `main` is the stable branch, `dev` is the development branch. If you want to contribute, please create a pull request to `dev`.
11+
12+
## Translations
13+
Translations are inside a [submodule](https://github.com/OpenDTU-App/opendtu-react-native-translations) located in `src/translations/translation-files`.
14+
This helps to have a better developer experience when working with Weblate.
15+
616
### ToDo
717
- [x] App Icon
818
- [x] Splash Screen

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"lint": "eslint .",
1818
"lint:fix": "eslint . --fix",
1919
"start": "react-native start",
20-
"test": "jest",
20+
"test": "jest --passWithNoTests",
2121
"postinstall": "yarn run npm-license-crawler -onlyDirectDependencies -json licenses.json && patch-package",
2222
"postuninstall": "yarn run npm-license-crawler -onlyDirectDependencies -json licenses.json",
2323
"build-android": "pushd android ; ./gradlew assembleRelease ; popd",

src/translations/de.json

Lines changed: 0 additions & 264 deletions
This file was deleted.

0 commit comments

Comments
 (0)