Commit 567513eaeb410813360d5d04e91617692e3d54d1
Merge branch 'master' of bj.gitlab.cnlive.com:cnlive-team/CNStreamDemo
Showing
7 changed files
with
60 additions
and
47 deletions
app/build.gradle
| ... | ... | @@ -3,18 +3,34 @@ apply plugin: 'com.android.application' |
| 3 | 3 | android { |
| 4 | 4 | compileSdkVersion 25 |
| 5 | 5 | buildToolsVersion '25.0.0' |
| 6 | - | |
| 7 | 6 | defaultConfig { |
| 8 | 7 | applicationId "com.cnlive.demo.stream" |
| 9 | 8 | minSdkVersion 16 |
| 10 | 9 | targetSdkVersion 22 |
| 11 | 10 | versionCode 1 |
| 12 | 11 | versionName "1.0" |
| 12 | + multiDexEnabled true | |
| 13 | + } | |
| 14 | + | |
| 15 | + signingConfigs { | |
| 16 | + myConfig { | |
| 17 | + storeFile file("streamdemo4.jks") | |
| 18 | + storePassword "123456" | |
| 19 | + keyAlias "streamdemo" | |
| 20 | + keyPassword "123456" | |
| 21 | + } | |
| 13 | 22 | } |
| 23 | + | |
| 14 | 24 | buildTypes { |
| 15 | 25 | release { |
| 16 | 26 | minifyEnabled true |
| 17 | 27 | proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' |
| 28 | + signingConfig signingConfigs.myConfig | |
| 29 | + } | |
| 30 | + debug { | |
| 31 | + minifyEnabled false | |
| 32 | + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
| 33 | + debuggable true | |
| 18 | 34 | } |
| 19 | 35 | } |
| 20 | 36 | } | ... | ... |
app/proguard-rules.pro
| 1 | --keepattributes Signature | |
| 1 | +# Add project specific ProGuard rules here. | |
| 2 | +# By default, the flags in this file are appended to flags specified | |
| 3 | +# in D:\android_sdk/tools/proguard/proguard-android.txt | |
| 4 | +# You can edit the include path and order by changing the proguardFiles | |
| 5 | +# directive in build.gradle. | |
| 6 | +# | |
| 7 | +# For more details, see | |
| 8 | +# http://developer.android.com/guide/developing/tools/proguard.html | |
| 9 | + | |
| 10 | +# Add any project specific keep options here: | |
| 11 | + | |
| 12 | +# If your project uses WebView with JS, uncomment the following | |
| 13 | +# and specify the fully qualified class name to the JavaScript interface | |
| 14 | +# class: | |
| 15 | +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { | |
| 16 | +# public *; | |
| 17 | +#} | |
| 2 | 18 | |
| 3 | --dontwarn com.cnlive.** | |
| 4 | --keep class com.cnlive.** {*;} | |
| 5 | --dontwarn com.ksyun.** | |
| 6 | --keep class com.ksyun.** { *;} | |
| 7 | 19 | -dontwarn com.ksy.** |
| 8 | --keep class com.ksy.** { *;} | |
| 9 | 20 | \ No newline at end of file |
| 21 | +-dontwarn com.ksyun.** | |
| 22 | + | |
| 23 | +-keep class com.ksy.**{*;} | |
| 24 | +-keep class com.ksyun.**{*;} | |
| 25 | + | |
| 26 | +-keep class com.cnlive.libs.**{*;} | |
| 27 | + | |
| 28 | +-keep class io.rong.** {*;} | |
| 29 | + -keep class * implements io.rong.imlib.model.MessageContent {*;} | |
| 30 | + -dontwarn io.rong.push.** | |
| 31 | + -dontnote com.xiaomi.** | |
| 32 | + -dontnote com.google.android.gms.gcm.** | |
| 33 | + -dontnote io.rong.** | |
| 34 | + -keep public class * extends android.content.BroadcastReceiver | |
| 35 | + | |
| 36 | + -dontwarn com.shiliantong.** | |
| 37 | + -dontwarn com.slt.** | |
| 38 | + -keep class com.shiliantong.**{*;} | |
| 39 | + -keep class com.slt.**{*;} | |
| 10 | 40 | \ No newline at end of file | ... | ... |
app/src/androidTest/java/com/cnlive/libs/ApplicationTest.java deleted
100644 → 0
| 1 | -package com.cnlive.libs; | |
| 2 | - | |
| 3 | -import android.app.Application; | |
| 4 | -import android.test.ApplicationTestCase; | |
| 5 | - | |
| 6 | -/** | |
| 7 | - * <a href="http://d.android.com/tools/testing/testing_android.html">Testing Fundamentals</a> | |
| 8 | - */ | |
| 9 | -public class ApplicationTest extends ApplicationTestCase<Application> { | |
| 10 | - public ApplicationTest() { | |
| 11 | - super(Application.class); | |
| 12 | - } | |
| 13 | -} | |
| 14 | 0 | \ No newline at end of file |
app/src/main/java/com/cnlive/demo/stream/StreamActivity.java
| ... | ... | @@ -526,19 +526,14 @@ public class StreamActivity extends Activity { |
| 526 | 526 | } |
| 527 | 527 | |
| 528 | 528 | private void onBeautyChecked(boolean isChecked) { |
| 529 | - if (isChecked) { | |
| 530 | - if (mStreamer.getVideoEncodeMethod() == | |
| 531 | - IStreamer.ENCODE_METHOD_SOFTWARE_COMPAT) { | |
| 532 | - mStreamer.getImgTexFilterMgt().setFilter(mStreamer.getGLRender(), | |
| 533 | - DENOISE.getFilter()); | |
| 534 | - mStreamer.setEnableImgBufBeauty(true); | |
| 535 | - } else { | |
| 536 | -// showChooseFilter(); | |
| 537 | - mBeautyChooseView.setVisibility(isChecked ? View.VISIBLE : View.INVISIBLE); | |
| 538 | - } | |
| 529 | + if (mStreamer.getVideoEncodeMethod() == | |
| 530 | + IStreamer.ENCODE_METHOD_SOFTWARE_COMPAT) { | |
| 531 | + mStreamer.getImgTexFilterMgt().setFilter(mStreamer.getGLRender(), | |
| 532 | + DENOISE.getFilter()); | |
| 533 | + mStreamer.setEnableImgBufBeauty(true); | |
| 539 | 534 | } else { |
| 540 | - mStreamer.getImgTexFilterMgt().setFilter(mStreamer.getGLRender(), BEAUTY_DISABLE.getFilter()); | |
| 541 | - mStreamer.setEnableImgBufBeauty(false); | |
| 535 | +// showChooseFilter(); | |
| 536 | + mBeautyChooseView.setVisibility(isChecked ? View.VISIBLE : View.INVISIBLE); | |
| 542 | 537 | } |
| 543 | 538 | } |
| 544 | 539 | ... | ... |
app/src/test/java/com/cnlive/libs/ExampleUnitTest.java deleted
100644 → 0
| 1 | -package com.cnlive.libs; | |
| 2 | - | |
| 3 | -import org.junit.Test; | |
| 4 | - | |
| 5 | -import static org.junit.Assert.*; | |
| 6 | - | |
| 7 | -/** | |
| 8 | - * To work on unit tests, switch the Test Artifact in the Build Variants view. | |
| 9 | - */ | |
| 10 | -public class ExampleUnitTest { | |
| 11 | - @Test | |
| 12 | - public void addition_isCorrect() throws Exception { | |
| 13 | - assertEquals(4, 2 + 2); | |
| 14 | - } | |
| 15 | -} | |
| 16 | 0 | \ No newline at end of file |
doc/Android推流SDK说明文档.pdf deleted
100644 → 0
No preview for this file type
doc/推流SDK说明文档.pdf
No preview for this file type