From 08a512c5c66ac6d2b60d2c0a5717382ece29c7b5 Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Fri, 10 Apr 2020 12:05:22 -0700 Subject: [PATCH 1/4] Do not fail with no local.properties --- libsuperuser/build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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') From 35c6a15ccb6527df4c57544bb7d690406e07341a Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Fri, 10 Apr 2020 11:49:00 -0700 Subject: [PATCH 2/4] Enable basic GitHub Actions CI --- .github/workflows/ci.yml | 12 ++++++++++++ README.md | 7 +++++++ 2 files changed, 19 insertions(+) create mode 100644 .github/workflows/ci.yml 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..93c3c27 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,7 @@ +# librootjava + +[![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 From 53f7e995bedb005043745cf9fa3f4c5cb8b1902c Mon Sep 17 00:00:00 2001 From: Frieder Bluemle Date: Sat, 11 Apr 2020 16:03:34 -0700 Subject: [PATCH 3/4] Fix README.md title --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 93c3c27..051139d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# librootjava +# libsuperuser [![ci][1]][2] From 1b87b581fadb2fd69a6b05c8828ccffabb5eeee8 Mon Sep 17 00:00:00 2001 From: tonirmv <75666914+tonirmv@users.noreply.github.com> Date: Wed, 9 Dec 2020 13:57:18 -0700 Subject: [PATCH 4/4] # 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. ![ci](https://github.com/Chainfire/libsuperuser/workflows/ci/badge.svg?branch=master) --- SECURITY.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 SECURITY.md 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.