Skip to content

Commit

Permalink
init commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiemin Chen (xiemchen) committed May 31, 2017
0 parents commit b8c353f
Show file tree
Hide file tree
Showing 66 changed files with 5,561 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
.idea
.classpath
.project
.gradle
build
*.iml

89 changes: 89 additions & 0 deletions androidapp.iml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<?xml version="1.0" encoding="UTF-8"?>
<module external.linked.project.id="androidapp" external.linked.project.path="/host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp" external.root.project.path="$MODULE_DIR$" external.system.id="GRADLE" external.system.module.group="" external.system.module.version="unspecified" type="JAVA_MODULE" version="4">
<component name="FacetManager">
<facet type="android-gradle" name="Android-Gradle">
<configuration>
<option name="GRADLE_PROJECT_PATH" value=":" />
</configuration>
</facet>
<facet type="android" name="Android">
<configuration>
<option name="SELECTED_BUILD_VARIANT" value="debug" />
<option name="SELECTED_TEST_ARTIFACT" value="_android_test_" />
<option name="ASSEMBLE_TASK_NAME" value="assembleDebug" />
<option name="COMPILE_JAVA_TASK_NAME" value="compileDebugSources" />
<option name="ASSEMBLE_TEST_TASK_NAME" value="assembleDebugAndroidTest" />
<option name="COMPILE_JAVA_TEST_TASK_NAME" value="compileDebugAndroidTestSources" />
<afterSyncTasks>
<task>generateDebugAndroidTestSources</task>
<task>generateDebugSources</task>
</afterSyncTasks>
<option name="ALLOW_USER_CONFIGURATION" value="false" />
<option name="RES_FOLDERS_RELATIVE_PATH" value="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/res" />
</configuration>
</facet>
</component>
<component name="NewModuleRootManager" LANGUAGE_LEVEL="JDK_1_7" inherit-compiler-output="false">
<output url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/classes/debug" />
<output-test url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/classes/androidTest/debug" />
<exclude-output />
<content url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp">
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/generated/source/r/debug" isTestSource="false" generated="true" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/generated/source/aidl/debug" isTestSource="false" generated="true" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/generated/source/buildConfig/debug" isTestSource="false" generated="true" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/generated/source/rs/debug" isTestSource="false" generated="true" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/generated/res/rs/debug" type="java-resource" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/generated/res/resValues/debug" type="java-resource" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/generated/source/r/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/generated/source/aidl/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/generated/source/buildConfig/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/generated/source/rs/androidTest/debug" isTestSource="true" generated="true" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/generated/res/rs/androidTest/debug" type="java-test-resource" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/generated/res/resValues/androidTest/debug" type="java-test-resource" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build-types/debug/res" type="java-resource" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build-types/debug/resources" type="java-resource" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build-types/debug/assets" type="java-resource" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build-types/debug/aidl" isTestSource="false" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build-types/debug/java" isTestSource="false" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build-types/debug/jni" isTestSource="false" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build-types/debug/rs" isTestSource="false" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/res" type="java-resource" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/src" type="java-resource" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/assets" type="java-resource" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/src" isTestSource="false" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/src/main/jni" isTestSource="false" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/src/androidTest/res" type="java-test-resource" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/src/androidTest/resources" type="java-test-resource" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/src/androidTest/assets" type="java-test-resource" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/src/androidTest/aidl" isTestSource="true" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/src/androidTest/java" isTestSource="true" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/src/androidTest/jni" isTestSource="true" />
<sourceFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/src/androidTest/rs" isTestSource="true" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/assets" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/bundles" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/classes" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/coverage-instrumented-classes" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/dependency-cache" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/dex" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/dex-cache" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/incremental" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/jacoco" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/javaResources" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/libs" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/lint" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/manifests" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/ndk" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/pre-dexed" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/proguard" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/res" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/rs" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/intermediates/symbols" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/outputs" />
<excludeFolder url="file:///host/src/webrtc-build-scripts/android/webrtc/src/webrtc/examples/androidapp/build/tmp" />
</content>
<orderEntry type="jdk" jdkName="Android API 21 Platform" jdkType="Android SDK" />
<orderEntry type="sourceFolder" forTests="false" />
<orderEntry type="library" exported="" name="autobanh" level="project" />
<orderEntry type="library" exported="" name="libjingle_peerconnection_java" level="project" />
</component>
</module>
17 changes: 17 additions & 0 deletions ant.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# This file is used to override default values used by the Ant build system.
#
# This file must be checked into Version Control Systems, as it is
# integral to the build system of your project.

