diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..44f1e65 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,12 @@ +name: ci +on: [push, pull_request] +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-java@v1 + with: + java-version: 1.8 + - uses: gradle/wrapper-validation-action@v1 + - run: ./gradlew build diff --git a/README.md b/README.md index 0ccc942..051139d 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +# libsuperuser + +[![ci][1]][2] + Example code for "How-To SU" For some outdated background details, see: @@ -418,3 +422,6 @@ dependencies { implementation 'eu.chainfire:libsuperuser:1.0.0.+' } ``` + +[1]: https://github.com/Chainfire/libsuperuser/workflows/ci/badge.svg +[2]: https://github.com/Chainfire/libsuperuser/actions diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 0000000..034e848 --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,21 @@ +# Security Policy + +## Supported Versions + +Use this section to tell people about which versions of your project are +currently being supported with security updates. + +| Version | Supported | +| ------- | ------------------ | +| 5.1.x | :white_check_mark: | +| 5.0.x | :x: | +| 4.0.x | :white_check_mark: | +| < 4.0 | :x: | + +## Reporting a Vulnerability + +Use this section to tell people how to report a vulnerability. + +Tell them where to go, how often they can expect to get an update on a +reported vulnerability, what to expect if the vulnerability is accepted or +declined, etc. diff --git a/libsuperuser/build.gradle b/libsuperuser/build.gradle index a96bdba..6216b9c 100644 --- a/libsuperuser/build.gradle +++ b/libsuperuser/build.gradle @@ -10,7 +10,7 @@ android { minSdkVersion 5 targetSdkVersion 26 } - + sourceSets { main { manifest.srcFile 'AndroidManifest.xml' @@ -32,7 +32,9 @@ group = "eu.chainfire" bintray { Properties properties = new Properties() - properties.load(project.rootProject.file('local.properties').newDataInputStream()) + if (project.rootProject.file('local.properties').exists()) { + properties.load(project.rootProject.file('local.properties').newDataInputStream()) + } user = properties.getProperty('bintray.user') key = properties.getProperty('bintray.apikey')