Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
[Android] Add LeakCanary
Saúl Ibarra Corretgé4fd8172126a0
diff --git a/android/app/build.gradle b/android/app/build.gradleindex 34002476e5..422f82ab0f 100644--- a/android/app/build.gradle+++ b/android/app/build.gradle@@ -43,4 +43,7 @@ dependencies {compile fileTree(dir: 'libs', include: ['*.jar'])implementation project(':sdk')++ debugImplementation 'com.squareup.leakcanary:leakcanary-android:1.6.1'+ releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.1'}diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xmlindex 7f65cfa28a..d65202d64c 100644--- a/android/app/src/main/AndroidManifest.xml+++ b/android/app/src/main/AndroidManifest.xml@@ -5,6 +5,7 @@android:allowBackup="true"android:icon="@mipmap/ic_launcher"android:label="@string/app_name"+ android:name=".MainApplication"android:theme="@style/AppTheme"><activityandroid:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize"diff --git a/android/app/src/main/java/org/jitsi/meet/MainApplication.java b/android/app/src/main/java/org/jitsi/meet/MainApplication.javanew file mode 100644index 0000000000..4d47d0b164--- /dev/null+++ b/android/app/src/main/java/org/jitsi/meet/MainApplication.java@@ -0,0 +1,36 @@+/*+ * Copyright @ 2018-present Atlassian Pty Ltd+ *+ * Licensed under the Apache License, Version 2.0 (the "License");+ * you may not use this file except in compliance with the License.+ * You may obtain a copy of the License at+ *+ * http://www.apache.org/licenses/LICENSE-2.0+ *+ * Unless required by applicable law or agreed to in writing, software+ * distributed under the License is distributed on an "AS IS" BASIS,+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.+ * See the License for the specific language governing permissions and+ * limitations under the License.+ */++package org.jitsi.meet;++import android.app.Application;++import com.squareup.leakcanary.LeakCanary;++/**+ * Simple {@link Application} for hooking up LeakCanary:+ * https://github.com/square/leakcanary+ */+public class MainApplication extends Application {+ @Override+ public void onCreate() {+ super.onCreate();++ if (!LeakCanary.isInAnalyzerProcess(this)) {+ LeakCanary.install(this);+ }+ }+}