# This file is only used by the Ant script.

# You can use this to override default values such as
# 'source.dir' for the location of your java source folder and
# 'out.dir' for the location of your output folder.

# You can also use it define how the release builds are signed by declaring
# the following properties:
# 'key.store' for the location of your keystore and
# 'key.alias' for the name of the key to use.
# The password will be asked during the build when you use the 'release' target.

58 changes: 58 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
apply plugin: 'com.android.application'

buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.0'
}
}

allprojects {
repositories {
jcenter()
}
}

android {
compileSdkVersion 25
buildToolsVersion '25.0.0'

defaultConfig {
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

sourceSets {
main {
jniLibs.srcDirs = ['libs']
}

// Move the tests to tests/java, tests/res, etc...
instrumentTest.setRoot('tests')
}

lintOptions {
checkReleaseBuilds false
// Or, if you prefer, you can continue to check for errors in release builds,
// but continue the build even when errors are found:
abortOnError false
}
}

dependencies {
compile fileTree(include: '*.jar', dir: 'libs')

compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support:support-v4:25.3.0'
compile 'com.android.support:support-annotations:25.3.0'
compile 'com.android.support:support-compat:25.3.0'
compile 'com.android.support:support-core-ui:25.3.0'

compile 'com.jakewharton:butterknife:6.0.0'
compile 'com.google.code.gson:gson:2.2.4'
compile 'de.greenrobot:eventbus:2.2.0'

compile 'com.koushikdutta.async:androidasync:2.+'
}

92 changes: 92 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="AppRTCDemo" default="help">

<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<property file="local.properties" />

<!-- The ant.properties file can be created by you. It is only edited by the
'android' tool to add properties to it.
This is the place to change some Ant specific build properties.
Here are some properties you may want to change/update:
source.dir
The name of the source directory. Default is 'src'.
out.dir
The name of the output directory. Default is 'bin'.
For other overridable properties, look at the beginning of the rules
files in the SDK, at tools/ant/build.xml
Properties related to the SDK location or the project target should
be updated using the 'android' tool with the 'update' action.
This file is an integral part of the build system for your
application and should be checked into Version Control Systems.
-->
<property file="ant.properties" />

<!-- if sdk.dir was not set from one of the property file, then
get it from the ANDROID_HOME env var.
This must be done before we load project.properties since
the proguard config can use sdk.dir -->
<property environment="env" />
<condition property="sdk.dir" value="${env.ANDROID_SDK_ROOT}">
<isset property="env.ANDROID_SDK_ROOT" />
</condition>

<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
This contains project specific properties such as project target, and library
dependencies. Lower level build properties are stored in ant.properties
(or in .classpath for Eclipse projects).
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />

<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
unless="sdk.dir"
/>

<!--
Import per project custom build rules if present at the root of the project.
This is the place to put custom intermediary targets such as:
-pre-build
-pre-compile
-post-compile (This is typically used for code obfuscation.
Compiled code location: ${out.classes.absolute.dir}
If this is not done in place, override ${out.dex.input.absolute.dir})
-post-package
-post-build
-pre-clean
-->
<import file="custom_rules.xml" optional="true" />

<!-- Import the actual build file.
To customize existing targets, there are two options:
- Customize only one target:
- copy/paste the target into this file, *before* the
<import> task.
- customize it to your needs.
- Customize the whole content of build.xml
- copy/paste the content of the rules files (minus the top node)
into this file, replacing the <import> task.
- customize to your needs.
***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />

</project>
Binary file added gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 6 additions & 0 deletions gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#Sat Mar 04 10:09:39 EST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
Loading

0 comments on commit b8c353f

Please sign in to comment.