Giter Site home page Giter Site logo

viliussutkus89 / tmpfile-android Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 491 KB

tmpfile POSIX function fix for Android

License: GNU General Public License v3.0

Java 13.27% CMake 1.97% C++ 16.90% Shell 1.25% C 12.94% Perl 53.68%
tmpfile android workaround posix bionic

tmpfile-android's People

Contributors

actions-user avatar dependabot[bot] avatar viliussutkus89 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

tmpfile-android's Issues

[CI] Fail unit tests on unhandled exception in instrumented tests

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

[CD] Attach library files to GitHub release

      - 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

Consume this library from jitpack or jcentral or elsewhere

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.