Marek Kubiczek
Engine exception: Kotlin reflection implementation is not found at runtime. Make sure you have kotlin-reflect.jar in the classpath
Nagaraja Sunder
Chris Johnson
remember { X }
Vsevolod Ganin
Cannot change attributes of dependency configuration ':<module>:iosApiElements' after it has been resolved
kspIos
kspAndroid
Lilly
Add permission check
Call requires permission which may be rejected by user: code should explicitly check to see if permission is available (with checkPermission) or explicitly handle a potential SecurityException
if (ActivityCompat.checkSelfPermission( this, Manifest.permission.BLUETOOTH_CONNECT ) != PackageManager.PERMISSION_GRANTED ) { // TODO: Consider calling // ActivityCompat#requestPermissions // here to request the missing permissions, and then overriding // public void onRequestPermissionsResult(int requestCode, String[] permissions, // int[] grantResults) // to handle the case where the user grants the permission. See the documentation // for ActivityCompat#requestPermissions for more details. return } val deviceName: String? = sharedPresenter.connectedDevice?.name // no warning
rememberPermissionState
Karlo Lozovina
Javier
Đỗ Thành Đạt
Exception in thread "main" java.lang.Error: /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/usr/include/copyfile.h:35:10: fatal error: 'sys/cdefs.h' file not found /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/System/Library/Frameworks/CoreFoundation.framework/Headers/CFBase.h:75:10: fatal error: could not build module 'Darwin' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/usr/include/dispatch/dispatch.h:28:10: fatal error: could not build module 'Darwin' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/usr/include/os/object.h:28:10: fatal error: could not build module 'Darwin' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/usr/include/objc/objc-auto.h:36:10: fatal error: could not build module 'Darwin' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/usr/include/os/workgroup_base.h:15:10: fatal error: could not build module 'Darwin' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h:6:10: fatal error: could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/System/Library/Frameworks/Security.framework/Headers/SecBase.h:28:10: fatal error: could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/System/Library/Frameworks/CFNetwork.framework/Headers/CFNetwork.h:18:10: fatal error: could not build module 'CoreFoundation' /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS18.0.sdk/usr/include/xpc/xpc.h:6:10: fatal error: could not build module 'os_object' at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesASTFiles( ) at org.jetbrains.kotlin.native.interop.indexer.ModuleSupportKt.getModulesInfo( ) at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.buildNativeLibrary( ) at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLib( ) at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.processCLibSafe( ) at org.jetbrains.kotlin.native.interop.gen.jvm.MainKt.access$processCLibSafe( ) at org.jetbrains.kotlin.native.interop.gen.jvm.Interop.interop( ) at org.jetbrains.kotlin.cli.utilities.InteropCompilerKt.invokeInterop( ) at org.jetbrains.kotlin.cli.utilities.MainKt.mainImpl( ) at org.jetbrains.kotlin.cli.utilities.MainKt.main( )
Pablo
applicationContext
class MyApplication: Application() { lateinit var container: AppContainer override fun onCreate() { super.onCreate() container = AppContainer() } } //Extension function that returns an instance of Application fun CreationExtras.MyApplication(): MyApplication = (this[ViewModelProvider.AndroidViewModelFactory.APPLICATION_KEY] as MyApplication)
MyApplication().applicationContext
Bryan L
Day 47
Self-Comment
Goals Tomorrow
A modern programming language that makes developers happier.