TheArchitect123 / KmpEssentials

KmpEssentials is a library that contains apis (35+ Modules) to accelerate your development. Everything from managing the Battery, File System, getting Package information, or taking Photos. Supports iOS, Android & AppleWatch
MIT License
115 stars 1 forks source link

Android: "shareFileWithAnyApp" shares text instead of file. #9

Open Monabr opened 3 hours ago

Monabr commented 3 hours ago

Hello.

I am using version 1.0.5

Here is example:

val filePath = KmpFileSystem.getTempCacheDirectory() + "/" + fileName + ".csv"

...logic of data filling...

KmpShare.shareFileWithAnyApp(filePath = filePath, optionalTitle = "Share")

Result will filePath string instead of file.

Monabr commented 3 hours ago

@TheArchitect123 seems like shareTextWithAnyApp and shareFileWithAnyApp have identical body code.