build: 修改到可编译成功

This commit is contained in:
2026-07-13 11:41:48 +08:00
parent 87f98799f7
commit 32a9cdbc1b
19 changed files with 20 additions and 13 deletions

View File

@@ -1,2 +1,4 @@
/build/
/.idea/
/app/build/
/.idea/
/.gradle/

View File

@@ -43,7 +43,8 @@ dependencies {
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
// WebRTC
implementation 'io.github.nicholasgasior:webrtc-android:1.0.0'
implementation 'io.github.webrtc-sdk:android:144.7559.09'
// implementation 'org.webrtc:google-webrtc:1.0.32006'
// OkHttp for WebSocket
implementation 'com.squareup.okhttp3:okhttp:4.12.0'
// Gson for JSON

View File

@@ -162,16 +162,8 @@ public class ScreenCaptureService extends Service {
webRtcClient.setInputCallback(commandJson -> inputHandler.handleCommand(commandJson));
// 初始化屏幕捕获
screenCapturer = new ScreenCapturerAndroid(resultData, new ScreenCapturerAndroid.Callback() {
@Override
public void onCapturerStarted(boolean success) {
Log.d(TAG, "Screen capture started: " + success);
}
screenCapturer = new ScreenCapturerAndroid(resultData, new MediaProjection.Callback() {
@Override
public void onCapturerStopped() {
Log.d(TAG, "Screen capture stopped");
}
});
webRtcClient.setVideoCapturer(screenCapturer);

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -3,6 +3,7 @@ pluginManagement {
google()
mavenCentral()
gradlePluginPortal()
maven { url "https://jitpack.io" }
}
}
@@ -11,6 +12,7 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
}

View File

@@ -1,2 +1,4 @@
/build/
/.idea/
/app/build/
/.idea/
/.gradle/

View File

@@ -33,7 +33,7 @@ dependencies {
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
// WebRTC
implementation 'io.github.nicholasgasior:webrtc-android:1.0.0'
implementation 'io.github.webrtc-sdk:android:144.7559.09'
// OkHttp for WebSocket
implementation 'com.squareup.okhttp3:okhttp:4.12.0'

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

View File

@@ -0,0 +1,6 @@
#Tue Mar 16 15:27:10 CST 2021
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.13-all.zip

View File

@@ -3,6 +3,7 @@ pluginManagement {
google()
mavenCentral()
gradlePluginPortal()
maven { url "https://jitpack.io" }
}
}
@@ -11,6 +12,7 @@ dependencyResolutionManagement {
repositories {
google()
mavenCentral()
maven { url "https://jitpack.io" }
}
}