Skip to content

Commit

Permalink
slide contentsをfeature:slideに移動
Browse files Browse the repository at this point in the history
  • Loading branch information
kwmt committed Jan 7, 2024
1 parent 69f8b77 commit 3668289
Show file tree
Hide file tree
Showing 65 changed files with 67 additions and 41 deletions.
1 change: 1 addition & 0 deletions .idea/gradle.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

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

dependencies {
implementation(projects.core.ui)
implementation(projects.feature.slide)
implementation(projects.feature.samples)
implementation(projects.camerax)
implementation(projects.legacy)
implementation(projects.slide)
implementation(libs.androidx.compose.foundation)
implementation(libs.androidx.compose.material)
implementation(libs.constraintlayout)
Expand Down
20 changes: 10 additions & 10 deletions core/ui/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@ android {
}

dependencies {
implementation(libs.androidx.core.ktx)
implementation(libs.androidx.appcompat)
implementation(libs.google.material)
testImplementation(libs.junit)
androidTestImplementation(libs.androidx.test.junit)
androidTestImplementation(libs.espresso)
api(libs.androidx.core.ktx)
api(libs.androidx.appcompat)
api(libs.google.material)
testApi(libs.junit)
androidTestApi(libs.androidx.test.junit)
androidTestApi(libs.espresso)

implementation(libs.androidx.compose.foundation)
implementation(libs.androidx.compose.material)
debugImplementation(libs.androidx.compose.ui.tooling)
implementation(libs.androidx.compose.ui.tooling.preview)
api(libs.androidx.compose.foundation)
api(libs.androidx.compose.material)
debugApi(libs.androidx.compose.ui.tooling)
api(libs.androidx.compose.ui.tooling.preview)
}
1 change: 1 addition & 0 deletions feature/slide/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
1 change: 1 addition & 0 deletions feature/slide/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
勉強会スライドコンテンツ
13 changes: 13 additions & 0 deletions feature/slide/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
alias(libs.plugins.jetpackcomposeplayground.android.library)
alias(libs.plugins.jetpackcomposeplayground.android.library.compose)
}
android {
namespace = "net.kwmt27.jetpackcomposeplayground.slide"
}

dependencies {
implementation(projects.core.ui)
api(projects.slide)
implementation(projects.feature.samples)
}
4 changes: 4 additions & 0 deletions feature/slide/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android">

</manifest>
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import com.github.kwmt.slide.components.SlideBase
import com.github.kwmt.slide.ui.theme.SlideTypography

