-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
800 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [ "main" ] | ||
pull_request: | ||
branches: [ "main" ] | ||
|
||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
|
||
detekt: | ||
name: Detekt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
- name: Change wrapper permissions | ||
run: chmod +x ./gradlew | ||
- name: Detekt | ||
uses: gradle/gradle-build-action@v3 | ||
with: | ||
arguments: detekt | ||
|
||
assemble-lib: | ||
name: Assemble Lib | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
- name: Change wrapper permissions | ||
run: chmod +x ./gradlew | ||
- name: Assemble | ||
uses: gradle/gradle-build-action@v3 | ||
with: | ||
arguments: :lib:assemble | ||
|
||
tests: | ||
name: Test | ||
needs: [ assemble-lib ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
- name: Change wrapper permissions | ||
run: chmod +x ./gradlew | ||
- name: Assemble | ||
uses: gradle/gradle-build-action@v3 | ||
with: | ||
arguments: allTests | ||
|
||
assemble-demo: | ||
name: Assemble Demo | ||
needs: [ assemble-lib ] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v4 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
- name: Change wrapper permissions | ||
run: chmod +x ./gradlew | ||
- name: Assemble Desktop | ||
uses: gradle/gradle-build-action@v3 | ||
with: | ||
arguments: :demo-desktop:assemble | ||
- name: Assemble Android | ||
uses: gradle/gradle-build-action@v3 | ||
with: | ||
arguments: :demo-android:assemble | ||
- name: Assemble Web | ||
uses: gradle/gradle-build-action@v3 | ||
with: | ||
arguments: :demo-web:assemble |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
68 changes: 68 additions & 0 deletions
68
demo-shared/src/commonMain/kotlin/pl/krystiankaniowski/composecharts/icons/AddDataSet.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
/* | ||
* Copyright 2024 The Android Open Source Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package pl.krystiankaniowski.composecharts.icons | ||
|
||
import androidx.compose.material.icons.Icons | ||
import androidx.compose.material.icons.materialIcon | ||
import androidx.compose.material.icons.materialPath | ||
import androidx.compose.ui.graphics.vector.ImageVector | ||
|
||
public val Icons.AddDataSet: ImageVector | ||
get() { | ||
if (_playlistAdd != null) { | ||
return _playlistAdd!! | ||
} | ||
_playlistAdd = materialIcon(name = "AutoMirrored.Filled.PlaylistAdd", autoMirror = true) { | ||
materialPath { | ||
moveTo(14.0f, 10.0f) | ||
horizontalLineTo(3.0f) | ||
verticalLineToRelative(2.0f) | ||
horizontalLineToRelative(11.0f) | ||
verticalLineTo(10.0f) | ||
close() | ||
moveTo(14.0f, 6.0f) | ||
horizontalLineTo(3.0f) | ||
verticalLineToRelative(2.0f) | ||
horizontalLineToRelative(11.0f) | ||
verticalLineTo(6.0f) | ||
close() | ||
moveTo(18.0f, 14.0f) | ||
verticalLineToRelative(-4.0f) | ||
horizontalLineToRelative(-2.0f) | ||
verticalLineToRelative(4.0f) | ||
horizontalLineToRelative(-4.0f) | ||
verticalLineToRelative(2.0f) | ||
horizontalLineToRelative(4.0f) | ||
verticalLineToRelative(4.0f) | ||
horizontalLineToRelative(2.0f) | ||
verticalLineToRelative(-4.0f) | ||
horizontalLineToRelative(4.0f) | ||
verticalLineToRelative(-2.0f) | ||
horizontalLineTo(18.0f) | ||
close() | ||
moveTo(3.0f, 16.0f) | ||
horizontalLineToRelative(7.0f) | ||
verticalLineToRelative(-2.0f) | ||
horizontalLineTo(3.0f) | ||
verticalLineTo(16.0f) | ||
close() | ||
} | ||
} | ||
return _playlistAdd!! | ||
} | ||
|
||
private var _playlistAdd: ImageVector? = null |
Oops, something went wrong.