From 3e953862301ec7c5f8fe74461f895f43c430ba01 Mon Sep 17 00:00:00 2001 From: Jaeyun Date: Wed, 18 Aug 2021 19:04:21 +0900 Subject: [PATCH] [Android/Build] remove release flag Remove release flag and related source. Uploading library to jcenter is not available anymore. Signed-off-by: Jaeyun --- java/android/build.gradle | 2 -- java/android/nnstreamer/build.gradle | 1 - java/build-nnstreamer-android.sh | 47 ------------------------------------ 3 files changed, 50 deletions(-) diff --git a/java/android/build.gradle b/java/android/build.gradle index 169e6ee..3786473 100644 --- a/java/android/build.gradle +++ b/java/android/build.gradle @@ -7,8 +7,6 @@ buildscript { } dependencies { classpath 'com.android.tools.build:gradle:3.3.1' - // add dependency (bintray) - // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } diff --git a/java/android/nnstreamer/build.gradle b/java/android/nnstreamer/build.gradle index b277a9a..1bb31bb 100644 --- a/java/android/nnstreamer/build.gradle +++ b/java/android/nnstreamer/build.gradle @@ -1,5 +1,4 @@ apply plugin: 'com.android.library' -// add plugin (bintray) android { compileSdkVersion 28 diff --git a/java/build-nnstreamer-android.sh b/java/build-nnstreamer-android.sh index 726ef74..6405666 100644 --- a/java/build-nnstreamer-android.sh +++ b/java/build-nnstreamer-android.sh @@ -87,9 +87,6 @@ target_abi="arm64-v8a" # Run instrumentation test after build procedure is done run_test="no" -# Variables to release library (GROUP:ARTIFACT:VERSION) -release_bintray="no" - # Enable GStreamer Tracing enable_tracing="no" @@ -141,18 +138,6 @@ for arg in "$@"; do --target_abi=*) target_abi=${arg#*=} ;; - --release=*) - release_bintray=${arg#*=} - ;; - --release_version=*) - release_version=${arg#*=} - ;; - --bintray_user_name=*) - bintray_user_name=${arg#*=} - ;; - --bintray_user_key=*) - bintray_user_key=${arg#*=} - ;; --run_test=*) run_test=${arg#*=} ;; @@ -307,13 +292,6 @@ if [[ $enable_tflite == "yes" ]]; then echo "Build with tensorflow-lite $tf_lite_ver" fi -if [[ $release_bintray == "yes" ]]; then - [ -z "$release_version" ] && echo "Set release version." && exit 1 - [ -z "$bintray_user_name" ] || [ -z "$bintray_user_key" ] && echo "Set user info to release." && exit 1 - - echo "Release version: $release_version user: $bintray_user_name" -fi - if [[ $enable_flatbuf == "yes" ]]; then echo "Build with flatbuffers v$flatbuf_ver for the converter/decoder sub-plugin" fi @@ -528,25 +506,6 @@ if [[ $enable_flatbuf == "yes" ]]; then tar -xJf ./external/flatbuffers-${flatbuf_ver}.tar.xz -C ./nnstreamer/src/main/jni fi -# Add dependency for release -if [[ $release_bintray == "yes" ]]; then - sed -i "s|// add dependency (bintray)|classpath 'com.novoda:bintray-release:0.9.1'|" build.gradle - - sed -i "s|// add plugin (bintray)|apply plugin: 'com.novoda.bintray-release'\n\ -\n\ -publish {\n\ - userOrg = 'nnsuite'\n\ - repoName = 'nnstreamer'\n\ - groupId = 'org.nnsuite'\n\ - artifactId = '$nnstreamer_lib_name'\n\ - publishVersion = '$release_version'\n\ - desc = 'NNStreamer API for Android'\n\ - website = 'https://github.com/nnstreamer/nnstreamer'\n\ - issueTracker = 'https://github.com/nnstreamer/nnstreamer/issues'\n\ - repository = 'https://github.com/nnstreamer/nnstreamer.git'\n\ -}|" nnstreamer/build.gradle -fi - # If build option is single-shot only, remove unnecessary files. if [[ $nnstreamer_api_option == "single" ]]; then rm ./nnstreamer/src/main/java/org/nnsuite/nnstreamer/CustomFilter.java @@ -615,12 +574,6 @@ if [[ -e "$nnstreamer_android_api_lib" ]]; then rm -rf aar_extracted main ndk_static - # Upload to jcenter - if [[ $release_bintray == "yes" ]]; then - echo "Upload NNStreamer library to Bintray." - sh ./gradlew nnstreamer:bintrayUpload -PbintrayUser=$bintray_user_name -PbintrayKey=$bintray_user_key -PdryRun=false - fi - # Run instrumentation test if [[ $run_test == "yes" ]]; then echo "Run instrumentation test." -- 2.7.4