你的位置:首页 > 信息动态 > 新闻中心
信息动态
联系我们

它会生成一个叫做my-release-key.keystore的密钥库文件

2021-11-27 4:58:36

实际上 ConsumeFromWhere 的枚举类源码中还有另外三个值,但是已经被弃用了。但是这个配置仅对新的 ConsumerGroup 有效,已经存在的 ConsumerGroup 会继续按照上次消费到的 Offset 继续消费。

其实也很好理解,假设有 1000 条消息,你的服务已经消费到了 500 条了,然后你上线新的东西将服务重新启动,然后又从头开始消费了?这不扯吗?
这里我们传的是 *,代表订阅所有类别的消息。当然我们也可以传入 tagA || tagB || tagC 这种,代表我们只消费打了这三种 Tag 的消息。

RocketMQ 会根据我们传入的这两个参数,构造出 SubscriptionData ,放入一个位于内存的 ConcurrentHashMap 中维护起来,简单来说就一句话,把这个订阅的 Topic 缓存下来。

在缓存完之后会进行一个比较关键的操作,那就是开始向所有的 Broker 发送心跳。Consumer 客户端会将:


打包APK
Android 要求所有应用都有一个数字签名才会被允许安装在用户手机上,所以在把应用发布到类似�0�2Google Play store这样的应用市场之前,你需要先生成一个签名的 APK 包。Android 开发者官网上的�0�2如何给你的应用签名文档描述了签名的细节。本指南旨在提供一个简化的签名和打包 js 的操作步骤,不会涉及太多理论。

生成一个签名密钥
你可以用keytool命令生成一个私有密钥。在 Windows 上keytool命令放在 JDK 的 bin 目录中(比如C:\Program Files\Java\jdkx.x.x_x\bin),你可能需要在命令行中先进入那个目录才能执行此命令。

$ keytool -genkeypair -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000

这条命令会要求你输入密钥库(keystore)和对应密钥的密码,然后设置一些发行相关的信息。最后它会生成一个叫做my-release-key.keystore的密钥库文件。

在运行上面这条语句之后,密钥库里应该已经生成了一个单独的密钥,有效期为 10000 天。--alias 参数后面的别名是你将来为应用签名时所需要用到的,所以记得记录这个别名。

注意:请记得妥善地保管好你的密钥库文件,一般不要上传到版本库或者其它的地方。

Gradle 的assembleRelease参数会把所有用到的 JavaScript 代码都打包到一起,然后内置到 APK 包中。如果你想调整下这个行为(比如 js 代码以及静态资源打包的默认文件名或是目录结构等),可以看看android/app/build.gradle文件,然后琢磨下应该怎么修改以满足你的需求。

在把发行版本提交到 Play Store 之前,你应该做一次最终测试。输入以下命令可以在设备上安装发行版本:

$ react-native run-android --variant=release

注意variant=release参数只能在你完成了上面的签名配置之后才可以使用。你现在可以关掉运行中的 packager 了,因为你所有的代码和框架依赖已经都被打包到 apk 包中,可以离线运行了。

