diff --git a/.github/workflows/android-cicd.yml b/.github/workflows/android-cicd.yml deleted file mode 100644 index eb2a8c1e..00000000 --- a/.github/workflows/android-cicd.yml +++ /dev/null @@ -1,52 +0,0 @@ -name: Build and Verify -# Builds, tests, and publishes dev builds of Android SDKs. The CD destination and CI configuration are handled by your gradle files. You only invoke tasks here -# ** Building multiple modules? If one depends on another, you'll have to build the dependencies in one step and the rest in another. -# See below for more info -# REPOSITORY SECRETS REQUIRED: (see https://docs.github.com/en/actions/security-guides/encrypted-secrets) -# "ARTIFACTORY_EMAIL": an artifactory account email with publish permissions for the destination artifactory -# "ARTIFACTORY_PASSWORD": the password for the artifactory account - -on: - push: - -jobs: - build-aars: - name: Build & Publish Dev Artifacts - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'temurin' - # This step will build all modules configured for publication and publish them - # Does your project publish multiple libraries in a dependency chain? You'll have to add another copy of this step and build the dependency in the first one - - name: Build and Publish to Dev Repo - uses: gradle/gradle-build-action@v3.1.0 - with: - arguments: artifactoryPublish - env: - ORG_GRADLE_PROJECT_artifactory_user: ${{ secrets.ARTIFACTORY_EMAIL }} - ORG_GRADLE_PROJECT_artifactory_password: ${{ secrets.ARTIFACTORY_PASSWORD }} - GH_USER: ${{ github.actor }} - TOKEN: ${{ secrets.GITHUB_TOKEN }} - - unit-tests: - name: Run Unit Tests - runs-on: ubuntu-latest - needs: build-aars - - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'temurin' - - name: Unit Tests - uses: gradle/gradle-build-action@v3.1.0 - with: - arguments: test - diff --git a/.github/workflows/artifactory-deploy-from-tag.yml b/.github/workflows/artifactory-deploy-from-tag.yml deleted file mode 100644 index c96abd6a..00000000 --- a/.github/workflows/artifactory-deploy-from-tag.yml +++ /dev/null @@ -1,34 +0,0 @@ -name: Deploy to Release Repo -# Builds, tests, and publishes dev builds of Android SDKs. The CD destination and CI configuration are handled by your gradle files. You only invoke tasks here -# ** Building multiple modules? If one depends on another, you'll have to build the dependencies in one step and the rest in another. -# See below for more info -# REPOSITORY SECRETS REQUIRED: (see https://docs.github.com/en/actions/security-guides/encrypted-secrets) -# "ARTIFACTORY_EMAIL": an artifactory account email with publish permissions for the destination artifactory -# "ARTIFACTORY_PASSWORD": the password for the artifactory account - -on: - release: - types: - - published - -jobs: - deploy: - name: Deploy - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'temurin' - # This step will build all modules configured for publication and publish them - # Does your project publish multiple libraries in a dependency chain? You'll have to add another copy of this step and build the dependency in the first one - - name: Deploy to Release Repo - uses: gradle/gradle-build-action@v3.1.0 - with: - arguments: artifactoryPublish - env: - ORG_GRADLE_PROJECT_artifactory_user: ${{ secrets.ARTIFACTORY_EMAIL }} - ORG_GRADLE_PROJECT_artifactory_password: ${{ secrets.ARTIFACTORY_PASSWORD }} diff --git a/.github/workflows/dokka-on-release.yml b/.github/workflows/dokka-on-release.yml deleted file mode 100644 index b6fc47d7..00000000 --- a/.github/workflows/dokka-on-release.yml +++ /dev/null @@ -1,59 +0,0 @@ -# Workflow for updating devdocs.mux.com with new documentation every time a new version is released -# -# Ths workflow assumes your releases are tagged either "vX.X.X" or "X.X.X", where X is a number of any length -# -# REQUIRED SECRETS: -# AWS_DOCS_KEY -# AWS_DOCS_SECRET -# DOCS_REPO_PAT -# REQUIRED CONFIGURATION: -# You have to change 'upload-android' to match a URL slug for your docs, like 'upload-android' or 'data-exoplayer' -# You have to supply the path to your dokka output. The default is library/build/dokka/html -# You may need to change the name of the Gradle task used for generating your Dokka docs -name: Upload Dokka DevDocs - -on: - release: - types: - - published - -jobs: - devdocs: - runs-on: ubuntu-latest - name: Generate and Upload Dokka Docs - - env: - AWS_EC2_METADATA_DISABLED: true - - steps: - - uses: actions/checkout@v3 - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '17' - distribution: 'temurin' - - name: Parse the version out of the tag name - id: version - run: > - echo "version_name="$(echo ${{ github.event.release.tag_name }} | sed -E "s/^v//")"" >> $GITHUB_OUTPUT - - name: Configure AWS - run: > - aws configure set aws_access_key_id ${{ secrets.AWS_DOCS_KEY }}; - aws configure set aws_secret_access_key ${{ secrets.AWS_DOCS_SECRET }} - - # If you have a multi-module project or monorepo, you'll need to repeat these steps - # POSSIBLE CONFIGURATION: make sure the `arguments:` tag matches the correct task(s) for your project - - name: Build Dokka Docs - uses: gradle/gradle-build-action@v3.1.0 - with: - arguments: ':library:dokkaHtml' - # REQUIRED CONFIGURATION: You have to change upload-android to a suitable URL slug for your project - - name: Update the docs AWS bucket - run: | - aws s3 rm --recursive "s3://mux-devdocs/upload-android/latest/" - aws s3 sync library/build/dokka/html s3://mux-devdocs/upload-android/${{ steps.version.outputs.version_name }}/ - aws s3 sync library/build/dokka/html s3://mux-devdocs/upload-android/latest/ - - name: Update the devdocs site - run: | - echo "${{ secrets.DOCS_REPO_PAT }}" | gh auth login --with-token - gh workflow run -R muxinc/devdocs-directory deploy-to-s3 diff --git a/.gitignore b/.gitignore index 8b5f540d..de966156 100644 --- a/.gitignore +++ b/.gitignore @@ -14,3 +14,5 @@ .externalNativeBuild .cxx local.properties +devdocs-site +devdocs-site-release diff --git a/app/src/main/java/com/mux/video/vod/demo/upload/screen/CreateUploadScreen.kt b/app/src/main/java/com/mux/video/vod/demo/upload/screen/CreateUploadScreen.kt index c3709ac1..5c831056 100644 --- a/app/src/main/java/com/mux/video/vod/demo/upload/screen/CreateUploadScreen.kt +++ b/app/src/main/java/com/mux/video/vod/demo/upload/screen/CreateUploadScreen.kt @@ -155,8 +155,6 @@ private fun BodyContent( thumbnail = state.thumbnail, modifier = Modifier.padding(start = 20.dp, end = 20.dp) ) - //Spacer(modifier = Modifier.fillMaxHeight()) - // TODO: Button DefaultButton( onClick = startUpload, modifier = Modifier diff --git a/build.gradle b/build.gradle index 7a400288..00077083 100644 --- a/build.gradle +++ b/build.gradle @@ -7,5 +7,7 @@ plugins { id 'com.android.application' version '8.4.2' apply false id 'com.android.library' version '8.4.2' apply false id 'org.jetbrains.kotlin.android' version '1.9.24' apply false - id 'com.mux.gradle.android.mux-android-distribution' version '1.1.2' apply false + id 'com.mux.gradle.android.mux-android-distribution' version '1.2.1' apply false } + +// a comment diff --git a/gradle.properties b/gradle.properties index a2e90d87..f19c7b9b 100644 --- a/gradle.properties +++ b/gradle.properties @@ -21,5 +21,4 @@ kotlin.code.style=official # resources declared in the library itself and none from the library's dependencies, # thereby reducing the size of the R class for that library android.nonTransitiveRClass=true -android.defaults.buildfeatures.buildconfig=true android.nonFinalResIds=false \ No newline at end of file diff --git a/library/build.gradle b/library/build.gradle index 127e217a..69449855 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -29,6 +29,9 @@ android { kotlinOptions { jvmTarget = '1.8' } + buildFeatures { + buildConfig true + } } muxDistribution { @@ -36,7 +39,7 @@ muxDistribution { releaseVersion versionFromTag() artifactIds just("upload") groupIds just("com.mux.video") - publicReleaseIf releaseOnTag() + publicReleaseIf releaseIfCmdFlag("publicRelease") packageJavadocs = true packageSources = true