@Composable
fun SlideTitle() {
internal fun SlideTitle() {
SlideBase {
Column(
verticalArrangement = Arrangement.Center,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography

@Composable
fun Intro() {
internal fun Intro() {
SlideBase("自己紹介") {
Text(
text = """
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography

@Composable
fun Intro2() {
internal fun Intro2() {
SlideBase("どんなアニメーションか?") {
Row(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import com.github.kwmt.slide.ui.theme.SlideTypography
import net.kwmt27.jetpackcomposeplayground.feature.samples.animation.AutoRollingTextSample5

@Composable
fun Intro3() {
internal fun Intro3() {
SlideBase("どんなアニメーションか?(アニメーション部分のみ・簡略化)") {
Row(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.github.kwmt.slide.ui.theme.SlideTypography
import net.kwmt27.jetpackcomposeplayground.feature.samples.animation.AutoRollingTextSample0

@Composable
fun AnimationExample() {
internal fun AnimationExample() {
SlideBase("例1: テキストが下から上に回転するようなアニメーション") {
Row(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.github.kwmt.slide.ui.theme.SlideTypography
import net.kwmt27.jetpackcomposeplayground.feature.samples.animation.AutoRollingTextSample1

@Composable
fun AnimationExample1_2() {
internal fun AnimationExample1_2() {
SlideBase("例1: テキストが下から上に回転するようなアニメーション") {
Row(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import com.github.kwmt.slide.ui.theme.SlideTypography
import net.kwmt27.jetpackcomposeplayground.feature.samples.animation.AutoRollingTextSample2

@Composable
fun AnimationExample1_3() {
internal fun AnimationExample1_3() {
SlideBase("例1: テキストが下から上に回転するようなアニメーション") {
Row(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.github.kwmt.slide.ui.theme.SlideTypography
import net.kwmt27.jetpackcomposeplayground.feature.samples.animation.AutoRollingTextSample2

@Composable
fun AnimationExample2_1() {
internal fun AnimationExample2_1() {
SlideBase("例2: 緑のボックスが左から右にかけて消えていくアニメーション") {
Row(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.github.kwmt.slide.ui.theme.SlideTypography
import net.kwmt27.jetpackcomposeplayground.feature.samples.animation.AutoRollingTextSample3

@Composable
fun AnimationExample2_2() {
internal fun AnimationExample2_2() {
SlideBase("例2: 緑のボックスが左から右にかけて消えていくアニメーション") {
Row(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.github.kwmt.slide.ui.theme.SlideTypography
import net.kwmt27.jetpackcomposeplayground.feature.samples.animation.AutoRollingTextSample4

@Composable
fun AnimationExample2_3() {
internal fun AnimationExample2_3() {
SlideBase("例2: 緑のボックスが左から右にかけて消えていくアニメーション") {
Row(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.github.kwmt.slide.ui.theme.SlideTypography
import net.kwmt27.jetpackcomposeplayground.feature.samples.animation.AutoRollingTextSample4

@Composable
fun AnimationExample3_1() {
internal fun AnimationExample3_1() {
SlideBase("例3: 右の円が青から赤にクロスフェードするアニメーション") {
Row(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import com.github.kwmt.slide.ui.theme.SlideTypography
import net.kwmt27.jetpackcomposeplayground.feature.samples.animation.AutoRollingTextSample5

@Composable
fun AnimationExample3_2() {
internal fun AnimationExample3_2() {
SlideBase("例3: 右の円が青から赤にクロスフェードするアニメーション") {
Row(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ import com.github.kwmt.slide.components.SlideBase
import com.github.kwmt.slide.components.SlideImage
import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography
import net.kwmt27.jetpackcomposeplayground.R
import net.kwmt27.jetpackcomposeplayground.slide.R

@Composable
fun DetailsAndPoints3_1() {
internal fun DetailsAndPoints3_1() {
SlideBase("他のアニメーションAPIは?") {
Row(
modifier = Modifier.fillMaxSize(),
Expand All @@ -31,7 +31,10 @@ fun DetailsAndPoints3_1() {
) {
val context = LocalContext.current
Column {
Text("今回はアニメーションの関数を3つだけ紹介しましたが、他にもいろいろあります。", style = SlideTypography.body1)
Text(
"今回はアニメーションの関数を3つだけ紹介しましたが、他にもいろいろあります。",
style = SlideTypography.body1
)
Spacer(modifier = Modifier.size(16.dp))
Text(
"どれを使えばいいかは公式ドキュメントに決定する際のフローチャートがあるので参考にするとよいと思います。",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography

@Composable
fun DetailsAndPoints3_2() {
internal fun DetailsAndPoints3_2() {
SlideBase("アニメーションのパフォーマンスについて") {
val context = LocalContext.current
Row(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography

@Composable
fun Summary() {
internal fun Summary() {
SlideBase("まとめ") {
Row(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography

@Composable
fun ThankYou() {
internal fun ThankYou() {
SlideBase {
Column(
verticalArrangement = Arrangement.Center,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography

@Composable
fun Intro0() {
internal fun Intro0() {
SlideBase("いきなりですが質問というか確認です!") {
Column(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography

@Composable
fun Intro1() {
internal fun Intro1() {
SlideBase("いきなりですが質問というか確認です!") {
Column(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography

@Composable
fun Intro2() {
internal fun Intro2() {
SlideBase("いきなりですが質問というか確認です!") {
Column(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography

@Composable
fun Intro3() {
internal fun Intro3() {
SlideBase("いきなりですが質問というか確認です!") {
Column(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography

@Composable
fun Intro4() {
internal fun Intro4() {
SlideBase("いきなりですが質問というか確認です!") {
Column(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ import com.github.kwmt.slide.components.SlideBase
import com.github.kwmt.slide.components.SlideImage
import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography
import net.kwmt27.jetpackcomposeplayground.R
import net.kwmt27.jetpackcomposeplayground.slide.R

@Composable
fun SelfIntro1() {
internal fun SelfIntro1() {
SlideBase("自己紹介") {
Column(
modifier = Modifier.fillMaxSize()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import com.github.kwmt.slide.components.Code
import com.github.kwmt.slide.components.SlideBase
import com.github.kwmt.slide.components.SlideImage
import com.github.kwmt.slide.ui.theme.SlidePreview
import net.kwmt27.jetpackcomposeplayground.R
import net.kwmt27.jetpackcomposeplayground.slide.R

@Composable
internal fun SlideAppTips2() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import androidx.compose.ui.unit.dp
import com.github.kwmt.slide.components.SlideBase
import com.github.kwmt.slide.components.SlideImage
import com.github.kwmt.slide.ui.theme.SlidePreview
import net.kwmt27.jetpackcomposeplayground.R
import net.kwmt27.jetpackcomposeplayground.slide.R

@Composable
internal fun SlideAppTips3() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import com.github.kwmt.slide.components.SlideBase
import com.github.kwmt.slide.components.SlideImage
import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography
import net.kwmt27.jetpackcomposeplayground.R
import net.kwmt27.jetpackcomposeplayground.slide.R

@Composable
internal fun SlideAppTips4() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography

@Composable
fun Summary() {
internal fun Summary() {
SlideBase("まとめ") {
Row(
modifier = Modifier.fillMaxSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import com.github.kwmt.slide.ui.theme.SlidePreview
import com.github.kwmt.slide.ui.theme.SlideTypography

@Composable
fun ThankYou() {
internal fun ThankYou() {
SlideBase {
Column(
verticalArrangement = Arrangement.Center,
Expand Down
3 changes: 3 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import java.net.URI

include(":feature:slide")


enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
includeBuild("build-logic")
Expand Down

0 comments on commit 3668289

Please sign in to comment.