Skip to content

Commit

Permalink
update jitpack.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tsirysndr committed Apr 14, 2023
1 parent 7c12a8e commit d36aab4
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion jitpack.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,7 @@ jdk:
before_install:
- wget https://github.com/tsirysndr/songbird-android-rs/releases/download/v0.1.0/songbird-android-rs.tar.gz
- tar -xzf songbird-android-rs.tar.gz
- mv jniLibs app/src/main/
- mv jniLibs app/src/main/
android:
jniLibs:
- 'app/src/main/jniLibs'
8 changes: 4 additions & 4 deletions rust/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use walkdir::WalkDir;
use crate::play::play;

#[no_mangle]
#[export_name = "Java_com_tsirysndr_songbird_Songbird_00024Companion_start"]
#[export_name = "Java_com_tsirysndr_songbirdlib_Songbird_00024Companion_start"]
pub extern "C" fn start() {
android_logger::init_once(Config::default().with_max_level(LevelFilter::Trace));
debug!(
Expand Down Expand Up @@ -42,7 +42,7 @@ A simple music player written in Rust"#
}

#[no_mangle]
#[export_name = "Java_com_tsirysndr_songbird_Songbird_00024Companion_start_1blocking"]
#[export_name = "Java_com_tsirysndr_songbirdlib_Songbird_00024Companion_start_1blocking"]
pub extern "C" fn start_blocking() {
android_logger::init_once(Config::default().with_max_level(LevelFilter::Trace));
debug!(
Expand All @@ -64,7 +64,7 @@ A simple music player written in Rust"#
}

#[no_mangle]
#[export_name = "Java_com_tsirysndr_songbird_Songbird_00024Companion_example"]
#[export_name = "Java_com_tsirysndr_songbirdlib_Songbird_00024Companion_example"]
pub extern "C" fn example() {
android_logger::init_once(Config::default().with_max_level(LevelFilter::Trace));
debug!("Hello Android!");
Expand All @@ -89,7 +89,7 @@ pub extern "C" fn example() {
debug!(">> {}", path);
}
debug!(">> done scanning music library");
/*
/*
let runtime = tokio::runtime::Builder::new_multi_thread()
.enable_all()
.build()
Expand Down

0 comments on commit d36aab4

Please sign in to comment.