Nacos+gRPC在Android上的操作步骤和源代码

上传者: heb | 上传时间: 2022-04-26 09:07:38 | 文件大小: 925KB | 文件类型: 7Z
该开发环境和示例演示了最新的grpc proto 文件编译,服务端和客户端示例,对于android完整,全面配置,各个库版本较新的示例。Android开发grpc环境配置非常重要要,特别是各个库版本的匹配。 nacos在android上的应用比较少见,但作为产品的不部分,往往提供了较好的操作体现,也就是即作为客户端与系统交互,也能够发布自己的服务,供服务器端调用,传递数据和操控指令。 nacos在android的开发实践非常少见,甚至没有,这个示例时作者花费了不少实践摸索出来的,统一配置管理和服务注册,发现都可以正常使用。 两种技术在Android上的示例和集成应用,满足了传统桌面程序向微服务转化的关键技术支持,使用的包的版本也时最新的。内含grpc集成步骤和nacos集成步骤两个独立指导手册,一个包文件和源代码。

文件下载

资源详情

[{"title":"( 72 个子文件 925KB ) Nacos+gRPC在Android上的操作步骤和源代码","children":[{"title":"nacos install.txt <span style='color:#111;'> 7.01KB </span>","children":null,"spread":false},{"title":"androidnacos","children":[{"title":"gradlew.bat <span style='color:#111;'> 2.70KB </span>","children":null,"spread":false},{"title":"gradlew <span style='color:#111;'> 5.63KB </span>","children":null,"spread":false},{"title":"gradle.properties <span style='color:#111;'> 1.24KB </span>","children":null,"spread":false},{"title":"app","children":[{"title":"proguard-rules.pro <span style='color:#111;'> 750B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"test","children":[{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"androidnacos","children":[{"title":"ExampleUnitTest.java <span style='color:#111;'> 385B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"androidTest","children":[{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"androidnacos","children":[{"title":"ExampleInstrumentedTest.java <span style='color:#111;'> 762B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}],"spread":true}],"spread":true},{"title":"main","children":[{"title":"res","children":[{"title":"navigation","children":[{"title":"nav_graph.xml <span style='color:#111;'> 1.03KB </span>","children":null,"spread":false}],"spread":true},{"title":"values-land","children":[{"title":"dimens.xml <span style='color:#111;'> 66B </span>","children":null,"spread":false}],"spread":true},{"title":"menu","children":[{"title":"menu_main.xml <span style='color:#111;'> 412B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxxhdpi","children":[{"title":"ic_launcher.webp <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.webp <span style='color:#111;'> 7.60KB </span>","children":null,"spread":false}],"spread":false},{"title":"values-w600dp","children":[{"title":"dimens.xml <span style='color:#111;'> 66B </span>","children":null,"spread":false}],"spread":false},{"title":"drawable","children":[{"title":"ic_launcher_background.xml <span style='color:#111;'> 5.47KB </span>","children":null,"spread":false}],"spread":false},{"title":"values-w1240dp","children":[{"title":"dimens.xml <span style='color:#111;'> 67B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-hdpi","children":[{"title":"ic_launcher.webp <span style='color:#111;'> 1.37KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.webp <span style='color:#111;'> 2.83KB </span>","children":null,"spread":false}],"spread":false},{"title":"drawable-v24","children":[{"title":"ic_launcher_foreground.xml <span style='color:#111;'> 1.66KB </span>","children":null,"spread":false}],"spread":false},{"title":"values","children":[{"title":"colors.xml <span style='color:#111;'> 378B </span>","children":null,"spread":false},{"title":"themes.xml <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"strings.xml <span style='color:#111;'> 550B </span>","children":null,"spread":false},{"title":"dimens.xml <span style='color:#111;'> 66B </span>","children":null,"spread":false}],"spread":false},{"title":"values-night","children":[{"title":"themes.xml <span style='color:#111;'> 834B </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xxhdpi","children":[{"title":"ic_launcher.webp <span style='color:#111;'> 2.82KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.webp <span style='color:#111;'> 5.78KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-mdpi","children":[{"title":"ic_launcher.webp <span style='color:#111;'> 982B </span>","children":null,"spread":false},{"title":"ic_launcher_round.webp <span style='color:#111;'> 1.73KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-xhdpi","children":[{"title":"ic_launcher.webp <span style='color:#111;'> 1.86KB </span>","children":null,"spread":false},{"title":"ic_launcher_round.webp <span style='color:#111;'> 3.83KB </span>","children":null,"spread":false}],"spread":false},{"title":"mipmap-anydpi-v26","children":[{"title":"ic_launcher_round.xml <span style='color:#111;'> 272B </span>","children":null,"spread":false},{"title":"ic_launcher.xml <span style='color:#111;'> 272B </span>","children":null,"spread":false}],"spread":false},{"title":"layout","children":[{"title":"fragment_second.xml <span style='color:#111;'> 1.18KB </span>","children":null,"spread":false},{"title":"content_main.xml <span style='color:#111;'> 909B </span>","children":null,"spread":false},{"title":"activity_main.xml <span style='color:#111;'> 1.41KB </span>","children":null,"spread":false},{"title":"fragment_first.xml <span style='color:#111;'> 1.22KB </span>","children":null,"spread":false}],"spread":false},{"title":"xml","children":[{"title":"network_security_config.xml <span style='color:#111;'> 144B </span>","children":null,"spread":false}],"spread":false}],"spread":false},{"title":"java","children":[{"title":"com","children":[{"title":"example","children":[{"title":"androidnacos","children":[{"title":"GpcServer.java <span style='color:#111;'> 2.33KB </span>","children":null,"spread":false},{"title":"GpcClient.java <span style='color:#111;'> 2.41KB </span>","children":null,"spread":false},{"title":"MainActivity.java <span style='color:#111;'> 4.69KB </span>","children":null,"spread":false},{"title":"nacosTest.java <span style='color:#111;'> 1.83KB </span>","children":null,"spread":false},{"title":"FirstFragment.java <span style='color:#111;'> 1.25KB </span>","children":null,"spread":false},{"title":"SecondFragment.java <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false}],"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"protos","children":[{"title":"GpcService.proto <span style='color:#111;'> 755B </span>","children":null,"spread":false}],"spread":true},{"title":"AndroidManifest.xml <span style='color:#111;'> 1.28KB </span>","children":null,"spread":false}],"spread":true},{"title":"generated","children":[{"title":"debug","children":[{"title":"grpc","children":[{"title":"com","children":[{"title":"ctcp","children":[{"title":"grpc","children":[{"title":"gpc","children":[{"title":"GpcServiceGrpc.java <span style='color:#111;'> 12.16KB </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":true},{"title":"javalite","children":[{"title":"com","children":[{"title":"ctcp","children":[{"title":"grpc","children":[{"title":"gpc","children":[{"title":"tableReply.java <span style='color:#111;'> 10.62KB </span>","children":null,"spread":false},{"title":"gpcRequestOrBuilder.java <span style='color:#111;'> 346B </span>","children":null,"spread":false},{"title":"gantryReplyOrBuilder.java <span style='color:#111;'> 562B </span>","children":null,"spread":false},{"title":"gantryReply.java <span style='color:#111;'> 10.56KB </span>","children":null,"spread":false},{"title":"tableReplyOrBuilder.java <span style='color:#111;'> 560B </span>","children":null,"spread":false},{"title":"gpcRequest.java <span style='color:#111;'> 8.00KB </span>","children":null,"spread":false},{"title":"GpcServiceOuterClass.java <span style='color:#111;'> 371B </span>","children":null,"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false}],"spread":false},{"title":"java","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 6B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 3.25KB </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"javax.annotation-api-1.2.jar <span style='color:#111;'> 25.75KB </span>","children":null,"spread":false},{"title":"nacos-api-1.4.2.2.jar <span style='color:#111;'> 64.47KB </span>","children":null,"spread":false},{"title":"nacos-client-1.4.3.jar <span style='color:#111;'> 225.30KB </span>","children":null,"spread":false},{"title":"nacos-config-1.4.3.jar <span style='color:#111;'> 463.72KB </span>","children":null,"spread":false},{"title":"nacos-common-1.4.2.2.jar <span style='color:#111;'> 155.78KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"gradle","children":[{"title":"wrapper","children":[{"title":"gradle-wrapper.jar <span style='color:#111;'> 57.82KB </span>","children":null,"spread":false},{"title":"gradle-wrapper.properties <span style='color:#111;'> 236B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":".gitignore <span style='color:#111;'> 225B </span>","children":null,"spread":false},{"title":"local.properties <span style='color:#111;'> 453B </span>","children":null,"spread":false},{"title":"settings.gradle <span style='color:#111;'> 329B </span>","children":null,"spread":false},{"title":"build.gradle <span style='color:#111;'> 524B </span>","children":null,"spread":false}],"spread":true},{"title":"protos","children":[{"title":"GpcService.proto <span style='color:#111;'> 755B </span>","children":null,"spread":false}],"spread":true},{"title":"grpc install.txt <span style='color:#111;'> 3.96KB </span>","children":null,"spread":false},{"title":"libs","children":[{"title":"javax.annotation-api-1.2.jar <span style='color:#111;'> 25.75KB </span>","children":null,"spread":false},{"title":"nacos-api-1.4.2.2.jar <span style='color:#111;'> 64.47KB </span>","children":null,"spread":false},{"title":"nacos-client-1.4.3.jar <span style='color:#111;'> 225.30KB </span>","children":null,"spread":false},{"title":"nacos-config-1.4.3.jar <span style='color:#111;'> 463.72KB </span>","children":null,"spread":false},{"title":"nacos-common-1.4.2.2.jar <span style='color:#111;'> 155.78KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明