譯 手摸手教你如何輕鬆發布私有 App

2021-09-24 08:29:51 字數 2300 閱讀 8402

譯文出自:掘金翻譯計畫

譯者:qiuk17

校對者:peachchou, xiaxiayang

來自插圖 virginia poltrack 。

使用 fastlane — 非常簡單

> fastlane run get_managed_play_store_publishing_rights

複製**

樣例輸出:

in:[13:20:46]: ([cmd/ctrl] + [left click] lets you open this url in many consoles/terminals/shells)

複製**

把這個鏈結貼上到你的瀏覽器中你就可以向這個 managed google play 的賬戶所有者發起授權請求了。

使用 api — 有點複雜

配置 firebase 的雲功能

這篇 指南 將告訴你怎樣去配置 firebase 的雲功能。下面的**可被用於你的終端。

複製**functions/index.js

使用 fastlane — 非常簡單

env['supply_json_key'] = 'key.json'

env['supply_developer_account_id'] = '111111111111000000000'

gradle(

task: 'assemble',

build_type: 'release'

)# finds latest apk

apk_path = actions.lane_context[sharedvalues::gradle_apk_output_path]

json_key: env['supply_json_key'],

developer_account_id: env['supply_developer_account_id'],

language: "en_us",

apk: apk_path

)end

複製**

樣例 fastfile

複製**

使用 api — 有點複雜

api 樣例

# auth info

keyfile = "keyfile.json"

# path to json keyfile

developer_account = "developer_account_id"

# developer account id

apk_path = "file_name.apk"

# path to signed apk with v1+v2 signatures

language_code = "en_us"

scope = ""

credentials = json.parse(file.open(keyfile, "rb").read)

authorization = signet::oauth2::client.new(

:token_credential_uri => "",

:audience => "",

:scope => scope,

:issuer => credentials["client_id"],

:signing_key => openssl::pkey::rsa.new(credentials["private_key"], nil),

)authorization.fetch_access_token!

developer_account,

upload_source: apk_path,

unless error.nil?

puts "error: #"

else

endend複製**

如果你在使用 fastlane 的時候遇到任何問題或者 bug,請在 github 上給我們提 issue。

如果發現譯文存在錯誤或其他需要改進的地方,歡迎到 掘金翻譯計畫 對譯文進行修改並 pr,也可獲得相應獎勵積分。文章開頭的本文永久鏈結即為本文在 github 上的 markdown 鏈結。

手摸手教你如何使用npm發布vue外掛程式

有兩種方式 build lib vue cli service build target lib name image ipreview dest lib src index.js 下面介紹下命令中的幾個部分。target lib target有好幾個選項。這裡是打包成乙個庫 lib 發布外掛程式的...

手摸手,帶你優雅的使用 icon

這是花褲衩在掘金上發布的關於這個優雅的使用icon的過程 這是關於如何自己封裝乙個元件上傳npm庫 久在vue後台管理系統混跡的童鞋應該知道花褲衩的吧,我用了他的vue admin template模板,順便學習了一下大佬的 裡面有乙個使用svg icon的元件,認真看了下,因為我一般用的都是阿里爸...

手摸手教你擼乙個可拖拽元件(附原始碼)

業務需求 1 實現乙個可以全頁面可以拖拽的元件 2 順帶介紹一下vue draggable外掛程式,可以實現多個元件之間的拖動 展示一下效果圖 這個元件我是借用的vue的directive自定義指令的方式實現的,如果對vue的自定義指令還是不很熟悉的話可以先去官網了解一波,當然熟悉的童鞋也可以不用v...