本地使用 SDKBox 的方法

简介

有一些工程可能因为各种原因, 需要继续使用 SDKBox. 下面介绍一下, 如何本地使用 SDKBox 安装插件.

步骤

下载插件

安装插件

本地安装的例子:

sdkbox import ~/.sdkbox/plugins/sdkbox-iap_v2.7.7.0 -p ./build/jsb-link

hugo@hugodeMacBook-Pro creatorTest % sdkbox import ~/.sdkbox/plugins/sdkbox-iap_v2.7.7.0 -p ./build/jsb-link
  _______ ______  _     _ ______   _____  _     _
  |______ |     \ |____/  |_____] |     |  \___/
  ______| |_____/ |    \_ |_____] |_____| _/   \_
 Copyright (c) 2016-2020 SDKBOX Inc. v1.4.6.1
 Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/iap/v3-js/
 Installation Successful :)
 > Log file = /Users/hugo/.sdkbox/log/sdkbox-log-2021-12-06.sdkbox.temp

sdkbox import /Users/hugo/Downloads/sdkbox-iap_v2.7.7.0.tar.gz -p /Users/hugo/Documents/work/t/creator3Test --nohelp

hugo@hugodeMacBook-Pro cocos2dxTest % sdkbox import /Users/hugo/Downloads/sdkbox-iap_v2.7.7.0.tar.gz -p /Users/hugo/Documents/work/t/creator3Test --nohelp
  _______ ______  _     _ ______   _____  _     _
  |______ |     \ |____/  |_____] |     |  \___/
  ______| |_____/ |    \_ |_____] |_____| _/   \_
 Copyright (c) 2016-2020 SDKBOX Inc. v1.4.6.1
 > Log file = /Users/hugo/.sdkbox/log/sdkbox-log-2021-12-06-4.sdkbox.temp

sdkbox import ~/.sdkbox/plugins/sdkbox-admob_v2.7.6.1 -p .

hugo@hugodeMacBook-Pro cocos2dxTest % sdkbox import ~/.sdkbox/plugins/sdkbox-admob_v2.7.6.1 -p .
  _______ ______  _     _ ______   _____  _     _
  |______ |     \ |____/  |_____] |     |  \___/
  ______| |_____/ |    \_ |_____] |_____| _/   \_
 Copyright (c) 2016-2020 SDKBOX Inc. v1.4.6.1
 Please reference the online documentation to finish the integration:
http://sdkbox-doc.github.io/en/plugins/admob/v3-cpp/

  1. iOS:
  > Replace `ca-app-pub-3940256099942544~1458002511` with `proj.ios_mac/ios/Info.plist` file;
  > Replace `ca-app-pub-3940256099942544~1458002511` with your publish id with `sdkbox_config.json` file;

  2. Android:
  > Replace `ca-app-pub-3940256099942544~3347511713` with your publish id with `AndroidManifest.xml` file;
  > Replace `ca-app-pub-3940256099942544~3347511713` with your publish id with `sdkbox_config.json` file;

 Installation Successful :)
 > Log file = /Users/hugo/.sdkbox/log/sdkbox-log-2021-12-06-3.sdkbox.temp