Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Android Native
# SwiftAndroidNative

This package provides a Swift interface to various
Android [NDK APIs](https://developer.android.com/ndk/reference)
Expand Down
2 changes: 1 addition & 1 deletion Sources/AndroidAssetManager/AndroidAssetManager.swift
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ public final class AndroidAssetManager : @unchecked Sendable {
let len = size ?? Int(self.length)
var data = Data(count: len)

let bytesRead: Int32 = try data.withUnsafeMutableBytes { buffer in
let bytesRead: Int32 = data.withUnsafeMutableBytes { buffer in
#if !os(Android)
fatalError("only implemented for Android")
#else
Expand Down
2 changes: 1 addition & 1 deletion Sources/AndroidContext/AndroidContext.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import SwiftJNI
@available(iOS, unavailable)
@available(tvOS, unavailable)
@available(watchOS, unavailable)
public class AndroidContext : JObject {
public class AndroidContext : JObject, @unchecked Sendable {
/// The JNI signature for the method to invoke to obtain the global Context.
/// This can be manually changed before initialization to a different signature.
/// It must be a zero-argument static fuction that returns an instance of `android.content.Context`.
Expand Down