是否有可能创建一个跨平台的共享库与MonoDroid和MonoTouch的,可用于非Mono开发? [英] Is it possible to create a cross-platform shared library with MonoDroid and MonoTouch that can be used by non-Mono developers?

查看:226
本文介绍了是否有可能创建一个跨平台的共享库与MonoDroid和MonoTouch的,可用于非Mono开发?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个专有的硬件,我们正在寻找发行作为手机周边。

We have a proprietary piece of hardware which we are looking to release as a phone peripheral.

我们已经开始编写跨平台的移动应用程序,使用的MonoCross框架(即MonoTouch的抽象层,iOS和MonoDroid抽象为Android)的硬件接口。

We have started writing a cross-platform mobile app that interfaces with the hardware using the MonoCross framework (i.e. MonoTouch abstraction layer for iOS and MonoDroid abstraction for Android).

我们想提供批量该应用程序为code库,可以通过其他的应用程序开发谁希望编写应用程序,界面,我们的硬件可以重复使用的。

We would like to offer the bulk of this application as a code library that can be reused by other app developers who wish to write apps that interface to our hardware.

我个人而言,通过使用单声道,我们正在迫使这些开发商这样做。是这样吗?

I am concerned that by using Mono we are forcing these developers to do the same. Is that the case?

的Andr​​oid库

我们能生产出一个Android库(不是一个图书馆项目,我理解为是指提供完整的源)从MonoDroid作为输出,其他开发人员,开发与ADT和Java(即它们不使用单声道的Droid )都能够在他们的应用程序使用?

Can we produce an Android Library (not a Library Project which I understand to mean delivering the full-source) as output from MonoDroid that other developers, developing with the ADT and Java (i.e. they are not using Mono Droid) are able to use in their apps?

的iOS库

我们能生产从MonoTouch的一个库,目标C开发者(即它们不使用单触)都能够在他们的应用程序使用?

Can we produce a library from MonoTouch that Objective C developers (i.e. they are not using Mono Touch) are able to use in their apps?

推荐答案

我有相同的问题,你居然......在iOS上,从我能够从Xamarin聚集,这是可能的,但不是supported.Though,我仍然在等待一个例子:/

I have the exact same question as you actually ... On iOS, from what I was able to gather from Xamarin, it's possible but not supported.Though, I am still waiting for an example :/

这是我的理解,MonoDevelop的是能够编译,可用于由objectiveC源做这样的事情本机ARM库:

From what I understood, monodevelop is able to compile a native ARM library that can be used by an objectiveC source by doing something like that :

/开发/ MonoTouch中的/ usr / bin中/ mTouch触摸--linksdkonly --x code = OUTPUT_DIR MyAssembly.exe

/Developer/MonoTouch/usr/bin/mtouch --linksdkonly --xcode=output_dir MyAssembly.exe

在你的X code项目,似乎你需要使用单声道嵌入-API。

In your XCode project,it seems that you need to use the Mono-Embedding-API.

http://docs.go-mono.com/?link=root :/嵌入

这将是很好,如果xamarin可以提供源的例子,因为它是对这样一个工具包一个非常需要的功能!

这篇关于是否有可能创建一个跨平台的共享库与MonoDroid和MonoTouch的,可用于非Mono开发?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