Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
xuning
/
livekitAndroidXuningTest
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
David Liu
2021-02-21 20:57:35 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6b643fbeb0f68f5ba7564ece794f78f7556e8b71
6b643fbe
1 parent
055075d9
setup protobuf
隐藏空白字符变更
内嵌
并排对比
正在显示
4 个修改的文件
包含
46 行增加
和
9 行删除
.idea/jarRepositories.xml
build.gradle
livekit-android-sdk/build.gradle
sample-app/build.gradle
.idea/jarRepositories.xml
查看文件 @
6b643fb
...
...
@@ -21,5 +21,10 @@
<option
name=
"name"
value=
"Google"
/>
<option
name=
"url"
value=
"https://dl.google.com/dl/android/maven2/"
/>
</remote-repository>
<remote-repository>
<option
name=
"id"
value=
"MavenRepo"
/>
<option
name=
"name"
value=
"MavenRepo"
/>
<option
name=
"url"
value=
"https://repo.maven.apache.org/maven2/"
/>
</remote-repository>
</component>
</project>
\ No newline at end of file
...
...
build.gradle
查看文件 @
6b643fb
...
...
@@ -12,6 +12,7 @@ buildscript {
dependencies
{
classpath
'com.android.tools.build:gradle:4.1.2'
classpath
"org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath
'com.google.protobuf:protobuf-gradle-plugin:0.8.15'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
...
...
@@ -20,6 +21,7 @@ buildscript {
allprojects
{
repositories
{
google
()
mavenCentral
()
jcenter
()
}
...
...
@@ -39,7 +41,9 @@ ext {
androidx_core:
"1.2.0"
,
dagger
:
"2.27"
,
]
generated
=
[
protoSrc:
"$projectDir/../livekit-server/proto"
,
]
deps
=
[
]
annotations
=
[
...
...
livekit-android-sdk/build.gradle
查看文件 @
6b643fb
apply
plugin:
'com.android.library'
apply
plugin:
'kotlin-android'
apply
plugin:
'kotlin-android-extensions'
apply
plugin:
'com.google.protobuf'
android
{
compileSdkVersion
29
buildToolsVersion
"29.0.3"
...
...
@@ -23,10 +24,38 @@ android {
}
}
android
{
compileOptions
{
sourceCompatibility
java_version
targetCompatibility
java_version
sourceSets
{
main
.
java
.
srcDirs
+=
"${protobuf.generatedFilesBaseDir}/main/javalite"
main
.
proto
.
srcDirs
+=
"${generated.protoSrc}"
}
compileOptions
{
sourceCompatibility
java_version
targetCompatibility
java_version
}
}
protobuf
{
protoc
{
// You still need protoc like in the non-Android case
artifact
=
'com.google.protobuf:protoc:3.0.0'
}
plugins
{
javalite
{
// The codegen for lite comes as a separate artifact
artifact
=
'com.google.protobuf:protoc-gen-javalite:3.0.0'
}
}
generateProtoTasks
{
all
().
each
{
task
->
task
.
builtins
{
// In most cases you don't need the full Java output
// if you use the lite output.
remove
java
}
task
.
plugins
{
javalite
{}
}
}
}
}
...
...
@@ -37,12 +66,13 @@ dependencies {
implementation
'org.jetbrains.kotlinx:kotlinx-coroutines-android:1.4.2'
implementation
'org.webrtc:google-webrtc:1.0.32006'
implementation
"com.squareup.okhttp3:okhttp:4.9.0"
implementation
'com.google.protobuf:protobuf-lite:3.0.1'
implementation
'com.google.dagger:dagger:2.32'
annotationProcessor
'com.google.dagger:dagger-compiler:2.32'
implementation
'com.github.ajalt:timberkt:1.5.1'
testImplementation
'junit:junit:4.12'
androidTestImplementation
'androidx.test.ext:junit:1.1.2'
androidTestImplementation
'androidx.test.espresso:espresso-core:3.3.0'
...
...
sample-app/build.gradle
查看文件 @
6b643fb
...
...
@@ -2,8 +2,6 @@ apply plugin: 'com.android.application'
apply
plugin:
'kotlin-android'
apply
plugin:
'kotlin-android-extensions'
android
{
compileSdkVersion
29
buildToolsVersion
"29.0.3"
...
...
请
注册
或
登录
后发表评论