diff --git a/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ComposeUtils.kt b/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ComposeUtils.kt index 4957735fe98f0868dac97b401bcb1ee8d4395567..351a0674182c80da061ce8ec285b21aa243265bb 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ComposeUtils.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ComposeUtils.kt @@ -1,3 +1,8 @@ +/* +Code inspired by and adapted to our needs from +https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:lifecycle/lifecycle-viewmodel-compose/src/main/java/androidx/lifecycle/viewmodel/compose/ViewModel.kt;drc=0c44ec9ae8a43abafd966cd130196e9334fad359 +licensed under the Apache License, Version 2.0 + */ package org.briarproject.briar.desktop.viewmodel import androidx.compose.runtime.Composable diff --git a/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelFactory.kt b/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelFactory.kt index c3f519db25805ae5da80f0dafb73bfb0604170ab..89a8572e44337020d1f33ff3df4637df8997ff80 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelFactory.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelFactory.kt @@ -1,3 +1,8 @@ +/* +Code inspired by and adapted to our needs from +https://cs.android.com/androidx/architecture-components-samples/+/main:GithubBrowserSample/app/src/main/java/com/android/example/github/viewmodel/GithubViewModelFactory.kt;drc=3283b6bbc6c9d62a616f058cdf0225185a5a69d1 +originally licensed under the Apache License, Version 2.0 + */ package org.briarproject.briar.desktop.viewmodel import javax.inject.Inject diff --git a/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelProvider.kt b/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelProvider.kt index 83f59d104de4d1e75b10cb282d6349e0834436d6..dd352bfb2ce758ee1f4fde63a3efc01b4ee98e52 100644 --- a/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelProvider.kt +++ b/src/main/kotlin/org/briarproject/briar/desktop/viewmodel/ViewModelProvider.kt @@ -1,3 +1,8 @@ +/* +Code inspired by and adapted to our needs from +https://cs.android.com/androidx/platform/frameworks/support/+/androidx-main:lifecycle/lifecycle-viewmodel/src/main/java/androidx/lifecycle/ViewModelProvider.kt;drc=ca3a75330b198ea068bc25d965597f72e719d8f5 +originally licensed under the Apache License, Version 2.0 + */ package org.briarproject.briar.desktop.viewmodel import javax.inject.Inject