http://china.makepolo.com/product-detail/101077774835.html
http://china.makepolo.com/product-detail/101077774836.html
http://china.makepolo.com/product-detail/101077774837.html
http://china.makepolo.com/product-detail/101077774838.html
http://china.makepolo.com/product-detail/101077774839.html
http://china.makepolo.com/product-detail/101077774840.html
http://china.makepolo.com/product-detail/101077774842.html
http://china.makepolo.com/product-detail/101077774843.html
http://china.makepolo.com/product-detail/101077774844.html
http://china.makepolo.com/product-detail/101077774845.html
http://china.makepolo.com/product-detail/101077774846.html
http://china.makepolo.com/product-detail/101077774847.html
http://china.makepolo.com/product-detail/101077774848.html
http://china.makepolo.com/product-detail/101077774849.html
http://china.makepolo.com/product-detail/101077774850.html
http://china.makepolo.com/product-detail/101077774851.html
http://china.makepolo.com/product-detail/101077774852.html
http://china.makepolo.com/product-detail/101077774853.html
http://china.makepolo.com/product-detail/101077774854.html
http://china.makepolo.com/product-detail/101077774855.html
http://china.makepolo.com/product-detail/101077774856.html
http://china.makepolo.com/product-detail/101077774857.html
http://china.makepolo.com/product-detail/101077774858.html
http://china.makepolo.com/product-detail/101077774859.html
http://china.makepolo.com/product-detail/101077774860.html
http://china.makepolo.com/product-detail/101077774861.html
http://china.makepolo.com/product-detail/101077774862.html
http://china.makepolo.com/product-detail/101077774863.html
http://china.makepolo.com/product-detail/101077774864.html
http://china.makepolo.com/product-detail/101077774865.html
http://china.makepolo.com/product-detail/101077774866.html
http://china.makepolo.com/product-detail/101077774867.html
http://china.makepolo.com/product-detail/101077774869.html
http://china.makepolo.com/product-detail/101077774868.html
http://china.makepolo.com/product-detail/101077774870.html
http://china.makepolo.com/product-detail/101077774871.html
http://china.makepolo.com/product-detail/101077774872.html
http://china.makepolo.com/product-detail/101077774873.html
http://china.makepolo.com/product-detail/101077774874.html
http://china.makepolo.com/product-detail/101077774875.html
http://china.makepolo.com/product-detail/101077774877.html
http://china.makepolo.com/product-detail/101077774878.html
http://china.makepolo.com/product-detail/101077774879.html
http://china.makepolo.com/product-detail/101077774880.html
http://china.makepolo.com/product-detail/101077774881.html
http://china.makepolo.com/product-detail/101077774882.html
http://china.makepolo.com/product-detail/101077774883.html
http://china.makepolo.com/product-detail/101077774884.html
http://china.makepolo.com/product-detail/101077774885.html
http://china.makepolo.com/product-detail/101077774886.html
http://china.makepolo.com/product-detail/101077774887.html
http://china.makepolo.com/product-detail/101077774888.html
http://china.makepolo.com/product-detail/101077774889.html
http://china.makepolo.com/product-detail/101077774890.html
http://china.makepolo.com/product-detail/101077774891.html
http://china.makepolo.com/product-detail/101077774892.html
http://china.makepolo.com/product-detail/101077774893.html
http://china.makepolo.com/product-detail/101077774894.html
http://china.makepolo.com/product-detail/101077774895.html
http://china.makepolo.com/product-detail/101077774896.html
http://china.makepolo.com/product-detail/101077774897.html
http://china.makepolo.com/product-detail/101077774898.html
http://china.makepolo.com/product-detail/101077774899.html
http://china.makepolo.com/product-detail/101077774900.html
http://china.makepolo.com/product-detail/101077774901.html
http://china.makepolo.com/product-detail/101077774902.html
http://china.makepolo.com/product-detail/101077774903.html
http://china.makepolo.com/product-detail/101077774904.html
http://china.makepolo.com/product-detail/101077774905.html
http://china.makepolo.com/product-detail/101077774906.html
http://china.makepolo.com/product-detail/101077774908.html
http://china.makepolo.com/product-detail/101077774909.html
http://china.makepolo.com/product-detail/101077774910.html
http://china.makepolo.com/product-detail/101077774912.html
http://china.makepolo.com/product-detail/101077774913.html
http://china.makepolo.com/product-detail/101077774914.html
http://china.makepolo.com/product-detail/101077774915.html
http://china.makepolo.com/product-detail/101077774916.html
http://china.makepolo.com/product-detail/101077774917.html
http://china.makepolo.com/product-detail/101077774918.html
http://china.makepolo.com/product-detail/101077774919.html
http://china.makepolo.com/product-detail/101077774920.html
http://china.makepolo.com/product-detail/101077774921.html
http://china.makepolo.com/product-detail/101077774922.html
http://china.makepolo.com/product-detail/101077774923.html
http://china.makepolo.com/product-detail/101077774924.html
http://china.makepolo.com/product-detail/101077774925.html
http://china.makepolo.com/product-detail/101077774926.html
http://china.makepolo.com/product-detail/101077774927.html
http://china.makepolo.com/product-detail/101077774928.html
http://china.makepolo.com/product-detail/101077774929.html
http://china.makepolo.com/product-detail/101077774930.html
http://china.makepolo.com/product-detail/101077774931.html
http://china.makepolo.com/product-detail/101077774932.html
http://china.makepolo.com/product-detail/101077774933.html
http://china.makepolo.com/product-detail/101077774934.html
http://china.makepolo.com/product-detail/101077774935.html
http://china.makepolo.com/product-detail/101077774936.html
http://china.makepolo.com/product-detail/101077774937.html
http://china.makepolo.com/product-detail/101077774939.html
http://china.makepolo.com/product-detail/101077774940.html
http://china.makepolo.com/product-detail/101077774941.html
http://china.makepolo.com/product-detail/101077774942.html
http://china.makepolo.com/product-detail/101077774943.html
http://china.makepolo.com/product-detail/101077774944.html
http://china.makepolo.com/product-detail/101077774945.html
http://china.makepolo.com/product-detail/101077774946.html
http://china.makepolo.com/product-detail/101077774947.html
http://china.makepolo.com/product-detail/101077774948.html
http://china.makepolo.com/product-detail/101077774949.html
http://china.makepolo.com/product-detail/101077774950.html
http://china.makepolo.com/product-detail/101077774951.html
http://china.makepolo.com/product-detail/101077774952.html
http://china.makepolo.com/product-detail/101077774953.html
http://china.makepolo.com/product-detail/101077774954.html
http://china.makepolo.com/product-detail/101077774955.html
http://china.makepolo.com/product-detail/101077774956.html
http://china.makepolo.com/product-detail/101077774957.html
http://china.makepolo.com/product-detail/101077774958.html
http://china.makepolo.com/product-detail/101077774959.html
http://china.makepolo.com/product-detail/101077774960.html
http://china.makepolo.com/product-detail/101077774961.html
http://china.makepolo.com/product-detail/101077774962.html
http://china.makepolo.com/product-detail/101077774963.html
http://china.makepolo.com/product-detail/101077774964.html
http://china.makepolo.com/product-detail/101077774965.html
http://china.makepolo.com/product-detail/101077774966.html
http://china.makepolo.com/product-detail/101077774967.html
http://china.makepolo.com/product-detail/101077774968.html
http://china.makepolo.com/product-detail/101077774970.html
http://china.makepolo.com/product-detail/101077774971.html
http://china.makepolo.com/product-detail/101077774972.html
http://china.makepolo.com/product-detail/101077774973.html
http://china.makepolo.com/product-detail/101077774974.html
http://china.makepolo.com/product-detail/101077774975.html
http://china.makepolo.com/product-detail/101077774976.html
http://china.makepolo.com/product-detail/101077774977.html
http://china.makepolo.com/product-detail/101077774978.html
http://china.makepolo.com/product-detail/101077774979.html
http://china.makepolo.com/product-detail/101077774980.html
http://china.makepolo.com/product-detail/101077774982.html
http://china.makepolo.com/product-detail/101077774981.html
http://china.makepolo.com/product-detail/101077774983.html
http://china.makepolo.com/product-detail/101077774984.html
http://china.makepolo.com/product-detail/101077774985.html
http://china.makepolo.com/product-detail/101077774986.html
http://china.makepolo.com/product-detail/101077774987.html
http://china.makepolo.com/product-detail/101077774988.html
http://china.makepolo.com/product-detail/101077774989.html
http://china.makepolo.com/product-detail/101077774990.html
http://china.makepolo.com/product-detail/101077774991.html
http://china.makepolo.com/product-detail/101077774992.html
http://china.makepolo.com/product-detail/101077774993.html
http://china.makepolo.com/product-detail/101077774994.html
http://china.makepolo.com/product-detail/101077774995.html
http://china.makepolo.com/product-detail/101077774996.html
http://china.makepolo.com/product-detail/101077774997.html
http://china.makepolo.com/product-detail/101077774998.html
http://china.makepolo.com/product-detail/101077774999.html
http://china.makepolo.com/product-detail/101077775000.html
http://china.makepolo.com/product-detail/101077775001.html
http://china.makepolo.com/product-detail/101077775002.html
http://china.makepolo.com/product-detail/101077775003.html
http://china.makepolo.com/product-detail/101077775004.html
http://china.makepolo.com/product-detail/101077775005.html
http://china.makepolo.com/product-detail/101077775006.html
http://china.makepolo.com/product-detail/101077775007.html
http://china.makepolo.com/product-detail/101077775008.html
http://china.makepolo.com/product-detail/101077775009.html
http://china.makepolo.com/product-detail/101077775011.html
http://china.makepolo.com/product-detail/101077775012.html
http://china.makepolo.com/product-detail/101077775013.html
http://china.makepolo.com/product-detail/101077775015.html
http://china.makepolo.com/product-detail/101077775014.html
http://china.makepolo.com/product-detail/101077775016.html
http://china.makepolo.com/product-detail/101077775017.html
http://china.makepolo.com/product-detail/101077775018.html
http://china.makepolo.com/product-detail/101077775019.html
http://china.makepolo.com/product-detail/101077775020.html
http://china.makepolo.com/product-detail/101077775021.html
http://china.makepolo.com/product-detail/101077775022.html
http://china.makepolo.com/product-detail/101077775023.html
http://china.makepolo.com/product-detail/101077775024.html
http://china.makepolo.com/product-detail/101077775025.html
http://china.makepolo.com/product-detail/101077775026.html
http://china.makepolo.com/product-detail/101077775027.html
http://china.makepolo.com/product-detail/101077775028.html
http://china.makepolo.com/product-detail/101077775029.html
http://china.makepolo.com/product-detail/101077775030.html
http://china.makepolo.com/product-detail/101077775031.html
http://china.makepolo.com/product-detail/101077775033.html
http://china.makepolo.com/product-detail/101077775034.html
http://china.makepolo.com/product-detail/101077775035.html
http://china.makepolo.com/product-detail/101077775036.html
http://china.makepolo.com/product-detail/101077775037.html
http://china.makepolo.com/product-detail/101077775038.html
http://china.makepolo.com/product-detail/101077775039.html
http://china.makepolo.com/product-detail/101077775040.html
http://china.makepolo.com/product-detail/101077775041.html
http://china.makepolo.com/product-detail/101077775042.html
http://china.makepolo.com/product-detail/101077775043.html
http://china.makepolo.com/product-detail/101077775044.html
http://china.makepolo.com/product-detail/101077775045.html
http://china.makepolo.com/product-detail/101077775046.html
http://china.makepolo.com/product-detail/101077775047.html
http://china.makepolo.com/product-detail/101077775048.html
http://china.makepolo.com/product-detail/101077775050.html
http://china.makepolo.com/product-detail/101077775051.html
http://china.makepolo.com/product-detail/101077775052.html
http://china.makepolo.com/product-detail/101077775053.html
http://china.makepolo.com/product-detail/101077775054.html
http://china.makepolo.com/product-detail/101077775055.html
http://china.makepolo.com/product-detail/101077775056.html
http://china.makepolo.com/product-detail/101077775057.html
http://china.makepolo.com/product-detail/101077775059.html
http://china.makepolo.com/product-detail/101077775058.html
http://china.makepolo.com/product-detail/101077775060.html
http://china.makepolo.com/product-detail/101077775061.html
http://china.makepolo.com/product-detail/101077775062.html
http://china.makepolo.com/product-detail/101077775063.html
http://china.makepolo.com/product-detail/101077775064.html
http://china.makepolo.com/product-detail/101077775065.html
http://china.makepolo.com/product-detail/101077775066.html
http://china.makepolo.com/product-detail/101077775067.html
http://china.makepolo.com/product-detail/101077775069.html
http://china.makepolo.com/product-detail/101077775068.html
http://china.makepolo.com/product-detail/101077775070.html
http://china.makepolo.com/product-detail/101077775071.html
http://china.makepolo.com/product-detail/101077775072.html
http://china.makepolo.com/product-detail/101077775073.html
http://china.makepolo.com/product-detail/101077775074.html
http://china.makepolo.com/product-detail/101077775076.html
http://china.makepolo.com/product-detail/101077775077.html
http://china.makepolo.com/product-detail/101077775078.html
http://china.makepolo.com/product-detail/101077775079.html
http://china.makepolo.com/product-detail/101077775080.html
http://china.makepolo.com/product-detail/101077775081.html
http://china.makepolo.com/product-detail/101077775082.html
http://china.makepolo.com/product-detail/101077775083.html
http://china.makepolo.com/product-detail/101077775084.html
http://china.makepolo.com/product-detail/101077775085.html
http://china.makepolo.com/product-detail/101077775086.html
http://china.makepolo.com/product-detail/101077775087.html
http://china.makepolo.com/product-detail/101077775088.html
http://china.makepolo.com/product-detail/101077775089.html
http://china.makepolo.com/product-detail/101077775090.html
http://china.makepolo.com/product-detail/101077775091.html
http://china.makepolo.com/product-detail/101077775092.html
http://china.makepolo.com/product-detail/101077775093.html
http://china.makepolo.com/product-detail/101077775094.html
http://china.makepolo.com/product-detail/101077775095.html
http://china.makepolo.com/product-detail/101077775096.html
http://china.makepolo.com/product-detail/101077775097.html
http://china.makepolo.com/product-detail/101077775099.html
http://china.makepolo.com/product-detail/101077775100.html
http://china.makepolo.com/product-detail/101077775101.html
http://china.makepolo.com/product-detail/101077775102.html
http://china.makepolo.com/product-detail/101077775103.html
http://china.makepolo.com/product-detail/101077775104.html
http://china.makepolo.com/product-detail/101077775105.html
http://china.makepolo.com/product-detail/101077775106.html
http://china.makepolo.com/product-detail/101077775107.html
http://china.makepolo.com/product-detail/101077775108.html
http://china.makepolo.com/product-detail/101077775109.html
http://china.makepolo.com/product-detail/101077775110.html
http://china.makepolo.com/product-detail/101077775111.html
http://china.makepolo.com/product-detail/101077775112.html
http://china.makepolo.com/product-detail/101077775113.html
http://china.makepolo.com/product-detail/101077775114.html
http://china.makepolo.com/product-detail/101077775115.html
http://china.makepolo.com/product-detail/101077775116.html
http://china.makepolo.com/product-detail/101077775117.html
http://china.makepolo.com/product-detail/101077775118.html
http://china.makepolo.com/product-detail/101077775120.html
http://china.makepolo.com/product-detail/101077775121.html
http://china.makepolo.com/product-detail/101077775122.html
http://china.makepolo.com/product-detail/101077775123.html
http://china.makepolo.com/product-detail/101077775125.html
http://china.makepolo.com/product-detail/101077775126.html
http://china.makepolo.com/product-detail/101077775127.html
http://china.makepolo.com/product-detail/101077775128.html
http://china.makepolo.com/product-detail/101077775129.html
http://china.makepolo.com/product-detail/101077775130.html
http://china.makepolo.com/product-detail/101077775131.html
http://china.makepolo.com/product-detail/101077775132.html
http://china.makepolo.com/product-detail/101077775133.html
http://china.makepolo.com/product-detail/101077775134.html
http://china.makepolo.com/product-detail/101077775135.html
http://china.makepolo.com/product-detail/101077775136.html
http://china.makepolo.com/product-detail/101077775138.html
http://china.makepolo.com/product-detail/101077775139.html
http://china.makepolo.com/product-detail/101077775140.html
http://china.makepolo.com/product-detail/101077775141.html
http://china.makepolo.com/product-detail/101077775142.html
http://china.makepolo.com/product-detail/101077775143.html
http://china.makepolo.com/product-detail/101077775144.html
http://china.makepolo.com/product-detail/101077775145.html
http://china.makepolo.com/product-detail/101077775146.html
http://china.makepolo.com/product-detail/101077775147.html
http://china.makepolo.com/product-detail/101077775148.html
http://china.makepolo.com/product-detail/101077775149.html
http://china.makepolo.com/product-detail/101077775150.html
http://china.makepolo.com/product-detail/101077775151.html
http://china.makepolo.com/product-detail/101077775152.html
http://china.makepolo.com/product-detail/101077775153.html
http://china.makepolo.com/product-detail/101077775154.html
http://china.makepolo.com/product-detail/101077775155.html
http://china.makepolo.com/product-detail/101077775156.html
http://china.makepolo.com/product-detail/101077775157.html
http://china.makepolo.com/product-detail/101077775158.html
http://china.makepolo.com/product-detail/101077775159.html
http://china.makepolo.com/product-detail/101077775160.html
http://china.makepolo.com/product-detail/101077775161.html
http://china.makepolo.com/product-detail/101077775162.html
http://china.makepolo.com/product-detail/101077775163.html
http://china.makepolo.com/product-detail/101077775164.html
http://china.makepolo.com/product-detail/101077775165.html
http://china.makepolo.com/product-detail/101077775166.html
http://china.makepolo.com/product-detail/101077775167.html
http://china.makepolo.com/product-detail/101077775168.html
http://china.makepolo.com/product-detail/101077775169.html
http://china.makepolo.com/product-detail/101077775170.html
http://china.makepolo.com/product-detail/101077775172.html
http://china.makepolo.com/product-detail/101077775173.html
http://china.makepolo.com/product-detail/101077775174.html
http://china.makepolo.com/product-detail/101077775175.html
http://china.makepolo.com/product-detail/101077775176.html
http://china.makepolo.com/product-detail/101077775177.html
http://china.makepolo.com/product-detail/101077775178.html
http://china.makepolo.com/product-detail/101077775179.html
http://china.makepolo.com/product-detail/101077775180.html
http://china.makepolo.com/product-detail/101077775181.html
http://china.makepolo.com/product-detail/101077775182.html
http://china.makepolo.com/product-detail/101077775183.html
http://china.makepolo.com/product-detail/101077775184.html
http://china.makepolo.com/product-detail/101077775186.html
http://china.makepolo.com/product-detail/101077775185.html
http://china.makepolo.com/product-detail/101077775188.html
http://china.makepolo.com/product-detail/101077775189.html
http://china.makepolo.com/product-detail/101077775190.html
http://china.makepolo.com/product-detail/101077775191.html
http://china.makepolo.com/product-detail/101077775193.html
http://china.makepolo.com/product-detail/101077775192.html
http://china.makepolo.com/product-detail/101077775194.html
http://china.makepolo.com/product-detail/101077775195.html
http://china.makepolo.com/product-detail/101077775196.html
http://china.makepolo.com/product-detail/101077775197.html
http://china.makepolo.com/product-detail/101077775198.html
http://china.makepolo.com/product-detail/101077775199.html
http://china.makepolo.com/product-detail/101077775200.html
http://china.makepolo.com/product-detail/101077775201.html
http://china.makepolo.com/product-detail/101077775202.html
http://china.makepolo.com/product-detail/101077775203.html
http://china.makepolo.com/product-detail/101077775204.html
http://china.makepolo.com/product-detail/101077775206.html
http://china.makepolo.com/product-detail/101077775207.html
http://china.makepolo.com/product-detail/101077775208.html
http://china.makepolo.com/product-detail/101077775210.html
http://china.makepolo.com/product-detail/101077775215.html
http://china.makepolo.com/product-detail/101077775216.html
http://china.makepolo.com/product-detail/101077775217.html
http://china.makepolo.com/product-detail/101077775218.html
http://china.makepolo.com/product-detail/101077775219.html
http://china.makepolo.com/product-detail/101077775220.html
http://china.makepolo.com/product-detail/101077775222.html