feat: 初始化XMBOX项目
This commit is contained in:
@@ -0,0 +1 @@
|
||||
/build
|
||||
@@ -0,0 +1,18 @@
|
||||
plugins {
|
||||
id 'com.android.library'
|
||||
}
|
||||
|
||||
android {
|
||||
namespace 'com.p2p'
|
||||
|
||||
compileSdk 35
|
||||
|
||||
defaultConfig {
|
||||
minSdk 21
|
||||
targetSdk 28
|
||||
}
|
||||
}
|
||||
|
||||
dependencies {
|
||||
implementation project(':catvod')
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest />
|
||||
@@ -0,0 +1,31 @@
|
||||
package com.p2p;
|
||||
|
||||
import com.github.catvod.utils.Path;
|
||||
|
||||
public class P2PClass {
|
||||
|
||||
public int port;
|
||||
|
||||
public P2PClass() {
|
||||
System.loadLibrary("jpa");
|
||||
this.port = P2Pdoxstarthttpd("TEST3E63BAAECDAA79BEAA91853490A69F08".getBytes(), Path.jpa().getAbsolutePath().getBytes());
|
||||
}
|
||||
|
||||
public int P2Pdoxstarthttpd(byte[] bArr, byte[] bArr2) {
|
||||
return doxstarthttpd(bArr, bArr2);
|
||||
}
|
||||
|
||||
public void P2Pdoxstart(byte[] bArr) {
|
||||
doxstart(bArr);
|
||||
}
|
||||
|
||||
public void P2Pdoxpause(byte[] bArr) {
|
||||
doxpause(bArr);
|
||||
}
|
||||
|
||||
private native int doxstarthttpd(byte[] bArr, byte[] bArr2);
|
||||
|
||||
private native int doxstart(byte[] bArr);
|
||||
|
||||
private native int doxpause(byte[] bArr);
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user