viliussutkus89 / tmpfile-android Goto Github PK
View Code? Open in Web Editor NEWtmpfile POSIX function fix for Android
License: GNU General Public License v3.0
tmpfile POSIX function fix for Android
License: GNU General Public License v3.0
Somewhy gradle returns EXIT_SUCCESS.
> Task :tests:connectedDebugAndroidTest
Starting 30 tests on test(AVD) - 4.1.2
com.viliussutkus89.android.tmpfile.tests.aartesting.NoLeftoverTmpfiles > noLeftoverTmpfiles[test(AVD) - 4.1.2] FAILED
java.lang.NullPointerException
at com.viliussutkus89.android.tmpfile.tests.aartesting.NoLeftoverTmpfiles.noLeftoverTmpfiles(NoLeftoverTmpfiles.java:17)
> Task :tests:connectedAndroidTest
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: "v${{ steps.get_version.outputs.version }}"
name: "${{ github.event.repository.name }} v${{ steps.get_version.outputs.version }}"
files: |
"${{ steps.get_home_dir.outputs.home }}/.m2/repository/**"
app-debug.apk
Somewhy this doesn't pick them up
POSIX C library provides FILE *tmpfile(void)
function with a following contract
The file will be automatically deleted when it is closed or the program terminates.
This implementation automatically deletes the file when it is closed.
Temporary file deletion on program termination would be useful too.
AAR dependency obtained through jitpack is stored in $GRADLE_USER_HOME/somewhere/some_UUID/tmpfile-1.0.0.aar
This is problematic, because, I have no intention of putting "some_UUID" in Usage section of README.md.
Path to tmpfile-1.0.0.aar is needed so that it could be extracted and libtmpfile.so available to be linked against when compiling CMake projects.
task extractLibtmpfileSoForLinkingInCMake(type: Copy) {
from zipTree("${project.rootDir}/app/libs/tmpfile-1.0.0.aar")
into "${project.buildDir}/tmpfile/"
include "jni/**/libtmpfile.so"
}
preBuild.dependsOn extractLibtmpfileSoForLinkingInCMake
Android searches for libraries in jniLibs and libs/*.aar/jniLibs.
If an aar has another aar inside it, which has a jniLib, it does not get added to the search path at runtime.
Temp workaround in final app that uses the library, that uses libtmpfile
implementation files('libs/tmpfile-1.0.0.aar')
Calls to tmpfile function and closed file garbage collection are not thread safe. Fix this.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.