Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

On_audio_edit deprecated #23

Open
LucianoVg opened this issue Jul 1, 2023 · 4 comments
Open

On_audio_edit deprecated #23

LucianoVg opened this issue Jul 1, 2023 · 4 comments

Comments

@LucianoVg
Copy link

Hello, when I start the debugging of my app I get the following error:
The Android Gradle plugin supports only Kotlin Gradle plugin version 1.5.20 and higher.
The following dependencies do not satisfy the required version:
project ':on_audio_edit' -> org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32

@MSOB7YY
Copy link

MSOB7YY commented Jul 8, 2023

update dependencies by updating these 2 files:

  1. android\gradle\wrapper\gradle-wrapper.properties
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5-all.zip
  1. android\build.gradle
ext.kotlin_version = '1.7.10'
...
classpath 'com.android.tools.build:gradle:7.3.0'
...
compileSdkVersion 33

and lastly, this kotlin code needs to be updated:

  • android\src\main\kotlin\com\lucasjosino\on_audio_edit\utils\OnWarningSizeCall.kt
package com.lucasjosino.on_audio_edit.utils

import android.util.Log

fun warningSizeCall(sizeValue: Long, data: String) {
   when {
       sizeValue >= 13 -> {
           Log.e("on_audio_warning", "-------------------------------------------------------------------------------------")
           Log.e("on_audio_wn_size", "[$data] size is bigger than 13 MB - [$sizeValue MB]")
           Log.e("on_audio_warning", "-------------------------------------------------------------------------------------")
       }
       sizeValue >= 10 -> {
           Log.e("on_audio_warning", "[$data] size is bigger than 10 MB - [$sizeValue MB]")
       }
       sizeValue >= 6 -> {
           Log.i("on_audio_warning", "[$data] size is bigger than 6 MB - [$sizeValue MB]")
       }
       else -> {
       
       }
   }
}

@LucianoVg
Copy link
Author

I tried what you told me and it didn't work. Thank you very much for taking the time to answer me!! (:

@MSOB7YY
Copy link

MSOB7YY commented Jul 9, 2023

alr could u try my branch and check if it's working ?
https://github.com/MSOB7YY/on_audio_edit/

it's working fine for me, if ur getting any errors post it here pls

  • add in pubspec.yaml like this
on_audio_edit:
    git:
      url: https://github.com/MSOB7YY/on_audio_edit

@LucianoVg
Copy link
Author

LucianoVg commented Jul 12, 2023

Hi, sorry for the delay in responding.
I tried your branch, it seems to work, the error did not appear.
Now I have to learn how to edit the tags xD.
Thank you so much!!
Do you have an example of how to edit a song tag?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants