Skip to content

Commit

Permalink
Integrated Github Actions (#3)
Browse files Browse the repository at this point in the history
* Integrated Github Actions
  • Loading branch information
hi-manshu authored Aug 14, 2022
1 parent 648d01e commit d7bd838
Show file tree
Hide file tree
Showing 6 changed files with 81 additions and 3 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.
16 changes: 16 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Pull Request Workflow

on: pull_request
jobs:
code-style-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-java@v1
with:
java-version: 11
- name: ktlint check
uses: gradle/gradle-build-action@v2
with:
arguments: ktlintCheck

2 changes: 1 addition & 1 deletion app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ android {
}

dependencies {
//implementation(project(":charty"))
// implementation(project(":charty"))
implementation("com.himanshoe:charty:1.0.0-alpha01")
implementation(Deps.Compose.ui)
implementation(Deps.Compose.material)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ fun CurveLineChart(
pointsPath.apply {
reset()
moveTo(offsetItems.first().x, offsetItems.first().y)
(0.until(offsetItems.size .minus(1))).forEach { index ->
(0.until(offsetItems.size.minus(1))).forEach { index ->
cubicTo(
graphPathPoints[index].x, graphPathPoints[index].y,
backgroundPathPoints[index].x, backgroundPathPoints[index].y,
Expand Down
6 changes: 5 additions & 1 deletion charty/src/main/java/com/himanshoe/charty/pie/PieChart.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ import androidx.compose.foundation.gestures.detectTapGestures
import androidx.compose.foundation.layout.BoxWithConstraints
import androidx.compose.foundation.layout.height
import androidx.compose.foundation.layout.width
import androidx.compose.runtime.*
import androidx.compose.runtime.Composable
import androidx.compose.runtime.LaunchedEffect
import androidx.compose.runtime.MutableState
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.remember
import androidx.compose.ui.Modifier
import androidx.compose.ui.geometry.Offset
import androidx.compose.ui.geometry.Size
Expand Down

0 comments on commit d7bd838

Please sign in to comment.