Code Monkey home page Code Monkey logo

appcelerator-modules.hook-embedded-frameworks's Introduction

Embedded iOS Frameworks in Titanium

Support embedded frameworks in native Titanium modules and Hyperloop.

Usage

  1. Download the ti.dynamiclib.js file and open it
  2. Search for the frameworkPaths and specify your framework path(s). The paths are relative to the build/iphone directory.
  3. Adjust your module project code
    • For classic modules:
      • Add LD_RUNPATH_SEARCH_PATHS=$(inherited) "@executable_path/Frameworks" $(FRAMEWORK_SEARCH_PATHS) to your module.xcconfig
      • Place the ti.dynamiclib.js file in <your-module-ios-root>/hooks
    • For Hyperloop modules (will be automated in future Hyperloop versions - Follow TIMOB-23853):
      • Add the above to the hyperloop.ios.xcodebuild.flags object of your appc.js
      • Place the ti.dynamiclib.js file in <your-project-root>/plugins/ti.dynamiclib/hooks
      • Add the plugin to your tiapp: <plugin>ti.dynamiclib</plugin>
  4. Some frameworks include Simulator architectures ("fat libraries"). Those frameworks usually provide a script to strip the unused architectures for distribution, e.g. strip-framework.sh. If you use such a framework, adjust the path of the variable scriptPath, otherwise null it to skip the build script phase. An example of this file is included in this repo (© Realm).
  5. That's it! You can check an example integration in the Ti.Flic module (https://github.com/hansemannn/ti.flic)

License

Apache 2.0

Legal

This module is Copyright (c) 2016 by Axway. All Rights Reserved. Usage of this module is subject to the Terms of Service agreement with Axway, Inc.

Contributing

Code contributions are greatly appreciated, please submit a new Pull Request!

appcelerator-modules.hook-embedded-frameworks's People

Contributors

hansemannn avatar williamrijksen avatar

Watchers

James Cloos avatar Brenton House avatar

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.