EvilsLive 项目教程
1、项目的目录结构及介绍
EvilsLive 项目的目录结构如下:
EvilsLive/
├── android/
│ ├── app/
│ └── videolib/
├── doc/
├── snapshot/
├── travis.yml
├── LICENSE
└── README.md
目录结构介绍
- android/: 包含 Android 平台的应用和核心功能实现。
- app/: 测试的 sample 应用。
- videolib/: 直播相关核心功能实现。
- doc/: 文档说明。
- snapshot/: 快照文件。
- travis.yml: Travis CI 配置文件。
- LICENSE: 项目许可证。
- README.md: 项目介绍文件。
2、项目的启动文件介绍
EvilsLive 项目的启动文件主要位于 android/app/
目录下。以下是一些关键文件的介绍:
- MainActivity.java: 这是 Android 应用的主活动文件,负责应用的初始化和界面展示。
- AndroidManifest.xml: 这是 Android 应用的清单文件,定义了应用的组件、权限和其他配置。
3、项目的配置文件介绍
EvilsLive 项目的配置文件主要包括以下几个:
- travis.yml: 这是 Travis CI 的配置文件,用于自动化构建和测试。
- AndroidManifest.xml: 这是 Android 应用的清单文件,定义了应用的组件、权限和其他配置。
- build.gradle: 这是 Gradle 构建系统的配置文件,定义了项目的依赖、构建配置等。
配置文件详细介绍
travis.yml
language: android
android:
components:
- tools
- platform-tools
- build-tools-25.0.2
- android-25
- extra-android-m2repository
- extra-google-m2repository
script:
- ./gradlew build
AndroidManifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.thinkkeep.videolib">
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity android:name=".MainActivity">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "com.thinkkeep.videolib"
minSdkVersion 19
targetSdkVersion 25
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:25.3.1'
}
以上是 EvilsLive 项目的基本教程,涵盖了项目的目录结构、启动文件和配置文件的介绍。希望这些内容能帮助你更好地理解和使用该项目。