Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publish to maven.theoplayer.com #18

Merged
merged 6 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from 5 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
35 changes: 35 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish release
on:
# Runs whenever a new tag is pushed
push:
tags:
- '*.*.*'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
# Publish job
publish:
runs-on: ubuntu-latest
# Sets permissions of the GITHUB_TOKEN to allow publishing to GitHub Packages
permissions:
contents: read
packages: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: 17
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v3
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v3
- name: Publish package
run: ./gradlew publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
REPOSILITE_USERNAME: ${{ secrets.REPOSILITE_USERNAME }}
REPOSILITE_PASSWORD: ${{ secrets.REPOSILITE_PASSWORD }}
MattiasBuelens marked this conversation as resolved.
Show resolved Hide resolved
20 changes: 10 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
# THEOplayer Android SDK Connectors

This repository is maintained by [THEO Technologies](https://www.theoplayer.com/) and contains the different connectors available with THEOplayer Unified Android SDK.
This repository is maintained by [THEO Technologies](https://www.theoplayer.com/) and contains the different connectors available with the THEOplayer Android SDK.

The THEOplayer Unified Android SDK enables you to quickly deliver content playback on Android, Android TV and Fire TV.
The THEOplayer Android SDK enables you to quickly deliver content playback on Android, Android TV and Fire TV.

Using the available connectors allows you to augment the features delivered through the Unified Android SDK.
Using the available connectors allows you to augment the features delivered through the Android SDK.

## Prerequisites

The THEOplayer Android SDK Connectors requires the application to import the THEOplayer Unified Android SDK since the connector relies on its public APIs.
For more details about importing THEOplayer Unified Android SDK check the [documentation](https://docs.theoplayer.com/getting-started/01-sdks/02-android-unified/00-getting-started.md).
The THEOplayer Android SDK Connectors requires the application to import the THEOplayer Android SDK since the connector relies on its public APIs.
For more details about importing THEOplayer Android SDK check the [documentation](https://www.theoplayer.com/docs/theoplayer/getting-started/sdks/android/getting-started/).

## Available Connectors

Expand All @@ -23,23 +23,23 @@ For more details about importing THEOplayer Unified Android SDK check the [docum
Notes:
* The `+` will fetch the latest released version of THEOplayer Android SDK Connector.
* Android Studio will recommend replacing the `+` with the exact version of THEOplayer Android SDK Connector.
* The THEOplayer Unified Android SDK and the THEOplayer Android SDK Connectors are stable when using the same version.
It's not recommended to use different versions for Unified Android SDK and the Connectors.
* The THEOplayer Android SDK and the THEOplayer Android SDK Connectors are stable when using the same version.
It's not recommended to use different versions for the Android SDK and the Connectors.

## Installation

The THEOplayer Android SDK Connectors are available through Jitpack using the `com.theoplayer.android-connector` group which is different than the group of THEOplayer Android SDK.
The THEOplayer Android SDK Connectors are available through the [THEOplayer Maven repository](https://maven.theoplayer.com/) using the `com.theoplayer.android-connector` group which is different than the group of THEOplayer Android SDK.

To set up the dependency follow these steps:

In your **project** level `build.gradle` file add the Jitpack repository:
In your **project** level `build.gradle` file add the THEOplayer Maven repository:

```
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
maven { url 'https://maven.theoplayer.com/releases/' }
}
}
```
Expand Down
3 changes: 2 additions & 1 deletion connectors/analytics/conviva/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ The Conviva connector provides a Conviva integration for THEOplayer Android SDK.

## Prerequisites

The THEOplayer Android SDK Conviva Connector requires the application to import the THEOplayer Android SDK (either WebView-based or Unified Android SDK) since the connector relies on its public APIs. For more details, check out our [Getting started on Unified Android](https://docs.theoplayer.com/getting-started/01-sdks/02-android-unified/00-getting-started.md) or [Getting started on Android](https://docs.theoplayer.com/getting-started/01-sdks/02-android/00-getting-started.md) guide.
The THEOplayer Android SDK Conviva Connector requires the application to import the THEOplayer Android SDK since the connector relies on its public APIs.
For more details, check out our [Getting started on Android](https://www.theoplayer.com/docs/theoplayer/getting-started/sdks/android/getting-started/) guide.

For setting up a valid Conviva session, you must have access to a [Conviva developer account](https://pulse.conviva.com/) with access to a debug or production key.

Expand Down
9 changes: 3 additions & 6 deletions connectors/analytics/nielsen/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,8 @@ The Nielsen connector provides a Nielsen integration for THEOplayer Android SDK.

## Prerequisites

The THEOplayer Android SDK Nielsen Connector requires the application to import the
THEOplayer Android SDK (either WebView-based or Unified Android SDK) since the connector relies on
its public APIs. For more details, check out our
[Getting started on Unified Android](https://docs.theoplayer.com/getting-started/01-sdks/02-android-unified/00-getting-started.md)
or [Getting started on Android](https://docs.theoplayer.com/getting-started/01-sdks/02-android/00-getting-started.md) guide.
The THEOplayer Android SDK Nielsen Connector requires the application to import the THEOplayer Android SDK since the connector relies on its public APIs.
For more details, check out our [Getting started on Android](https://www.theoplayer.com/docs/theoplayer/getting-started/sdks/android/getting-started/) guide.

## Installation
After setting up the THEOplayer Android SDK, in your **module** level `build.gradle` file add the THEOplayer
Expand All @@ -23,7 +20,7 @@ Also in the `build.gradle` file, specify the Nielsen maven repository inside the

```groovy
repositories {
maven { url 'https://jitpack.io' }
maven { url 'https://maven.theoplayer.com/releases/' }
maven { url 'https://raw.githubusercontent.com/NielsenDigitalSDK/nielsenappsdk-android/master/'}
}
```
Expand Down
19 changes: 19 additions & 0 deletions connectors/publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,25 @@ tasks.register("dokkaJavadocJar", Jar) {

afterEvaluate {
publishing {
repositories {
maven {
name = "reposilite"
url = uri("https://reposilite.prudentgiraffe.com/releases")
MattiasBuelens marked this conversation as resolved.
Show resolved Hide resolved
credentials {
username = System.getenv("REPOSILITE_USERNAME")
password = System.getenv("REPOSILITE_PASSWORD")
}
}
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/THEOplayer/android-connector")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}

publications {
release(MavenPublication) {
groupId project.ext.groupId
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url 'https://maven.theoplayer.com/releases/' }
maven { url 'https://raw.githubusercontent.com/NielsenDigitalSDK/nielsenappsdk-android/master/'}
maven { url 'https://jitpack.io' }
}
}

Expand Down