Upload File from Android app to Supabase Storage

I'm trying send data from a device storage with an app to an external service on Android. My goal is to make the app scan the directory: /storage/emulated/0/Test
and upload whatever file/image is there to Supabase storage. I already created a project and a Supabase storage bucket. As far as I understand, I can use the Standard Upload method from here which is this:

supabase.storage.from("bucket_name").upload("file_path", bytes)

//Or on JVM/Android: (This will stream the data from the file to supabase)
supabase.storage.from("bucket_name").upload("file_path", file)


This requires use of Kotlin. Due to not having a PC, I'm using a mobile app CodeAssist, which is outdated and is having issues compiling app with the Kotlin used by it and the Supabase libraries, I think because of versioning issues.
Can someone kindly create a sample Android app for me which allows me to(or does automatically) send file/files to Supabase storage bucket?
Learn how to upload files to Supabase Storage.
Was this page helpful?