在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:tidev/titanium_mobile开源软件地址:https://github.com/tidev/titanium_mobile开源编程语言:Objective-C 35.1%开源软件介绍:TitaniumWelcome to the Titanium open source project. Titanium provides a mature platform for developers to build completely native cross-platform mobile applications using JavaScript. Currently supported native platforms are iOS and Android. Titanium is licensed under the OSI approved Apache Public License (version 2). Please see the LICENSE file for specific details. Table of ContentsFeaturesWith Titanium, you use JavaScript to code your application. Titanium's compiler will compile your application code into an efficient native executable for each target mobile platform.
And much, much more (see our Documentation for more infos). HyperloopUse Hyperloop, our latest addition to the Appcelerator Platform, to extend your Titanium apps by native API's using JavaScript. Prior to Hyperloop, you would use native modules to extend the Titanium API. With Hyperloop, you are now able to implement native classes, 3rd-Party libraries (Cocoapods, local frameworks, .aar files) and more directly into your apps. Hyperloop is available for iOS, Android and Windows Phone (Tech Preview). FeaturesCross-Platform ReuseBuild and maintain apps in a fraction of the time with up to 95% code reuse. Direct API AccessAccess 100% of platform APIs directly, with instant support for each new OS release. JavaScript EverywhereCreate mobile apps using the world’s most popular programming language. 3rd-Party LibrariesIncorporate 3rd-party native libraries using JavaScript, with no changes required. Custom AnimationsEasily create complex custom effects like dynamic animations using JavaScript. Run NativeMobile app development for every major mobile OS – with no hybrid compromises. ExampleCreate a native view in iOS and Android: // iOS
var view = new UIView();
// Android
var view = new View(activity); Getting StartedCheck out our Hyperloop Sample App and Hyperloop Programming Guide to get started with Hyperloop today! AlloyAlloy is the MVC application framework built on top of Titanium. It is optional. It rocks. Check it out if you're considering using Titanium. It is also a separate open source project available under Apache Public License. ExampleManage your application scope by separating your code into different models, views, controllers and more: index.xml (View) <Alloy>
<Window title="Titanium and Alloy">
<Button onClick="handleClick" id="myButton">Click me!</Button>
</Window>
</Alloy> index.js (Controller) function handleClick() {
alert('Hello from the Controller!');
} index.tss (Style) Window: {
backgroundColor: 'white'
}
"#myButton": {
width: 200,
height: 30,
backgroundColor: 'green'
} Getting HelpThere are a number of ways to get help with Titanium. Official Documentation, Tutorials and VideosPlease visit the official documentation site at https://titaniumsdk.com/ for the latest and historical documentation on Titanium, Alloy and the various products built by Appcelerator. Slack / Developer CommunityCommunity support and discussion about Titanium is available on Slack at TiSlack. Please consider following @Titanium SDK and @TiDev on Twitter for updates. Commercial Support, LicensingWe give our software away for FREE! In order to do that, we have programs for companies that require additional level of assistance through training or commercial support, need special licensing or want additional levels of capabilities. Please visit the TiDev Website for more information about TiDev or email [email protected]. ContributingTitanium is an open source project. Titanium wouldn't be where it is now without contributions by the community. Please consider forking Titanium to improve, enhance or fix issues. If you feel like the community will benefit from your fork, please open a pull request. To protect the interests of the Titanium contributors, Appcelerator, customers and end users we require contributors to sign a Contributors License Agreement (CLA) before we pull the changes into the main repository. Our CLA is simple and straightforward - it requires that the contributions you make to any Appcelerator open source project are properly licensed and that you have the legal authority to make those changes. This helps us significantly reduce future legal risk for everyone involved. It is easy, helps everyone, takes only a few minutes, and only needs to be completed once. You can digitally sign the CLA online. Please indicate your email address in your first pull request so that we can make sure that will locate your CLA. Once you've submitted it, you no longer need to send one for subsequent submissions. Building LocallyPreviously Titanium used scons and python scripts to build the SDK. If you'd like to build the SDK locally, we've replaced scons with some Node.JS scripts. Typical usage would be: npm ci
npm run cleanbuild The build and package commands will default to all target platforms on your host OS unless explicitly specified. (i.e. Android, iOS on macOS; Windows and Android on Windows). It will compile, package and install the locally-built SDK for you as well, so you can test it in your own applications without any further procedures. The build command will look for the Android SDK directory path via the $ANDROID_SDK env variables if not explicitly passed using command line arguments. You can use the npm ci
npm run cleanbuild -- [platform1] [platform2] --android-sdk /opt/android-sdk /Users/build/android-sdk-macosx Unit testsWe have a unit test suite intended to run across all supported platforms. We have npm scripts set up to run a full clean, build, package, symlinked install, npm run test:android
npm run test:iphone
npm run test:ipad How it worksThe test suite generates a single Titanium project targeting the specified platform(s), builds the project for emulator, launches the app on the emulator and then runs a series of tests defined via ti-mocha and should.js. The tests spit out their results to the console log, and the test scripts listen to the logs to gather the results. We then generate an overview on the console as well as a junit report xml file (to be consume by CI build systems like Jenkins). How to modify the tests locally and in your PRsThe Upgrade gradle and gradle pluginThe gradle (tool, build system) and gradle plugin (plugin that adds several features that are specific to building Android apps) version numbers are located in:
You can run After you've made the changes and compiled the SDK make sure to run the test suite, build the kitchensink and hyperloop example app. Create a and build a module (java and kotlin) and run those in a test app too. Update packaged modulesSome modules like ti.map or ti.facebook are included with the SDK. To update to the latest versions you have to edit the links in ContributingInterested in contributing? There are several ways you can help contribute to this project. New Features, Improvements, Bug Fixes, & DocumentationSource code contributions are always welcome! Before we can accept your pull request, you must sign a Contributor License Agreement (CLA). Please visit https://tidev.io/contribute for more information. DonationsPlease consider supporting this project by making a charitable donation. The money you donate goes to compensate the skilled engineeers and maintainers that keep this project going. Code of ConductTiDev wants to provide a safe and welcoming community for everyone to participate. Please see our Code of Conduct that applies to all contributors. SecurityIf you find a security related issue, please send an email to [email protected] instead of publicly creating a ticket. Stay ConnectedFor the latest information, please find us on Twitter: Titanium SDK and TiDev. Join our growing Slack community by visiting https://slack.tidev.io LegalTitanium is a registered trademark of TiDev Inc. All Titanium trademark and patent rights were transferred and assigned to TiDev Inc. on 4/7/2022. Please see the LEGAL information about using our trademarks, privacy policy, terms of usage and other legal information at https://tidev.io/legal. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论