Skip to content

Commit

Permalink
remove icons extended
Browse files Browse the repository at this point in the history
  • Loading branch information
alexzhirkevich committed Jul 31, 2024
1 parent 6ab2e59 commit f76c62c
Show file tree
Hide file tree
Showing 15 changed files with 421 additions and 73 deletions.

This file was deleted.

1 change: 0 additions & 1 deletion example/shared/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ kotlin {
implementation("org.jetbrains.androidx.navigation:navigation-compose:2.7.0-alpha07")
implementation("org.jetbrains.androidx.lifecycle:lifecycle-viewmodel-compose:2.8.0")
implementation(compose.material3)
implementation(compose.materialIconsExtended)
implementation(compose.components.resources)
implementation(libs.serialization)
implementation(libs.coil.compose)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ import androidx.compose.foundation.shape.CircleShape
import androidx.compose.foundation.verticalScroll
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.filled.Close
import androidx.compose.material.icons.filled.Repeat
import androidx.compose.material.icons.filled.RepeatOne
import androidx.compose.material3.Button
import androidx.compose.material3.Card
import androidx.compose.material3.CardDefaults
Expand Down Expand Up @@ -85,6 +83,8 @@ import io.github.alexzhirkevich.compottie.rememberLottieComposition
import io.github.alexzhirkevich.compottie.rememberLottiePainter
import io.github.alexzhirkevich.shared.generated.resources.Res
import kotlinx.coroutines.launch
import lottiefiles.icons.Repeat
import lottiefiles.icons.RepeatOne
import opacityGrid
import org.jetbrains.compose.resources.ExperimentalResourceApi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,10 @@ import androidx.compose.foundation.lazy.grid.items
import androidx.compose.foundation.lazy.grid.rememberLazyGridState
import androidx.compose.foundation.shape.CircleShape
import androidx.compose.material.icons.Icons
import androidx.compose.material.icons.automirrored.filled.OpenInNew
import androidx.compose.material.icons.automirrored.filled.Sort
import androidx.compose.material.icons.filled.Close
import androidx.compose.material.icons.filled.Done
import androidx.compose.material.icons.filled.Person
import androidx.compose.material.icons.filled.Search
import androidx.compose.material.icons.outlined.FileDownload
import androidx.compose.material.icons.rounded.ArrowBackIos
import androidx.compose.material.icons.rounded.ArrowForwardIos
import androidx.compose.material3.AssistChip
import androidx.compose.material3.Button
import androidx.compose.material3.ButtonDefaults
Expand Down Expand Up @@ -100,6 +95,11 @@ import io.github.alexzhirkevich.compottie.rememberLottieComposition
import io.github.alexzhirkevich.compottie.rememberLottiePainter
import io.github.alexzhirkevich.shared.generated.resources.Res
import io.ktor.http.encodeURLPath
import lottiefiles.icons.ArrowBackIos
import lottiefiles.icons.ArrowForwardIos
import lottiefiles.icons.FileDownload
import lottiefiles.icons.OpenInNew
import lottiefiles.icons.Sort
import lottiefiles.theme.LottieFilesTheme
import org.jetbrains.compose.resources.ExperimentalResourceApi
import kotlin.math.abs
Expand All @@ -112,7 +112,6 @@ internal fun LottieFilesScreen(
LottieFilesTheme {
DisposableEffect(0) {
val l = Compottie.logger
// Compottie.logger = null
onDispose {
Compottie.logger = l
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
package lottiefiles.icons

/*
* 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.
*/


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
import kotlin.Deprecated

@Deprecated(
"Use the AutoMirrored version at Icons.AutoMirrored.Rounded.ArrowBackIos",
ReplaceWith( "Icons.AutoMirrored.Rounded.ArrowBackIos",
"androidx.compose.material.icons.automirrored.rounded.ArrowBackIos"),
)
public val Icons.Rounded.ArrowBackIos: ImageVector
get() {
if (_arrowBackIos != null) {
return _arrowBackIos!!
}
_arrowBackIos = materialIcon(name = "Rounded.ArrowBackIos") {
materialPath {
moveTo(16.62f, 2.99f)
curveToRelative(-0.49f, -0.49f, -1.28f, -0.49f, -1.77f, 0.0f)
lineTo(6.54f, 11.3f)
curveToRelative(-0.39f, 0.39f, -0.39f, 1.02f, 0.0f, 1.41f)
lineToRelative(8.31f, 8.31f)
curveToRelative(0.49f, 0.49f, 1.28f, 0.49f, 1.77f, 0.0f)
reflectiveCurveToRelative(0.49f, -1.28f, 0.0f, -1.77f)
lineTo(9.38f, 12.0f)
lineToRelative(7.25f, -7.25f)
curveToRelative(0.48f, -0.48f, 0.48f, -1.28f, -0.01f, -1.76f)
close()
}
}
return _arrowBackIos!!
}

private var _arrowBackIos: ImageVector? = null
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
package lottiefiles.icons

/*
* 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.
*/

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
import kotlin.Deprecated

@Deprecated(
"Use the AutoMirrored version at Icons.AutoMirrored.Rounded.ArrowForwardIos",
ReplaceWith( "Icons.AutoMirrored.Rounded.ArrowForwardIos",
"androidx.compose.material.icons.automirrored.rounded.ArrowForwardIos"),
)
public val Icons.Rounded.ArrowForwardIos: ImageVector
get() {
if (_arrowForwardIos != null) {
return _arrowForwardIos!!
}
_arrowForwardIos = materialIcon(name = "Rounded.ArrowForwardIos") {
materialPath {
moveTo(7.38f, 21.01f)
curveToRelative(0.49f, 0.49f, 1.28f, 0.49f, 1.77f, 0.0f)
lineToRelative(8.31f, -8.31f)
curveToRelative(0.39f, -0.39f, 0.39f, -1.02f, 0.0f, -1.41f)
lineTo(9.15f, 2.98f)
curveToRelative(-0.49f, -0.49f, -1.28f, -0.49f, -1.77f, 0.0f)
reflectiveCurveToRelative(-0.49f, 1.28f, 0.0f, 1.77f)
lineTo(14.62f, 12.0f)
lineToRelative(-7.25f, 7.25f)
curveToRelative(-0.48f, 0.48f, -0.48f, 1.28f, 0.01f, 1.76f)
close()
}
}
return _arrowForwardIos!!
}

private var _arrowForwardIos: ImageVector? = null
60 changes: 60 additions & 0 deletions example/shared/src/commonMain/kotlin/lottiefiles/icons/Download.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
package lottiefiles.icons

/*
* 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.
*/


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.Outlined.FileDownload: ImageVector
get() {
if (_fileDownload != null) {
return _fileDownload!!
}
_fileDownload = materialIcon(name = "Outlined.FileDownload") {
materialPath {
moveTo(18.0f, 15.0f)
verticalLineToRelative(3.0f)
horizontalLineTo(6.0f)
verticalLineToRelative(-3.0f)
horizontalLineTo(4.0f)
verticalLineToRelative(3.0f)
curveToRelative(0.0f, 1.1f, 0.9f, 2.0f, 2.0f, 2.0f)
horizontalLineToRelative(12.0f)
curveToRelative(1.1f, 0.0f, 2.0f, -0.9f, 2.0f, -2.0f)
verticalLineToRelative(-3.0f)
horizontalLineTo(18.0f)
close()
moveTo(17.0f, 11.0f)
lineToRelative(-1.41f, -1.41f)
lineTo(13.0f, 12.17f)
verticalLineTo(4.0f)
horizontalLineToRelative(-2.0f)
verticalLineToRelative(8.17f)
lineTo(8.41f, 9.59f)
lineTo(7.0f, 11.0f)
lineToRelative(5.0f, 5.0f)
lineTo(17.0f, 11.0f)
close()
}
}
return _fileDownload!!
}

private var _fileDownload: ImageVector? = null
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
package lottiefiles.icons

/*
* 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.
*/

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.AutoMirrored.Filled.OpenInNew: ImageVector
get() {
if (_openInNew != null) {
return _openInNew!!
}
_openInNew = materialIcon(name = "AutoMirrored.Filled.OpenInNew", autoMirror = true) {
materialPath {
moveTo(19.0f, 19.0f)
horizontalLineTo(5.0f)
verticalLineTo(5.0f)
horizontalLineToRelative(7.0f)
verticalLineTo(3.0f)
horizontalLineTo(5.0f)
curveToRelative(-1.11f, 0.0f, -2.0f, 0.9f, -2.0f, 2.0f)
verticalLineToRelative(14.0f)
curveToRelative(0.0f, 1.1f, 0.89f, 2.0f, 2.0f, 2.0f)
horizontalLineToRelative(14.0f)
curveToRelative(1.1f, 0.0f, 2.0f, -0.9f, 2.0f, -2.0f)
verticalLineToRelative(-7.0f)
horizontalLineToRelative(-2.0f)
verticalLineToRelative(7.0f)
close()
moveTo(14.0f, 3.0f)
verticalLineToRelative(2.0f)
horizontalLineToRelative(3.59f)
lineToRelative(-9.83f, 9.83f)
lineToRelative(1.41f, 1.41f)
lineTo(19.0f, 6.41f)
verticalLineTo(10.0f)
horizontalLineToRelative(2.0f)
verticalLineTo(3.0f)
horizontalLineToRelative(-7.0f)
close()
}
}
return _openInNew!!
}

private var _openInNew: ImageVector? = null
Loading

0 comments on commit f76c62c

Please sign in to comment.