Skip to content

Commit

Permalink
Update issue templates
Browse files Browse the repository at this point in the history
  • Loading branch information
underwindfall committed Apr 3, 2020
1 parent f172827 commit d2ea697
Show file tree
Hide file tree
Showing 14 changed files with 123 additions and 56 deletions.
38 changes: 38 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
---
name: Bug report
about: Create a report to help us improve
title: ''
labels: ''
assignees: ''

---

**Describe the bug**
A clear and concise description of what the bug is.

**To Reproduce**
Steps to reproduce the behavior:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error

**Expected behavior**
A clear and concise description of what you expected to happen.

**Screenshots**
If applicable, add screenshots to help explain your problem.

**Desktop (please complete the following information):**
- OS: [e.g. iOS]
- Browser [e.g. chrome, safari]
- Version [e.g. 22]

**Smartphone (please complete the following information):**
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]

**Additional context**
Add any other context about the problem here.
20 changes: 20 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
name: Feature request
about: Suggest an idea for this project
title: ''
labels: ''
assignees: ''

---

**Is your feature request related to a problem? Please describe.**
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

**Describe the solution you'd like**
A clear and concise description of what you want to happen.

**Describe alternatives you've considered**
A clear and concise description of any alternative solutions or features you've considered.

**Additional context**
Add any other context or screenshots about the feature request here.
8 changes: 8 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
### Guidelines

1. You must run the `spotlessApply` task before commiting, either through Android Studio or with `./gradlew spotlessApply`.
2. A PR should be focused and contained. If you are changing multiple unrelated things, they should be in separate PRs.
3. A PR should fix a bug or solve a problem - something that only you would use is not necessarily something that should be published.
4. Give your PR a detailed title and description - look over your code one last time before actually creating the PR. Give it a self-review.

**If you do not follow the guidelines, your PR will be rejected.**
16 changes: 16 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Android Check CI
on: [push]

jobs:
build:

runs-on: ubuntu-18.04

