Skip to content

Commit

Permalink
Merge pull request #204 from ptkNktq/feature/preview_auto_screenshot
Browse files Browse the repository at this point in the history
Previewの自動スクショライブラリ導入
  • Loading branch information
ptkNktq authored Oct 14, 2024
2 parents 08da654 + 29f443a commit e19c93a
Show file tree
Hide file tree
Showing 54 changed files with 1,746 additions and 115 deletions.
3 changes: 3 additions & 0 deletions .idea/.gitignore

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

9 changes: 9 additions & 0 deletions .idea/AndroidNotificationNotifier.iml

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

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

6 changes: 6 additions & 0 deletions .idea/misc.xml

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

8 changes: 8 additions & 0 deletions .idea/modules.xml

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

17 changes: 17 additions & 0 deletions .idea/runConfigurations.xml

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

6 changes: 6 additions & 0 deletions .idea/vcs.xml

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

3 changes: 1 addition & 2 deletions AndroidApp/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ out/

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties
Expand Down Expand Up @@ -124,7 +123,7 @@ output.json
# Log Files

# Android Studio
/*/build/
/*/build/*
/*/local.properties
/*/out
/*/*/build
Expand Down
123 changes: 123 additions & 0 deletions AndroidApp/.idea/codeStyles/Project.xml

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

5 changes: 5 additions & 0 deletions AndroidApp/.idea/codeStyles/codeStyleConfig.xml

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

8 changes: 8 additions & 0 deletions AndroidApp/.idea/deploymentTargetSelector.xml

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

41 changes: 41 additions & 0 deletions AndroidApp/.idea/inspectionProfiles/Project_Default.xml

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

2 changes: 1 addition & 1 deletion AndroidApp/.idea/kotlinc.xml

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

18 changes: 9 additions & 9 deletions AndroidApp/.idea/migrations.xml

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

17 changes: 17 additions & 0 deletions AndroidApp/.idea/runConfigurations.xml

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

6 changes: 6 additions & 0 deletions AndroidApp/.idea/studiobot.xml

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

20 changes: 20 additions & 0 deletions AndroidApp/README.md
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# Androidアプリ

### テスト

###### ユニットテスト

- GitHub Actionsで自動実行

###### スクリーンショットによるテスト

- Previewのスクリーンショット自動生成
- `./gradlew :ui:updateDebugScreenshotTest`
- Previewのテスト
- `./gradlew :ui:validateDebugScreenshotTest`
- 結果
- https://github.com/ptkNktq/AndroidNotificationNotifier/tree/develop/AndroidApp/ui/build/reports/screenshotTest/preview/debug/.html

### 注意事項

- AGPの更新をするときはAndroid Studioとの互換性を確認すること
- https://developer.android.com/build/releases/gradle-plugin?hl=ja#android_gradle_plugin_and_android_studio_compatibility
3 changes: 3 additions & 0 deletions AndroidApp/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ android {
packaging {
resources.excludes.add("META-INF/DEPENDENCIES")
}
kotlinOptions {
jvmTarget = "17"
}
}

dependencies {
Expand Down
4 changes: 4 additions & 0 deletions AndroidApp/data/repository/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ plugins {

android {
namespace = "me.nya_n.notificationnotifier.data.repository"

kotlinOptions {
jvmTarget = "17"
}
}

dependencies {
Expand Down
4 changes: 4 additions & 0 deletions AndroidApp/domain/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ plugins {

android {
namespace = "me.nya_n.notificationnotifier.domain"

kotlinOptions {
jvmTarget = "17"
}
}

dependencies {
Expand Down
3 changes: 2 additions & 1 deletion AndroidApp/gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,5 @@ android.useAndroidX=true
# Automatically convert third-party libraries to use AndroidX
android.enableJetifier=true
# Kotlin code style for this project: "official" or "obsolete":
kotlin.code.style=official
kotlin.code.style=official
android.experimental.enableScreenshotTest=true
Loading

0 comments on commit e19c93a

Please sign in to comment.