Skip to content

Commit

Permalink
Merge pull request #2 from tanhx2008/release_0.1.0
Browse files Browse the repository at this point in the history
release v0.1.0
  • Loading branch information
geeklok authored Apr 18, 2018
2 parents 7478208 + b5fdffc commit e311797
Show file tree
Hide file tree
Showing 176 changed files with 3,678 additions and 1 deletion.
40 changes: 40 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# Built application files
*.apk
*.ap_

# Files for the Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

# Gradle files
.gradle/
build/
/*/build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio
*.iml
.idea

# Ndk
obj

# OSX files
.DS_Store

reference
44 changes: 44 additions & 0 deletions QNDroidRTCDemo/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
# Built application files
*.apk
*.ap_

# Files for the ART/Dalvik VM
*.dex

# Java class files
*.class

# Generated files
bin/
gen/
out/

obj

# Gradle files
.gradle/
build/

# Local configuration file (sdk path, etc)
local.properties

# Proguard folder generated by Eclipse
proguard/

# Log Files
*.log

# Android Studio Navigation editor temp files
.navigation/

# Android Studio captures folder
captures/

# Intellij
*.iml
.idea

# Keystore files
*.jks

reference
1 change: 1 addition & 0 deletions QNDroidRTCDemo/app/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/build
28 changes: 28 additions & 0 deletions QNDroidRTCDemo/app/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion '26.0.2'

defaultConfig {
applicationId "com.qiniu.droid.rtc.demo"
minSdkVersion 18
targetSdkVersion 25
versionCode 1
versionName "0.1.0"
buildConfigField "long", "BUILD_TIMESTAMP", System.currentTimeMillis() + "L"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
compile files('libs/qndroid-rtc-0.1.0.jar')
compile 'com.android.support:appcompat-v7:25+'
compile 'com.squareup.okhttp3:okhttp:3.9.1'
compile 'com.bugsnag:bugsnag-android-ndk:1.+'
compile 'de.greenrobot:eventbus:2.4.0'
}
Binary file added QNDroidRTCDemo/app/libs/qndroid-rtc-0.1.0.jar
Binary file not shown.
17 changes: 17 additions & 0 deletions QNDroidRTCDemo/app/proguard-rules.pro
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in /Users/lujun/Library/Android/sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
61 changes: 61 additions & 0 deletions QNDroidRTCDemo/app/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.qiniu.droid.rtc.demo">

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<uses-permission android:name="android.permission.CAMERA" />
<uses-permission android:name="android.permission.FLASHLIGHT" />
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<uses-permission android:name="android.permission.ACCESS_WIFI_STATE" />
<uses-permission android:name="android.permission.READ_LOGS" />
<uses-permission android:name="android.permission.WAKE_LOCK" />

<application
android:name=".RTCApplication"
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true"
android:theme="@style/AppTheme">

<meta-data
android:name="com.bugsnag.android.API_KEY"
android:value="dc3c1a9ac6f60a571f79b502c5a9b185"/>

<activity android:name=".activity.WelcomeActivity"
android:screenOrientation="portrait">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name=".activity.MainActivity"
android:screenOrientation="portrait" />
<activity android:name=".activity.RoomActivity"
android:screenOrientation="portrait"
android:launchMode="singleTop"
android:configChanges="orientation|smallestScreenSize|screenSize|screenLayout"
android:theme="@style/AppTheme">
</activity>
<activity android:name=".activity.UserConfigActivity"
android:screenOrientation="portrait" />
<activity android:name=".activity.SettingActivity"
android:screenOrientation="portrait" />
<service android:name=".service.DownloadService"
android:exported="false"/>
<provider
android:authorities="${applicationId}.update.provider"
android:name=".utils.UpdateApkFileProvider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/update_apk_paths" />
</provider>
</application>

</manifest>
Binary file added QNDroidRTCDemo/app/src/main/ic_launcher-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added QNDroidRTCDemo/app/src/main/ic_niu_logo-web.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
package com.qiniu.droid.rtc.demo;

import android.app.Application;

import com.qiniu.droid.rtc.QNLogLevel;
import com.qiniu.droid.rtc.QNRTCEnv;

public class RTCApplication extends Application {

@Override
public void onCreate() {
super.onCreate();
QNRTCEnv.setLogLevel(QNLogLevel.INFO);
/**
* init must be called before any other func
*/
QNRTCEnv.init(getApplicationContext());
}
}
Loading

0 comments on commit e311797

Please sign in to comment.