Skip to content

Commit

Permalink
[Maintenance] removal of OptIn and Suppress
Browse files Browse the repository at this point in the history
conflicts resolved
  • Loading branch information
GrzegorzBobryk committed Oct 27, 2024
1 parent 580affd commit a88ec4b
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
@file:Suppress("DEPRECATION")

package org.koin.androidx.viewmodel.ext.android

import androidx.activity.ComponentActivity
Expand Down Expand Up @@ -64,4 +62,4 @@ fun <T : ViewModel> Fragment.viewModelForClass(
scope = getKoinScope()
)
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@file:Suppress("DeprecatedCallableAddReplaceWith")

package org.koin.androidx.compose.navigation

import androidx.compose.runtime.Composable
import androidx.lifecycle.*
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelStoreOwner
import androidx.lifecycle.viewmodel.CreationExtras
import androidx.lifecycle.viewmodel.compose.LocalViewModelStoreOwner
import org.koin.compose.currentKoinScope
Expand Down Expand Up @@ -52,4 +52,4 @@ inline fun <reified T : ViewModel> koinNavViewModel(
return resolveViewModel(
T::class, viewModelStoreOwner.viewModelStore, key, extras, qualifier, scope, parameters
)
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
@file:Suppress("DeprecatedCallableAddReplaceWith")

package org.koin.androidx.compose

import androidx.compose.runtime.Composable
import androidx.lifecycle.*
import androidx.lifecycle.ViewModel
import androidx.lifecycle.ViewModelStoreOwner
import androidx.lifecycle.viewmodel.CreationExtras
import androidx.lifecycle.viewmodel.compose.LocalViewModelStoreOwner
import org.koin.compose.currentKoinScope
Expand Down Expand Up @@ -52,4 +52,4 @@ inline fun <reified T : ViewModel> koinViewModel(
return resolveViewModel(
T::class, viewModelStoreOwner.viewModelStore, key, extras, qualifier, scope, parameters
)
}
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
package org.koin.core

import org.koin.Simple
import org.koin.core.annotation.KoinInternalApi
import org.koin.core.logger.Level
import org.koin.core.parameter.parametersOf
import org.koin.dsl.koinApplication
import org.koin.dsl.module
import org.koin.mp.KoinPlatformTools
import org.koin.mp.generateId
import kotlin.test.Test
import kotlin.test.assertTrue

@OptIn(KoinInternalApi::class)
class ParameterStackTest {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import kotlinx.coroutines.awaitAll
import kotlinx.coroutines.test.TestResult
import kotlinx.coroutines.test.runTest
import org.koin.Simple
import org.koin.core.annotation.KoinInternalApi
import org.koin.core.logger.Level
import org.koin.core.module.Module
import org.koin.core.module.dsl.singleOf
Expand All @@ -17,7 +16,6 @@ import org.koin.dsl.module
import kotlin.test.Test
import kotlin.test.assertEquals
import kotlin.test.assertNull
import kotlin.test.assertTrue

class ParametersInjectionTest {

Expand Down Expand Up @@ -61,7 +59,6 @@ class ParametersInjectionTest {
)
}

@OptIn(KoinInternalApi::class)
private fun ensureCanInjectParam(module1: Module) {
val app = koinApplication {
printLogger(Level.DEBUG)
Expand Down

0 comments on commit a88ec4b

Please sign in to comment.