Skip to content

Commit 4ea35f4

Browse files
authored
Project migration (#198)
* Docs: redirect to new website * Docs: rename docs -> docs-legacy * Revisit README.md * Review github workflows and secondary markdown files * Review build files * Fix demo app and tests * Multiplatform publications * Idea files * Docs migration * Fix emulator runtime * Fix deployer dependency * Min SDK version bump to 21 * Enable emulator stacktrace * Read signing info
1 parent 77fc790 commit 4ea35f4

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+896
-819
lines changed

.github/CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe
3434

3535
## Enforcement
3636

37-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at [email protected]. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
3838

3939
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
4040

.github/CONTRIBUTING.md

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
1-
Contributing guidelines are [hosted here](https://natario1.github.io/Transcoder/extra/contributing).
1+
2+
Everyone is welcome to contribute with suggestions or pull requests. We are grateful to anyone who will contribute with fixes, features or feature requests.
3+
4+
### Bug reports
5+
6+
Please make sure to fill the bug report issue template on GitHub, if applicable.
7+
We highly recommend to try to reproduce the bug in the demo app, as this helps a lot in debugging
8+
and excludes programming errors from your side.
9+
10+
Make sure to include:
11+
12+
- A clear and concise description of what the bug is
13+
- Transcoder version, device type, Android API level
14+
- Exact steps to reproduce the issue
15+
- Description of the expected behavior
16+
- The original media file(s) that manifest the problem
17+
18+
Recommended extras:
19+
20+
- LogCat logs (use `Logger.setLogLevel(LEVEL_VERBOSE)` to print all)
21+
- Link to a GitHub repo where the bug is reproducible
22+
23+
### Pull Requests
24+
25+
Please open an issue first!
26+
27+
Unless your PR is a simple fix (typos, documentation, bugs with obvious solution), opening an issue
28+
will let us discuss the problem, take design decisions and have a reference to the issue description.
29+
30+
If you can, please write tests. We are planning to work on improving the library test coverage soon.

.github/FUNDING.yml

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

.github/workflows/build.yml

Lines changed: 28 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
# https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions
2-
# Renaming ? Change the README badge.
32
name: Build
43
on:
54
push:
@@ -10,48 +9,55 @@ jobs:
109
ANDROID_BASE_CHECKS:
1110
name: Base Checks
1211
runs-on: ubuntu-latest
12+
env:
13+
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
14+
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
1315
steps:
14-
- uses: actions/checkout@v2
15-
- uses: actions/setup-java@v2
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-java@v4
1618
with:
17-
java-version: 11
19+
java-version: 17
1820
distribution: temurin
1921
cache: gradle
2022
- name: Perform base checks
21-
run: ./gradlew demo:assembleDebug lib:publishToDirectory
23+
run: ./gradlew demo:assembleDebug lib:deployLocal
2224
ANDROID_EMULATOR_TESTS:
2325
name: Emulator Tests
24-
runs-on: macos-latest
26+
runs-on: ubuntu-latest
27+
# Temporary workaround for deployer issue
28+
env:
29+
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
30+
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
2531
strategy:
2632
fail-fast: false
2733
matrix:
28-
EMULATOR_API: [22, 25, 28]
29-
include:
30-
- EMULATOR_API: 28
31-
EMULATOR_ARCH: x86_64
32-
- EMULATOR_API: 25
33-
EMULATOR_ARCH: x86
34-
- EMULATOR_API: 22
35-
EMULATOR_ARCH: x86
34+
EMULATOR_API: [23, 25, 29]
3635
steps:
37-
- uses: actions/checkout@v2
38-
- uses: actions/setup-java@v2
36+
- uses: actions/checkout@v4
37+
- uses: actions/setup-java@v4
3938
with:
40-
java-version: 11
39+
java-version: 17
4140
distribution: temurin
4241
cache: gradle
42+
43+
- name: Enable KVM group perms
44+
run: |
45+
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
46+
sudo udevadm control --reload-rules
47+
sudo udevadm trigger --name-match=kvm
48+
4349
- name: Execute emulator tests
4450
timeout-minutes: 30
4551
uses: reactivecircus/android-emulator-runner@v2
4652
with:
4753
api-level: ${{ matrix.EMULATOR_API }}
48-
arch: ${{ matrix.EMULATOR_ARCH }}
49-
disable-animations: true
50-
profile: Nexus 5X
54+
arch: x86_64
55+
profile: Nexus 6
5156
emulator-options: -no-snapshot -no-window -no-boot-anim -camera-back none -camera-front none -gpu swiftshader_indirect
5257
script: ./.github/workflows/emulator_script.sh
58+
5359
- name: Upload emulator tests artifact
54-
uses: actions/upload-artifact@v1
60+
uses: actions/upload-artifact@v4
5561
with:
5662
name: emulator_tests_${{ matrix.EMULATOR_API }}
57-
path: ./lib/build/outputs/code_coverage/debugAndroidTest/connected
63+
path: ./lib/build/reports/androidTests/connected/debug/

.github/workflows/deploy.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,23 @@ on:
55
types: [published]
66
jobs:
77
MAVEN_UPLOAD:
8-
name: Maven Upload
8+
name: Maven Central Upload
99
runs-on: ubuntu-latest
1010
env:
1111
SIGNING_KEY: ${{ secrets.SIGNING_KEY }}
1212
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
1313
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
1414
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
15+
GHUB_USER: ${{ secrets.GHUB_USER }}
16+
GHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GHUB_PERSONAL_ACCESS_TOKEN }}
1517
steps:
16-
- uses: actions/checkout@v2
17-
- uses: actions/setup-java@v2
18+
- uses: actions/checkout@v4
19+
- uses: actions/setup-java@v4
1820
with:
19-
java-version: 11
21+
java-version: 17
2022
distribution: temurin
2123
cache: gradle
22-
- name: Perform maven upload
23-
run: ./gradlew publishToSonatype
24+
- name: Publish to Maven Central
25+
run: ./gradlew deployNexus
26+
- name: Publish to GitHub Packages
27+
run: ./gradlew deployGithub

