summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2024-08-23samba: Style fixesJoel Klinghed
Remove unused imports and shorten lone lines
2024-08-23samba: Add support for read/write fileJoel Klinghed
2024-08-23local: Simply PathFile.writeJoel Klinghed
Don't fiddle around with temp files and such. This needs to be handled on a higher level. Otherwise, how do you know if the temp file should be replaced or not when close is called?
2024-08-22fixup! samba: Add docker server run by testsJoel Klinghed
follow symlinks = no doesn't have intended effect
2024-08-22samba: Cleanup jni layerJoel Klinghed
Remember that jni::GlobalRef can be used on multiple threads so we can't store the env, need to call AttachCurrentThread. Fix AttachCurrentThread (g_vm was forgotten). More consistent move and copy constructors in refs. Removed env() method as it would only be valid for Param and Local anyway.
2024-08-22samba: Disable follow symlinks on samba serverJoel Klinghed
Also no unix extensions (as that is SMB1).
2024-08-22fixup! samba: Add docker server run by testsJoel Klinghed
Kotlin + truth is somewhat pedantic at times
2024-08-22gradle: Ignore .kotlin directoryJoel Klinghed
Shows up after gradle 8.10 upgrade but it's actually the kotlin upgrade
2024-08-22samba: Add docker server run by testsJoel Klinghed
Current user needs to be in docker group (or in some other way have access to the docker.socket) for this to work. Two current problems: * listRoot() fails, no directories are found. * gradle hangs after running the samba tests
2024-08-22samba: Fix crash when url->path == nullJoel Klinghed
2024-08-22Add AutoClosable to Tree interfaceJoel Klinghed
Some backends have resources to free, such as the SambaTree.
2024-08-20Support building libsamba.so for unittestsJoel Klinghed
Unittests still fail as there is no samba server to talk to (step 2).
2024-08-20Android Studio keeps changing this fileJoel Klinghed
2024-08-20Update androidx.livedata related libraries to 2.8.4Joel Klinghed
2024-08-20Update android gradle plugin to 8.5.2Joel Klinghed
2024-08-20Update gradle to 8.10Joel Klinghed
2024-08-19Increase the samba implemetationJoel Klinghed
With the exception of openDir, largely untested.
2024-07-25samba: Add credentials objectJoel Klinghed
Ask for enough permissions to be able to create sockets.
2024-07-23Drive-by: AS wants to remove the xml declaration for some reasonJoel Klinghed
2024-07-23Add initial code for samba implementation based on libsmb2Joel Klinghed
2024-07-16Break out io code in libsJoel Klinghed
Preparing for adding more io implementations. Really tried writing the convention plugins in kotlin dsl but could not find the exact right hacks to get it to work.
2024-07-15Remove values-v23 as minSdk = 29Joel Klinghed
Fixes lint warning.
2024-07-15Jump to Java 11 as base languageJoel Klinghed
1.8 is deprecated with Java 22
2024-07-15Fix some problems with LinkJoel Klinghed
And add more unittests for all of Directory, File and Link.
2024-07-15Add some tests in LocalTreeTest for removing directoriesJoel Klinghed
2024-07-15Add Utils#createFileAndDirectoriesJoel Klinghed
Useful when creating a file in a directory with a path.
2024-07-15Add Utils for parsing path parts to a directoryJoel Klinghed
2024-07-15Add Directory#openDir,File,LinkJoel Klinghed
If you know the expected type of a name, instead of listing all entries, just create an entry for the directory, file or link.
2024-07-15Move LocalTreeTest to ioJoel Klinghed
2024-07-14Remove blank lineJoel Klinghed
2024-07-14Bump android gradle plugin to 8.5.1Joel Klinghed
2024-07-14Add and configure detekt gradle pluginJoel Klinghed
Useful when you want to check without AS.
2024-07-14Add Directory#liveList and make Directory#list() directJoel Klinghed
Also move the LiveData outside Directory.Content. A lot of code doesn't care about Directory content in two seconds, they want to know it now. Also, the LiveData returned is one of the annoying one where the content isn't correct until someone observes it. This makes more sense this way.
2024-07-14Rename File#open to File#readJoel Klinghed
To match write.
2024-07-11Initial commitJoel Klinghed
Local (Path based) implementation of Tree, Directory, File and Link.