Skip to content

Commit bb9d8a4

Browse files
committed
Merge branch 'Java7'
2 parents 98d5e7f + 56e2666 commit bb9d8a4

File tree

80 files changed

+2772
-2452
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+2772
-2452
lines changed

app/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ apply plugin: 'com.android.application'
22

33
android {
44
compileSdkVersion rootProject.ext.androidCompileSdkVersion
5-
buildToolsVersion rootProject.ext.androidBuildToolsVersion
5+
buildToolsVersion '28.0.3'
66

77
defaultConfig {
88
minSdkVersion rootProject.ext.minSdkVersion
@@ -13,18 +13,18 @@ android {
1313
multiDexEnabled true
1414
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
1515

16-
ndk.abiFilters = ['arm64-v8a']
16+
ndk.abiFilters = ['arm64-v8a','x86']
1717
}
1818
buildTypes {
1919
release {
2020
minifyEnabled false
2121
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
2222
}
2323
}
24-
compileOptions {
24+
/*compileOptions {
2525
sourceCompatibility JavaVersion.VERSION_1_8
2626
targetCompatibility JavaVersion.VERSION_1_8
27-
}
27+
}*/
2828
packagingOptions {
2929
exclude 'META-INF/MANIFEST.MF'
3030
}

app/src/main/AndroidManifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<uses-feature android:name="android.hardware.camera" />
99
<uses-feature android:name="android.hardware.camera.autofocus" />
1010
<uses-feature android:glEsVersion="0x00020000" android:required="true" />
11-
<uses-sdk android:minSdkVersion="16" android:targetSdkVersion="21" />
11+
<uses-sdk android:targetSdkVersion="21" />
1212

1313
<uses-permission android:name="android.permission.CAMERA" />
1414
<uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" />

app/src/main/java/org/appspot/apprtc/AppRTCAudioManager.java

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,10 +184,15 @@ private AppRTCAudioManager(Context context) {
184184
// Tablet devices (e.g. Nexus 7) does not support proximity sensors.
185185
// Note that, the sensor will not be active until start() has been called.
186186
proximitySensor = AppRTCProximitySensor.create(context,
187-
// This method will be called each time a state change is detected.
188-
// Example: user holds his hand over the device (closer than ~5 cm),
189-
// or removes his hand from the device.
190-
this ::onProximitySensorChangedState);
187+
// This method will be called each time a state change is detected.
188+
// Example: user holds his hand over the device (closer than ~5 cm),
189+
// or removes his hand from the device.
190+
new Runnable() {
191+
@Override
192+
public void run() {
193+
onProximitySensorChangedState();
194+
}
195+
});
191196

192197
Log.d(TAG, "defaultAudioDevice: " + defaultAudioDevice);
193198
AppRTCUtils.logDeviceInfo(TAG);

app/src/main/java/org/appspot/apprtc/CallActivity.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
import org.webrtc.Camera2Enumerator;
4848
import org.webrtc.CameraEnumerator;
4949
import org.webrtc.EglBase;
50+
import org.webrtc.EglBaseHelper;
5051
import org.webrtc.FileVideoCapturer;
5152
import org.webrtc.IceCandidate;
5253
import org.webrtc.Logging;
@@ -232,7 +233,7 @@ public void onClick(View view) {
232233
remoteSinks.add(remoteProxyRenderer);
233234

234235
final Intent intent = getIntent();
235-
final EglBase eglBase = EglBase.create();
236+
final EglBase eglBase = EglBaseHelper.create();
236237

237238
// Create video renderers.
238239
pipRenderer.init(eglBase.getEglBaseContext(), null);

app/src/main/java/org/appspot/apprtc/DirectRTCClient.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ public void onTCPConnected(boolean isServer) {
235235

236236
SignalingParameters parameters = new SignalingParameters(
237237
// Ice servers are not needed for direct connections.
238-
new ArrayList<>(),
238+
new ArrayList<PeerConnection.IceServer>(),
239239
isServer, // Server side acts as the initiator on direct connections.
240240
null, // clientId
241241
null, // wssUrl
@@ -271,7 +271,7 @@ public void onTCPMessage(String msg) {
271271

272272
SignalingParameters parameters = new SignalingParameters(
273273
// Ice servers are not needed for direct connections.
274-
new ArrayList<>(),
274+
new ArrayList<PeerConnection.IceServer>(),
275275
false, // This code will only be run on the client side. So, we are not the initiator.
276276
null, // clientId
277277
null, // wssUrl

0 commit comments

Comments
 (0)