.github/workflows/emulator_script.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ ADB_TAGS="$ADB_TAGS VideoDecoderOutput:I VideoFrameDropper:I"
55
ADB_TAGS="$ADB_TAGS AudioEngine:I"
66
adb logcat -c
77
adb logcat $ADB_TAGS *:E -v color &
8-
./gradlew lib:connectedCheck
8+
./gradlew lib:connectedCheck --stacktrace

.github/workflows/snapshot.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,14 @@ jobs:
1414
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }}
1515
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
1616
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
17+
GHUB_USER: ${{ secrets.GHUB_USER }}
18+
GHUB_PERSONAL_ACCESS_TOKEN: ${{ secrets.GHUB_PERSONAL_ACCESS_TOKEN }}
1719
steps:
18-
- uses: actions/checkout@v2
19-
- uses: actions/setup-java@v2
20+
- uses: actions/checkout@v4
21+
- uses: actions/setup-java@v4
2022
with:
21-
java-version: 11
23+
java-version: 17
2224
distribution: temurin
2325
cache: gradle
24-
- name: Publish sonatype snapshot
25-
run: ./gradlew publishToSonatypeSnapshot
26+
- name: Publish nexus snapshot
27+
run: ./gradlew deployNexusSnapshot

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
.gradle
22
/local.properties
3-
/.idea
43
.DS_Store
54
/build
65
*.iml

.idea/.gitignore

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/compiler.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/deploymentTargetDropDown.xml

Lines changed: 10 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/gradle.xml

Lines changed: 19 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/kotlinc.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/misc.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/runConfigurations/deployLocal.xml

Lines changed: 24 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/vcs.xml

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@
186186
same "printed page" as the copyright notice for easier
187187
identification within third-party archives.
188188

189-
Copyright {yyyy} {name of copyright owner}
189+
Copyright 2024 DeepMedia Srl
190190

191191
Licensed under the Apache License, Version 2.0 (the "License");
192192
you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)