Skip to content

Commit

Permalink
Release 0.10.4 (#151)
Browse files Browse the repository at this point in the history
* Update dependencies

* Release v0.10.4

* Try fix emulator
  • Loading branch information
natario1 committed Sep 15, 2021
1 parent ba8f098 commit dab9ac2
Show file tree
Hide file tree
Showing 12 changed files with 64 additions and 42 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ jobs:
name: Base Checks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: 11
distribution: temurin
cache: gradle
- name: Perform base checks
run: ./gradlew demo:assembleDebug lib:publishToDirectory
ANDROID_EMULATOR_TESTS:
name: Emulator Tests
runs-on: macOS-latest
runs-on: macos-latest
strategy:
fail-fast: false
matrix:
Expand All @@ -32,20 +34,21 @@ jobs:
- EMULATOR_API: 22
EMULATOR_ARCH: x86
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: 11
distribution: temurin
cache: gradle
- name: Execute emulator tests
timeout-minutes: 30
uses: reactivecircus/android-emulator-runner@v2.2.0
uses: reactivecircus/android-emulator-runner@v2
with:
api-level: ${{ matrix.EMULATOR_API }}
arch: ${{ matrix.EMULATOR_ARCH }}
disable-animations: true
profile: Nexus 5X
emulator-options: -no-snapshot -no-window -no-boot-anim -camera-back none -camera-front none -gpu swiftshader_indirect
emulator-build: 6031357
script: ./.github/workflows/emulator_script.sh
- name: Upload emulator tests artifact
uses: actions/upload-artifact@v1
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@ jobs:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
steps:
- uses: actions/checkout@v1
- uses: actions/setup-java@v1
- uses: actions/checkout@v2
- uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: 11
distribution: temurin
cache: gradle
- name: Perform maven upload
run: ./gradlew publishToSonatype
6 changes: 4 additions & 2 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,10 @@ jobs:
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
- uses: actions/setup-java@v2
with:
java-version: 1.8
java-version: 11
distribution: temurin
cache: gradle
- name: Publish sonatype snapshot
run: ./gradlew publishToSonatypeSnapshot
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Transcodes and compresses video files into the MP4 format, with audio support, u
Android codecs available on the device. Works on API 18+.

```groovy
implementation 'com.otaliastudios:transcoder:0.10.3'
implementation 'com.otaliastudios:transcoder:0.10.4'
```

- Fast transcoding to AAC/AVC
Expand Down
11 changes: 5 additions & 6 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
buildscript {

extra["minSdkVersion"] = 18
extra["compileSdkVersion"] = 30
extra["targetSdkVersion"] = 30
extra["compileSdkVersion"] = 31
extra["targetSdkVersion"] = 31

repositories {
google()
Expand All @@ -11,10 +11,9 @@ buildscript {
}

dependencies {
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.31")
classpath("com.android.tools.build:gradle:4.1.2")
classpath("org.jetbrains.dokka:dokka-gradle-plugin:1.4.30") // publisher uses 1.4.20 which goes OOM
classpath("io.deepmedia.tools:publisher:0.5.0")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.30")
classpath("com.android.tools.build:gradle:7.0.2")
classpath("io.deepmedia.tools:publisher:0.6.0")
}
}

Expand Down
12 changes: 6 additions & 6 deletions demo/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,20 @@ android {

defaultConfig {
applicationId = "com.otaliastudios.transcoder.demo"
setMinSdkVersion(property("minSdkVersion") as Int)
setTargetSdkVersion(property("targetSdkVersion") as Int)
minSdk = property("minSdkVersion") as Int
targetSdk = property("targetSdkVersion") as Int
versionCode = 1
versionName = "1.0"
}

compileOptions {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}

dependencies {
implementation(project(":lib"))
implementation("com.google.android.material:material:1.3.0")
implementation("androidx.appcompat:appcompat:1.2.0")
implementation("com.google.android.material:material:1.4.0")
implementation("androidx.appcompat:appcompat:1.3.1")
}
6 changes: 4 additions & 2 deletions demo/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@

<activity
android:name=".TranscoderActivity"
android:label="Transcoder">
android:label="Transcoder"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
Expand All @@ -25,7 +26,8 @@

<activity
android:name=".ThumbnailerActivity"
android:label="Thumbnailer">
android:label="Thumbnailer"
android:exported="true">
<intent-filter>
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
Expand Down
10 changes: 9 additions & 1 deletion docs/_about/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,13 @@ New versions are released through GitHub, so the reference page is the [GitHub R
> Starting from 0.7.0, you can now [support development](https://github.com/sponsors/natario1) through the GitHub Sponsors program.
Companies can share a tiny part of their revenue and get private support hours in return. Thanks!

### v0.10.4

- Fix: fixed crash in specific conditions ([#140][140])
- New: AssetFileDescriptorDataSource, can be used to transcode from AssetFileDescriptors ([#140][140])

<https://github.com/natario1/Transcoder/compare/v0.10.3...v0.10.4>

### v0.10.3

- Fix: error when merging many files, thanks to [@DamonChen117][DamonChen117] ([#134][134])
Expand Down Expand Up @@ -164,4 +171,5 @@ frames, the trim timestamp might be different than what was selected.
[128]: https://github.com/natario1/Transcoder/pull/128
[130]: https://github.com/natario1/Transcoder/pull/130
[132]: https://github.com/natario1/Transcoder/pull/132
[134]: https://github.com/natario1/Transcoder/pull/134
[134]: https://github.com/natario1/Transcoder/pull/134
[140]: https://github.com/natario1/Transcoder/pull/140
2 changes: 1 addition & 1 deletion docs/_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ google_analytics_id: 'UA-155077779-2'
google_site_verification: '4x49i17ABIrSvUl52SeL0-t0341aTnWWaC62-FYCRT4'
github: [metadata] # TODO What's this?
github_repo: Transcoder
github_version: 0.10.3
github_version: 0.10.4
github_branch: main
baseurl: '/Transcoder' # Keep as an empty string if served up at the root
collections:
Expand Down
9 changes: 8 additions & 1 deletion docs/_docs/data-sources.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,20 @@ using `addDataSource(context, uri)` in the transcoding builder.
##### FileDescriptorDataSource

A data source backed by a file descriptor. Use `new FileDescriptorDataSource(descriptor)` or
simply `addDataSource(descriptor)` in the transcoding builder.
simply `addDataSource(descriptor)` in the transcoding builder. Note that it is the caller
responsibility to close the file descriptor.

##### FilePathDataSource

A data source backed by a file absolute path. Use `new FilePathDataSource(path)` or
simply `addDataSource(path)` in the transcoding builder.

##### AssetFileDescriptorDataSource

A data source backed by Android's AssetFileDescriptor. Use `new AssetFileDescriptorDataSource(descriptor)`
or simply `addDataSource(descriptor)` in the transcoding builder. Note that it is the caller
responsibility to close the file descriptor.

### Track specific sources

Although a media source can have both audio and video, you can select a specific track
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.0.2-bin.zip
17 changes: 8 additions & 9 deletions lib/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,21 @@ plugins {
android {
setCompileSdkVersion(property("compileSdkVersion") as Int)
defaultConfig {
setMinSdkVersion(property("minSdkVersion") as Int)
setTargetSdkVersion(property("targetSdkVersion") as Int)
versionCode = 1
versionName = "0.10.3"
minSdk = property("minSdkVersion") as Int
targetSdk = property("targetSdkVersion") as Int
testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes["release"].isMinifyEnabled = false
}


dependencies {
api("com.otaliastudios.opengl:egloo:0.6.0")
api("androidx.annotation:annotation:1.1.0")
api("com.otaliastudios.opengl:egloo:0.6.1")
api("androidx.annotation:annotation:1.2.0")

androidTestImplementation("androidx.test:runner:1.3.0")
androidTestImplementation("androidx.test:rules:1.3.0")
androidTestImplementation("androidx.test.ext:junit:1.1.2")
androidTestImplementation("androidx.test:runner:1.4.0")
androidTestImplementation("androidx.test:rules:1.4.0")
androidTestImplementation("androidx.test.ext:junit:1.1.3")
androidTestImplementation("org.mockito:mockito-android:2.28.2")
}

Expand All @@ -42,6 +40,7 @@ publisher {
project.addDeveloper("natario1", "[email protected]")
release.sources = Release.SOURCES_AUTO
release.docs = Release.DOCS_AUTO
release.version = "0.10.4"

directory()

Expand Down

0 comments on commit dab9ac2

Please sign in to comment.