Skip to content

Commit

Permalink
Revert "add initial Beerus java libb"
Browse files Browse the repository at this point in the history
This reverts commit 0284117.

This activity is not where we want to implement this, so i am removing
it.
  • Loading branch information
trbutler4 committed Sep 7, 2024
1 parent 0284117 commit 44420e1
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 35 deletions.
8 changes: 0 additions & 8 deletions light_client_app/android/app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,6 @@ android {
excludes += "/META-INF/{AL2.0,LGPL2.1}"
}
}
sourceSets {
named("main") {
jniLibs.srcDir("src/main/jni/")
// Configure the JNI libraries directory
// Note: For newer configurations, JNI libraries are often managed differently
// Check your specific plugin version's documentation for precise configuration
}
}
}

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,4 @@
package com.example.beerus_android;

public class Beerus {
public static native Void run(
String eth_execution_rpc,
String starknet_rpc,
String data_dir,
int poll_secs,
int socket_port
);

static {
// here we load the rust library we created
System.loadLibrary("beerus");
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package com.example.beerus_android

import com.example.beerus_android.Beerus;

import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
Expand Down Expand Up @@ -63,7 +61,7 @@ fun Toggle(modifier: Modifier = Modifier) {
var runState by rememberSaveable {
mutableStateOf("Not Running")
}
var checked by rememberSaveable { mutableStateOf(false)}
var checked by rememberSaveable { mutableStateOf(true)}

Column(modifier = Modifier
.fillMaxSize()
Expand Down Expand Up @@ -93,8 +91,8 @@ fun Toggle(modifier: Modifier = Modifier) {
Spacer(modifier=Modifier.height(40.dp))

if(checked){
startBeerus()
runState="Running"

}else{
runState="Not Running"
}
Expand All @@ -117,14 +115,4 @@ fun Toggle(modifier: Modifier = Modifier) {
// BeerusandroidTheme {
// Greeting("Android")
// }
//}

fun startBeerus() {
Beerus.run(
"",
"",
"tmp",
5,
8080
)
}
//}
Binary file not shown.

0 comments on commit 44420e1

Please sign in to comment.