Skip to content

Commit

Permalink
Tutorial Updates corresponding
Browse files Browse the repository at this point in the history
  • Loading branch information
steve-the-edwards committed Oct 20, 2023
1 parent 0218aca commit eb56826
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion samples/tutorial/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ subprojects {
plugins.withId("org.jetbrains.kotlin.android") {
java {
toolchain {
languageVersion.set(JavaLanguageVersion.of(11))
languageVersion.set(JavaLanguageVersion.of(17))
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion samples/tutorial/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,15 @@ class TodoListLayoutRunner(
todoListBinding.root.backPressedHandler = rendering.onBack

with(todoListBinding.todoListWelcome) {
text = resources.getString(R.string.todo_list_welcome, rendering.username)
text =
resources.getString(workflow.tutorial.views.R.string.todo_list_welcome, rendering.username)
}

adapter.todoList = rendering.todoTitles
adapter.notifyDataSetChanged()
}

companion object : ViewFactory<TodoListScreen> by bind(
TodoListViewBinding::inflate, ::TodoListLayoutRunner
TodoListViewBinding::inflate, ::TodoListLayoutRunner
)
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class TodoListLayoutRunner(
todoListBinding.root.backPressedHandler = rendering.onBack

with(todoListBinding.todoListWelcome) {
text = resources.getString(R.string.todo_list_welcome, rendering.username)
text =
resources.getString(workflow.tutorial.views.R.string.todo_list_welcome, rendering.username)
}

adapter.todoList = rendering.todoTitles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class TodoListLayoutRunner(
todoListBinding.root.backPressedHandler = rendering.onBack

with(todoListBinding.todoListWelcome) {
text = resources.getString(R.string.todo_list_welcome, rendering.username)
text =
resources.getString(workflow.tutorial.views.R.string.todo_list_welcome, rendering.username)
}

adapter.todoList = rendering.todoTitles
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class TutorialActivity : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.welcome_view)
setContentView(workflow.tutorial.views.R.layout.welcome_viewgs
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class TodoListLayoutRunner(
todoListBinding.root.backPressedHandler = rendering.onBack

with(todoListBinding.todoListWelcome) {
text = resources.getString(R.string.todo_list_welcome, rendering.username)
text =
resources.getString(workflow.tutorial.views.R.string.todo_list_welcome, rendering.username)
}

adapter.todoList = rendering.todoTitles
Expand Down

0 comments on commit eb56826

Please sign in to comment.