-
Notifications
You must be signed in to change notification settings - Fork 5
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
211 changed files
with
10,483 additions
and
1,166 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 |
---|---|---|
|
@@ -5,3 +5,4 @@ local.properties | |
.idea/* | ||
!.idea/codeStyles | ||
build | ||
android-release.keystore |
Binary file not shown.
167 changes: 0 additions & 167 deletions
167
app/src/main/java/ly/img/editor/showcase/ShowcaseActivity.kt
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,40 @@ | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
// Top-level build file where you can add configuration options common to all sub-projects/modules. | ||
plugins { | ||
id 'com.android.application' version libs.versions.gradleAndroid apply false | ||
id 'com.android.library' version libs.versions.gradleAndroid apply false | ||
id 'org.jetbrains.kotlin.android' version "$kotlinVersion" apply false | ||
id 'org.jetbrains.kotlin.android' version libs.versions.kotlin apply false | ||
id 'com.google.gms.google-services' version libs.versions.googleServices apply false | ||
id 'com.dropbox.dropshots' version libs.versions.dropshots apply false | ||
id 'com.github.gmazzo.buildconfig' version libs.versions.buildConfig apply false | ||
id 'com.google.firebase.appdistribution' version libs.versions.appDistributionPlugin apply false | ||
id 'com.google.firebase.crashlytics' version libs.versions.gradleCrashlytics apply false | ||
} | ||
|
||
subprojects { | ||
// To enable Compose compiler metrics and report (used for debugging Composable parameters stability), | ||
// set `debugComposeCompilerStability=true` in gradle.properties | ||
if ("$debugComposeCompilerStability" == "true") { | ||
tasks.withType(KotlinCompile).configureEach { | ||
kotlinOptions { | ||
freeCompilerArgs += [ | ||
"-P", | ||
"plugin:androidx.compose.compiler.plugins.kotlin:reportsDestination=" + | ||
project.buildDir.absolutePath + "/compose_compiler" | ||
] | ||
|
||
freeCompilerArgs += [ | ||
"-P", | ||
"plugin:androidx.compose.compiler.plugins.kotlin:metricsDestination=" + | ||
project.buildDir.absolutePath + "/compose_compiler" | ||
] | ||
} | ||
} | ||
} | ||
} | ||
|
||
|
||
task clean(type: Delete) { | ||
delete rootProject.buildDir | ||
} |
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
27 changes: 27 additions & 0 deletions
27
editor-base/src/main/java/ly/img/editor/base/components/LibraryButton.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,27 @@ | ||
package ly.img.editor.base.components | ||
|
||
import androidx.compose.material3.FloatingActionButton | ||
import androidx.compose.material3.Icon | ||
import androidx.compose.runtime.Composable | ||
import androidx.compose.ui.Modifier | ||
import androidx.compose.ui.platform.testTag | ||
import androidx.compose.ui.res.stringResource | ||
import ly.img.editor.base.R | ||
import ly.img.editor.base.ui.Event | ||
import ly.img.editor.core.ui.iconpack.Add | ||
import ly.img.editor.core.ui.iconpack.IconPack | ||
|
||
@Composable | ||
fun LibraryButton( | ||
modifier: Modifier, | ||
onEvent: (Event) -> Unit, | ||
) { | ||
FloatingActionButton( | ||
modifier = modifier.testTag(tag = "LibraryButton"), | ||
onClick = { | ||
onEvent(Event.OnAddLibraryClick) | ||
}, | ||
) { | ||
Icon(IconPack.Add, stringResource(R.string.ly_img_editor_library)) | ||
} | ||
} |
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
Oops, something went wrong.