Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 16 additions & 22 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v4

- name: Get updated version name
run: |
BRANCH_NAME="${{ github.ref_name }}"
VERSION=${BRANCH_NAME#release/}

echo "VERSION_NAME=${VERSION}" >> $GITHUB_ENV

- name: Set Up JDK 17
uses: actions/setup-java@v4
with:
Expand All @@ -33,27 +40,14 @@ jobs:
ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.SIGNING_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.SIGNING_PRIVATE_KEY }}

- name: Create GitHub release
uses: actions/github-script@v6
- name: Create Release
id: create_release
uses: softprops/action-gh-release@v2
env:
REF_NAME: "${{ github.ref_name }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
script: |
try {
const releaseName = process.env.REF_NAME.replace('release/', '');
const response = await github.rest.repos.createRelease({
draft: false,
generate_release_notes: true,
name: releaseName,
owner: context.repo.owner,
prerelease: false,
repo: context.repo.repo,
tag_name: releaseName,
});

core.exportVariable('RELEASE_ID', response.data.id);
core.exportVariable('RELEASE_UPLOAD_URL', response.data.upload_url);
} catch (error) {
core.setFailed(error.message);
}
draft: false
name: v${{ env.VERSION_NAME }}
generate_release_notes: true
prerelease: false
tag_name: v${{ env.VERSION_NAME }}
33 changes: 5 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# NextLib

[![Build nextlib](https://github.com/anilbeesetti/nextlib/actions/workflows/build.yaml/badge.svg)](https://github.com/anilbeesetti/nextlib/actions/workflows/build.yaml) [![](https://jitpack.io/v/anilbeesetti/nextlib.svg)](https://jitpack.io/#anilbeesetti/nextlib)
[![Build nextlib](https://github.com/anilbeesetti/nextlib/actions/workflows/build.yaml/badge.svg)](https://github.com/anilbeesetti/nextlib/actions/workflows/build.yaml) [![Maven Central](https://img.shields.io/maven-central/v/io.github.anilbeesetti/nextlib-media3ext.svg?label=Maven%20Central)](https://central.sonatype.com/artifact/io.github.anilbeesetti/nextlib-media3ext)

NextLib is a library for adding ffmpeg codecs to [Media3](https://github.com/androidx/media).

Expand All @@ -9,44 +9,21 @@ NextLib is a library for adding ffmpeg codecs to [Media3](https://github.com/and
- **Video**: H.264, HEVC, VP8, VP9

## Setup

NextLib is available at JitPack's Maven repo.

First, you have to add the jitpack's maven repo to your build.gradle

Kotlin DSL:

```kotlin
repositories {
maven { url = uri("https://jitpack.io") }
}
```

Groovy DSL:

```gradle
repositories {
maven { url 'https://jitpack.io' }
}
```

Now, you have to add the dependency to nextlib in your build.gradle

Kotlin DSL:

```kotlin
dependencies {
implementation("com.github.anilbeesetti.nextlib:nextlib-media3ext:INSERT_VERSION_HERE") // To add media3 software decoders and extensions
implementation("com.github.anilbeesetti.nextlib:nextlib-mediainfo:INSERT_VERSION_HERE") // To get media info through ffmpeg
implementation("io.github.anilbeesetti:nextlib-media3ext:INSERT_VERSION_HERE") // To add media3 software decoders and extensions
implementation("io.github.anilbeesetti:nextlib-mediainfo:INSERT_VERSION_HERE") // To get media info through ffmpeg
}
```

Groovy DSL:

```gradle
dependencies {
implementation "com.github.anilbeesetti.nextlib:nextlib-media3ext:INSERT_VERSION_HERE" // To add media3 software decoders and extensions
implementation "com.github.anilbeesetti.nextlib:nextlib-mediainfo:INSERT_VERSION_HERE" // To get media info through ffmpeg
implementation "io.github.anilbeesetti:nextlib-media3ext:INSERT_VERSION_HERE" // To add media3 software decoders and extensions
implementation "io.github.anilbeesetti:nextlib-mediainfo:INSERT_VERSION_HERE" // To get media info through ffmpeg
}
```

Expand Down
Loading