Skip to content

Commit

Permalink
Update to ONDK r27.2
Browse files Browse the repository at this point in the history
  • Loading branch information
topjohnwu committed Jun 18, 2024
1 parent cfd1e0c commit 23ed275
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion buildSrc/src/main/java/Setup.kt
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ fun Project.setupCommon() {
compileSdkVersion(34)
buildToolsVersion = "34.0.0"
ndkPath = "$sdkDirectory/ndk/magisk"
ndkVersion = "27.0.11718014"
ndkVersion = "27.0.11902837"

defaultConfig {
minSdk = 23
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ android.nonFinalResIds=false
# Magisk
magisk.stubVersion=39
magisk.versionCode=27002
magisk.ondkVersion=r27.1
magisk.ondkVersion=r27.2
5 changes: 2 additions & 3 deletions native/src/base/cstr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use std::fmt::{Arguments, Debug, Display, Formatter, Write};
use std::ops::{Deref, DerefMut};
use std::os::unix::ffi::OsStrExt;
use std::path::{Path, PathBuf};
use std::str::{Utf8Chunks, Utf8Error};
use std::str::Utf8Error;
use std::{fmt, mem, slice, str};

use cxx::{type_id, ExternType};
Expand Down Expand Up @@ -52,9 +52,8 @@ fn utf8_cstr_buf_append(buf: &mut dyn Utf8CStrBuf, s: &[u8]) -> usize {
}

fn utf8_cstr_append_lossy(buf: &mut dyn Utf8CStrWrite, s: &[u8]) -> usize {
let chunks = Utf8Chunks::new(s);
let mut len = 0_usize;
for chunk in chunks {
for chunk in s.utf8_chunks() {
len += buf.push_str(chunk.valid());
if !chunk.invalid().is_empty() {
len += buf.push_str(char::REPLACEMENT_CHARACTER.encode_utf8(&mut [0; 4]));
Expand Down
1 change: 0 additions & 1 deletion native/src/base/lib.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![allow(clippy::missing_safety_doc)]
#![feature(format_args_nl)]
#![feature(io_error_more)]
#![feature(utf8_chunks)]

pub use const_format;
pub use libc;
Expand Down

0 comments on commit 23ed275

Please sign in to comment.