steps:
- uses: actions/checkout@v1
- name: set up JDK 1.8
uses: actions/setup-java@v1
with:
java-version: 1.8
- name: Build with Gradle
run: ./gradlew build check
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# PowerPermission
[ ![jCenter](https://api.bintray.com/packages/undervoid/PowerPermission/powerpermission/images/download.svg) ](https://bintray.com/undervoid/maven/Powerpermission/powerpermission/_latestVersion)
[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?style=flat-square)](https://www.apache.org/licenses/LICENSE-2.0.html)
![Android Check CI](https://github.com/underwindfall/PowerPermission/workflows/Android%20Check%20CI/badge.svg)
#### English Documentation | [中文文档](https://github.com/underwindfall/PowerPermission/blob/master/README_ZH.md)

## Table of Contents
Expand Down
4 changes: 4 additions & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# PowerPermission
[ ![jCenter](https://api.bintray.com/packages/undervoid/PowerPermission/powerpermission/images/download.svg) ](https://bintray.com/undervoid/maven/Powerpermission/powerpermission/_latestVersion)
[![License](https://img.shields.io/badge/license-Apache%202-4EB1BA.svg?style=flat-square)](https://www.apache.org/licenses/LICENSE-2.0.html)
![Android Check CI](https://github.com/underwindfall/PowerPermission/workflows/Android%20Check%20CI/badge.svg)
#### [English Documentation](https://github.com/underwindfall/PowerPermission) | 中文文档

## 目录
Expand All @@ -22,6 +25,7 @@
- [自定义解释界面](#-------)
- [Choose those permissions are rational](#choose-those-permissions-are-rational)
* [License](#license)

## 简介
`PowerPermission` 主要针对 `Android` 开发者在面对请求[RuntimePermission](https://developer.android.com/reference/java/lang/RuntimePermission)时的复杂流程的使用进行简化,来提高代码的便携效率。
> 在这个Repo已经有个示例的`application`或者你可以通过这个[链接](https://github.com/underwindfall/PowerPermission/releases)直接下载APK.
Expand Down

This file was deleted.

8 changes: 8 additions & 0 deletions dependencies.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,12 @@ ext {
//mock
mockKVersion = "1.9.3"
mockK = "io.mockk:mockk:$mockKVersion"


publishVersionID = "1.0.0"
groupProjectID = "com.qifan.powerpermission"
userName = "undervoid"
libName = "PowerPermission"
descriptionLib = "PowerPermission makes handling runtime permissions extremely easy."
websiteLib = "https://github.com/underwindfall/PowerPermission"
}
10 changes: 4 additions & 6 deletions powerpermission-coroutines/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -41,15 +41,13 @@ dependencies {
}

publish {
def groupProjectID = "com.qifan.powerpermission"
def publishVersionID = "1.0.0"
def artifactProjectID = "powerpermission-coroutines"

userOrg = "undervoid"
repoName = "PowerPermission"
userOrg = userName
repoName = libName
groupId = groupProjectID
artifactId = artifactProjectID
publishVersion = publishVersionID
desc = "PowerPermission makes handling runtime permissions extremely easy."
website = "https://github.com/underwindfall/PowerPermission"
desc = descriptionLib
website = websiteLib
}
10 changes: 4 additions & 6 deletions powerpermission-livedata/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,13 @@ dependencies {
}

publish {
def groupProjectID = "com.qifan.powerpermission"
def publishVersionID = "1.0.0"
def artifactProjectID = "powerpermission-livedata"

userOrg = "undervoid"
repoName = "PowerPermission"
userOrg = userName
repoName = libName
groupId = groupProjectID
artifactId = artifactProjectID
publishVersion = publishVersionID
desc = "PowerPermission makes handling runtime permissions extremely easy."
website = "https://github.com/underwindfall/PowerPermission"
desc = descriptionLib
website = websiteLib
}
10 changes: 4 additions & 6 deletions powerpermission-rxjava2/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@ dependencies {
}

publish {
def groupProjectID = "com.qifan.powerpermission"
def publishVersionID = "1.0.0"
def artifactProjectID = "powerpermission-rxjava2"

userOrg = "undervoid"
repoName = "PowerPermission"
userOrg = userName
repoName = libName
groupId = groupProjectID
artifactId = artifactProjectID
publishVersion = publishVersionID
desc = "PowerPermission makes handling runtime permissions extremely easy."
website = "https://github.com/underwindfall/PowerPermission"
desc = descriptionLib
website = websiteLib
}
10 changes: 4 additions & 6 deletions powerpermission-rxjava3/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,13 @@ dependencies {
}

publish {
def groupProjectID = "com.qifan.powerpermission"
def publishVersionID = "1.0.0"
def artifactProjectID = "powerpermission-rxjava3"

userOrg = "undervoid"
repoName = "PowerPermission"
userOrg = userName
repoName = libName
groupId = groupProjectID
artifactId = artifactProjectID
publishVersion = publishVersionID
desc = "PowerPermission makes handling runtime permissions extremely easy."
website = "https://github.com/underwindfall/PowerPermission"
desc = descriptionLib
website = websiteLib
}
10 changes: 4 additions & 6 deletions powerpermission/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,13 @@ dependencies {
}

publish {
def groupProjectID = "com.qifan.powerpermission"
def publishVersionID = "1.0.0"
def artifactProjectID = "powerpermission"

userOrg = "undervoid"
repoName = "PowerPermission"
userOrg = userName
repoName = libName
groupId = groupProjectID
artifactId = artifactProjectID
publishVersion = publishVersionID
desc = "PowerPermission makes handling runtime permissions extremely easy."
website = "https://github.com/underwindfall/PowerPermission"
desc = descriptionLib
website = websiteLib
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ class PowerPermissionManager internal constructor() {
"Created new PermissionFragment for %s",
fragmentActivity::class.java.simpleName
)
fragmentActivity.transact { add(this@apply, TAG_ACTIVITY) }
fragmentActivity.transact {
add(this@apply, TAG_ACTIVITY)
}
}
} else {
debug(
Expand All @@ -52,7 +54,9 @@ class PowerPermissionManager internal constructor() {
"Created new PermissionFragment for %s",
fragment::class.java.simpleName
)
fragment.transact { add(this@apply, TAG_FRAGMENT) }
fragment.transact {
add(this@apply, TAG_FRAGMENT)
}
}
} else {
debug(
Expand Down

0 comments on commit d2ea697

Please sign in to comment.