Code Monkey home page Code Monkey logo

Comments (9)

zaxayn avatar zaxayn commented on August 19, 2024 1

用一份代码这样是否合理?因为用户习惯多有不同。例如iOS上习惯左滑删除安卓习惯长按弹出编辑删除

from miot-plugin-sdk.

laohuang88 avatar laohuang88 commented on August 19, 2024

新项目统一包名即可,不需要区分ios或android

from miot-plugin-sdk.

shanchaojie avatar shanchaojie commented on August 19, 2024

那已经上线的版本,做迭代怎么办?

from miot-plugin-sdk.

shanchaojie avatar shanchaojie commented on August 19, 2024

有安卓和ios版本的

from miot-plugin-sdk.

laohuang88 avatar laohuang88 commented on August 19, 2024

ios版本在2018年底前会上线新框架,因此ios版本将强制升级到新版,安卓原生的插件在不发布RN版本的情况下还可以继续使用,如有RN版本将运行与ios同样的代码。

from miot-plugin-sdk.

jerryxu2018 avatar jerryxu2018 commented on August 19, 2024

ios版本在2018年底前会上线新框架,因此ios版本将强制升级到新版,安卓原生的插件在不发布RN版本的情况下还可以继续使用,如有RN版本将运行与ios同样的代码。

您的意思是可以不用管旧插件的包名,只需要在新插件系统中统一包名,后期升级会自动适配对吗?

from miot-plugin-sdk.

jerryxu2018 avatar jerryxu2018 commented on August 19, 2024

ios版本在2018年底前会上线新框架,因此ios版本将强制升级到新版,安卓原生的插件在不发布RN版本的情况下还可以继续使用,如有RN版本将运行与ios同样的代码。

因为就插件已经对应两个不同的包名,如果要适配新系统,创建插件时需要填包名,应该用之前IOS包名还是Android的?

from miot-plugin-sdk.

dingshaoran avatar dingshaoran commented on August 19, 2024

以前的 android 包名是 java 的,如果继续使用 java 开发不用考虑统一问题。 如果android ios要使用一份 rn 代码要使用 ios 的包名

from miot-plugin-sdk.

LiuMengzhou avatar LiuMengzhou commented on August 19, 2024

@handby 你提出的这点很好,我们在新框架中也考虑到了这点,对于平台差异性很大的地方(比如你说的手势交互),可以在代码里面通过判断平台进行区分,至于其他地方可以使用统一的UI和代码逻辑。

from miot-plugin-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.