chrynan / inject Goto Github PK
View Code? Open in Web Editor NEWA simple Kotlin multi-platform abstraction around the javax.inject annotations.
License: Apache License 2.0
A simple Kotlin multi-platform abstraction around the javax.inject annotations.
License: Apache License 2.0
Problem description
I was trying to create a multiplatform project supporting android and ios platforms. I am using your latest version of the library - 1.0.0. And it works as expected for these targets:
kotlin {
android()
iosX64()
iosArm64()
..
But for application to run on an M1 ios simulator I need to add iosSimulatorArm64()
which is now not supported. This is the build error I am getting:
Unable to build Kotlin project configuration
org.gradle.internal.resolve.ArtifactNotFoundException: Could not find inject-1.0.0-samplessources.jar (com.chrynan.inject:inject:1.0.0).
Searched in the following locations:
https://repo.repsy.io/mvn/chrynan/public/com/chrynan/inject/inject/1.0.0/inject-1.0.0-samplessources.jar
at org.gradle.internal.resolve.result.DefaultBuildableArtifactResolveResult.notFound(DefaultBuildableArtifactResolveResult.java:28)
at org.gradle.api.internal.artifacts.repositories.resolver.ExternalResourceResolver$RemoteRepositoryAccess.resolveArtifact(ExternalResourceResolver.java:500)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.CachingModuleComponentRepository$ResolveAndCacheRepositoryAccess.resolveArtifact(CachingModuleComponentRepository.java:469)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.lambda$resolveArtifact$15(ErrorHandlingModuleComponentRepository.java:181)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.tryResolveAndMaybeBlacklist(ErrorHandlingModuleComponentRepository.java:237)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.performOperationWithRetries(ErrorHandlingModuleComponentRepository.java:203)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.ErrorHandlingModuleComponentRepository$ErrorHandlingModuleComponentRepositoryAccess.resolveArtifact(ErrorHandlingModuleComponentRepository.java:179)
at org.gradle.api.internal.artifacts.ivyservice.ivyresolve.RepositoryChainArtifactResolver.resolveArtifact(RepositoryChainArtifactResolver.java:102)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.DefaultArtifactSet$LazyArtifactSupplier.calculateValue(DefaultArtifactSet.java:284)
at org.gradle.api.internal.artifacts.ivyservice.resolveengine.artifact.DefaultArtifactSet$LazyArtifactSupplier.calculateValue(DefaultArtifactSet.java:255)
at org.gradle.internal.model.CalculatedValueContainer$CalculationState.lambda$attachValue$0(CalculatedValueContainer.java:218)
at org.gradle.internal.Try.ofFailable(Try.java:41)
at org.gradle.internal.model.CalculatedValueContainer$CalculationState.attachValue(CalculatedValueContainer.java:213)
at org.gradle.internal.model.CalculatedValueContainer.finalizeIfNotAlready(CalculatedValueContainer.java:186)
at org.gradle.internal.model.CalculatedValueContainer.finalizeIfNotAlready(CalculatedValueContainer.java:177)
at org.gradle.api.internal.artifacts.PreResolvedResolvableArtifact.getFile(PreResolvedResolvableArtifact.java:88)
at org.jetbrains.plugins.gradle.tooling.util.resolve.DependencyResolverImpl.resolveDependencies(DependencyResolverImpl.java:239)
at org.jetbrains.plugins.gradle.tooling.util.resolve.DependencyResolverImpl.resolveDependencies(DependencyResolverImpl.java:119)
Solution
Can you please add support for iosSimulatorArm64
target so I can build it on M1 ios simulator?
Describe the bug
When integrating with my project (and a clean standalone project) - I get this error
Could not GET 'https://maven.pkg.github.com/chrynan/inject/com/chrynan/inject/inject-jvm/0.7.0/inject-jvm-0.7.0.pom'. Received status code 401 from server: Unauthorized
To Reproduce
Steps to reproduce the behaviour:
Expected behaviour
Dep should be available in project
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Maybe we could update the target API level to the latest one if that's possible. Also, why is the minimum API level set to 24 and not something much lower?
Describe the bug
A clear and concise description of what the bug is.
When using the @HiltViewModel
annotation to help with dependency injection it isn't possible to use the @Inject
annotations from this library.
To Reproduce
import com.chrynan.inject.Inject
@HiltViewModel
class ExampleViewModel @Inject constructor() : ViewModel() {
}
Expected behavior
No compilation errors such as
@HiltViewModel annotated class should contain exactly one @Inject or @AssistedInject annotated constructor.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.