Skip to content

Commit

Permalink
引入bilimiao2
Browse files Browse the repository at this point in the history
  • Loading branch information
storytellerF committed Apr 8, 2023
1 parent 5e70de3 commit 43d03d2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
11 changes: 8 additions & 3 deletions DanmakuFlameMaster/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,14 @@ android {
compileSdkVersion rootProject.ext.compile_sdk_version

defaultConfig {
minSdkVersion 9
minSdkVersion 14
targetSdkVersion rootProject.ext.target_sdk_version
versionCode 1
versionName '1.0.0'
}
namespace 'master.flame.danmaku'
}

dependencies {
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
}
13 changes: 8 additions & 5 deletions bilimiao-comm/build.gradle
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import org.apache.tools.ant.taskdefs.condition.Os
plugins {
id 'com.android.library'
id 'kotlin-android'
Expand Down Expand Up @@ -39,15 +40,17 @@ android {
}
}
}
namespace 'com.a10miaomiao.bilimiao.comm'
}
def archSuffix = Os.isFamily(Os.FAMILY_MAC) ? ':osx-x86_64' : ''

protobuf {
protoc { artifact = 'com.google.protobuf:protoc:3.12.0' } // 相当于proto编译器
protoc { artifact = 'com.google.protobuf:protoc:3.22.2' } // 相当于proto编译器
plugins {
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.33.0' } // Grpc单独的编译器
grpc { artifact = 'io.grpc:protoc-gen-grpc-java:1.54.0' } // Grpc单独的编译器

javalite {
artifact = 'com.google.protobuf:protoc-gen-javalite:3.0.0'
artifact = "com.google.protobuf:protoc-gen-javalite:3.0.0:$archSuffix"
// 官方推荐的方法,Android 适用javalite,相较于java插件,生成的代码更轻量化
}
}
Expand Down Expand Up @@ -80,8 +83,8 @@ dependencies {
implementation "com.google.code.gson:gson:$gson_version"
implementation "com.squareup.okhttp3:okhttp:$okhttp_version"

implementation 'io.grpc:grpc-protobuf-lite:1.33.0'
implementation 'io.grpc:grpc-stub:1.33.0'
implementation 'io.grpc:grpc-protobuf-lite:1.49.2'
implementation 'io.grpc:grpc-stub:1.49.2'
implementation 'javax.annotation:javax.annotation-api:1.2'

// 极验验证
Expand Down

0 comments on commit 43d03d2

Please sign in to comment.