├── LICENSE ├── LICENSE.txt ├── CHANGELOG.txt ├── iphone ├── ComKossoTigram_Prefix.pch ├── build │ ├── libcom.kosso.tigram.a │ ├── Release-iphoneos │ │ └── libComKossoTigram.a │ ├── Release-iphonesimulator │ │ └── libComKossoTigram.a │ └── TiGram.build │ │ ├── Release-iphoneos │ │ └── TiGram.build │ │ │ ├── dgph │ │ │ ├── ComKossoTigram.hmap │ │ │ ├── ComKossoTigram-generated-files.hmap │ │ │ ├── ComKossoTigram-project-headers.hmap │ │ │ ├── ComKossoTigram-all-target-headers.hmap │ │ │ ├── ComKossoTigram-own-target-headers.hmap │ │ │ ├── Objects-normal │ │ │ ├── arm64 │ │ │ │ ├── libComKossoTigram.a │ │ │ │ ├── ComKossoTigramModule.o │ │ │ │ ├── ComKossoTigramModule.dia │ │ │ │ ├── ComKossoTigramModuleAssets.o │ │ │ │ ├── ComKossoTigramModuleAssets.dia │ │ │ │ ├── ComKossoTigramModuleAssets.d │ │ │ │ ├── ComKossoTigram.LinkFileList │ │ │ │ └── ComKossoTigramModule.d │ │ │ └── armv7 │ │ │ │ ├── libComKossoTigram.a │ │ │ │ ├── ComKossoTigramModule.o │ │ │ │ ├── ComKossoTigramModule.dia │ │ │ │ ├── ComKossoTigramModuleAssets.o │ │ │ │ ├── ComKossoTigramModuleAssets.dia │ │ │ │ ├── ComKossoTigramModuleAssets.d │ │ │ │ ├── ComKossoTigram.LinkFileList │ │ │ │ └── ComKossoTigramModule.d │ │ │ └── ComKossoTigram-all-non-framework-target-headers.hmap │ │ └── Release-iphonesimulator │ │ └── TiGram.build │ │ ├── dgph │ │ ├── ComKossoTigram.hmap │ │ ├── ComKossoTigram-generated-files.hmap │ │ ├── ComKossoTigram-project-headers.hmap │ │ ├── ComKossoTigram-all-target-headers.hmap │ │ ├── ComKossoTigram-own-target-headers.hmap │ │ ├── Objects-normal │ │ ├── i386 │ │ │ ├── libComKossoTigram.a │ │ │ ├── ComKossoTigramModule.o │ │ │ ├── ComKossoTigramModule.dia │ │ │ ├── ComKossoTigramModuleAssets.o │ │ │ ├── ComKossoTigramModuleAssets.dia │ │ │ ├── ComKossoTigramModuleAssets.d │ │ │ ├── ComKossoTigram.LinkFileList │ │ │ └── ComKossoTigramModule.d │ │ └── x86_64 │ │ │ ├── libComKossoTigram.a │ │ │ ├── ComKossoTigramModule.o │ │ │ ├── ComKossoTigramModule.dia │ │ │ ├── ComKossoTigramModuleAssets.dia │ │ │ ├── ComKossoTigramModuleAssets.o │ │ │ ├── ComKossoTigramModuleAssets.d │ │ │ ├── ComKossoTigram.LinkFileList │ │ │ └── ComKossoTigramModule.d │ │ └── ComKossoTigram-all-non-framework-target-headers.hmap ├── com.kosso.tigram-iphone-1.0.0.zip ├── com.kosso.tigram-iphone-1.0.1.zip ├── Classes │ ├── ComKossoTigramModuleAssets.h │ ├── ComKossoTigramModule.h │ ├── ComKossoTigramModuleAssets.m │ └── ComKossoTigramModule.m ├── platform │ └── README ├── timodule.xml ├── manifest ├── titanium.xcconfig ├── module.xcconfig ├── LICENSE ├── README ├── build.py └── TiGram.xcodeproj │ └── project.pbxproj ├── manifest ├── README.md ├── assets └── README ├── example └── app.js └── documentation └── index.md /LICENSE: -------------------------------------------------------------------------------- 1 | TODO: place your license here and we'll include it in the module distribution 2 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | Place your license text here. This file will be incorporated with your app at package time. -------------------------------------------------------------------------------- /CHANGELOG.txt: -------------------------------------------------------------------------------- 1 | Place your change log text here. This file will be incorporated with your app at package time. -------------------------------------------------------------------------------- /iphone/ComKossoTigram_Prefix.pch: -------------------------------------------------------------------------------- 1 | 2 | #ifdef __OBJC__ 3 | #import 4 | #endif 5 | -------------------------------------------------------------------------------- /iphone/build/libcom.kosso.tigram.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/libcom.kosso.tigram.a -------------------------------------------------------------------------------- /iphone/com.kosso.tigram-iphone-1.0.0.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/com.kosso.tigram-iphone-1.0.0.zip -------------------------------------------------------------------------------- /iphone/com.kosso.tigram-iphone-1.0.1.zip: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/com.kosso.tigram-iphone-1.0.1.zip -------------------------------------------------------------------------------- /iphone/build/Release-iphoneos/libComKossoTigram.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/Release-iphoneos/libComKossoTigram.a -------------------------------------------------------------------------------- /iphone/build/Release-iphonesimulator/libComKossoTigram.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/Release-iphonesimulator/libComKossoTigram.a -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/dgph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/dgph -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/dgph: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/dgph -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/ComKossoTigram.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/ComKossoTigram.hmap -------------------------------------------------------------------------------- /manifest: -------------------------------------------------------------------------------- 1 | #appname: TiGram 2 | #publisher: kosso 3 | #url: 4 | #image: appicon.png 5 | #appid: com.kosso.tigram 6 | #desc: undefined 7 | #type: module 8 | #guid: 87e031b9-c139-48b4-8fa0-5ab9f1ef1207 9 | -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/ComKossoTigram-generated-files.hmap: -------------------------------------------------------------------------------- 1 | pamhx -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/ComKossoTigram.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/ComKossoTigram.hmap -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/ComKossoTigram-generated-files.hmap: -------------------------------------------------------------------------------- 1 | pamhx -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/ComKossoTigram-project-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/ComKossoTigram-project-headers.hmap -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/ComKossoTigram-all-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/ComKossoTigram-all-target-headers.hmap -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/ComKossoTigram-own-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/ComKossoTigram-own-target-headers.hmap -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/libComKossoTigram.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/libComKossoTigram.a -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/libComKossoTigram.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/libComKossoTigram.a -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/ComKossoTigramModule.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/ComKossoTigramModule.o -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/ComKossoTigramModule.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/ComKossoTigramModule.o -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/ComKossoTigram-project-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/ComKossoTigram-project-headers.hmap -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/ComKossoTigramModule.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/ComKossoTigramModule.dia -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/ComKossoTigramModule.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/ComKossoTigramModule.dia -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/ComKossoTigram-all-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/ComKossoTigram-all-target-headers.hmap -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/ComKossoTigram-own-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/ComKossoTigram-own-target-headers.hmap -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/libComKossoTigram.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/libComKossoTigram.a -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/ComKossoTigramModuleAssets.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/ComKossoTigramModuleAssets.o -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/ComKossoTigramModuleAssets.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/ComKossoTigramModuleAssets.o -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/ComKossoTigramModule.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/ComKossoTigramModule.o -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/libComKossoTigram.a: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/libComKossoTigram.a -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/ComKossoTigramModuleAssets.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/ComKossoTigramModuleAssets.dia -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/ComKossoTigramModuleAssets.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/ComKossoTigramModuleAssets.dia -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/ComKossoTigramModule.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/ComKossoTigramModule.dia -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/ComKossoTigramModule.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/ComKossoTigramModule.o -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/ComKossoTigram-all-non-framework-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/ComKossoTigram-all-non-framework-target-headers.hmap -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/ComKossoTigramModule.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/ComKossoTigramModule.dia -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # TiGram 2 | Module for sharing a photo with caption from Titanium to the Instagram app, if installed. 3 | 4 | - Rebult and updated to 64-bit. 5 | 6 | ----- 7 | 8 | Credit : Based on [TiInstagramUtil](https://github.com/atsusy/TiInstagramUtil) by Atsusy. 9 | -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/ComKossoTigramModuleAssets.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/ComKossoTigramModuleAssets.o -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/ComKossoTigram-all-non-framework-target-headers.hmap: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/ComKossoTigram-all-non-framework-target-headers.hmap -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/ComKossoTigramModuleAssets.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/ComKossoTigramModuleAssets.dia -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/ComKossoTigramModuleAssets.dia: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/ComKossoTigramModuleAssets.dia -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/ComKossoTigramModuleAssets.o: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/kosso/TiGram/HEAD/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/ComKossoTigramModuleAssets.o -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/ComKossoTigramModuleAssets.d: -------------------------------------------------------------------------------- 1 | dependencies: \ 2 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModuleAssets.m \ 3 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModuleAssets.h 4 | -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/ComKossoTigramModuleAssets.d: -------------------------------------------------------------------------------- 1 | dependencies: \ 2 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModuleAssets.m \ 3 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModuleAssets.h 4 | -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/ComKossoTigramModuleAssets.d: -------------------------------------------------------------------------------- 1 | dependencies: \ 2 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModuleAssets.m \ 3 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModuleAssets.h 4 | -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/ComKossoTigramModuleAssets.d: -------------------------------------------------------------------------------- 1 | dependencies: \ 2 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModuleAssets.m \ 3 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModuleAssets.h 4 | -------------------------------------------------------------------------------- /iphone/Classes/ComKossoTigramModuleAssets.h: -------------------------------------------------------------------------------- 1 | /** 2 | * This is a generated file. Do not edit or your changes will be lost 3 | */ 4 | 5 | @interface ComKossoTigramModuleAssets : NSObject 6 | { 7 | } 8 | - (NSData*) moduleAsset; 9 | - (NSData*) resolveModuleAsset:(NSString*)path; 10 | 11 | @end 12 | -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/ComKossoTigram.LinkFileList: -------------------------------------------------------------------------------- 1 | /Users/kosso/ti_modules/TiGram/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/ComKossoTigramModule.o 2 | /Users/kosso/ti_modules/TiGram/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/ComKossoTigramModuleAssets.o 3 | -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/ComKossoTigram.LinkFileList: -------------------------------------------------------------------------------- 1 | /Users/kosso/ti_modules/TiGram/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/ComKossoTigramModule.o 2 | /Users/kosso/ti_modules/TiGram/iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/ComKossoTigramModuleAssets.o 3 | -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/ComKossoTigram.LinkFileList: -------------------------------------------------------------------------------- 1 | /Users/kosso/ti_modules/TiGram/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/ComKossoTigramModule.o 2 | /Users/kosso/ti_modules/TiGram/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/ComKossoTigramModuleAssets.o 3 | -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/ComKossoTigram.LinkFileList: -------------------------------------------------------------------------------- 1 | /Users/kosso/ti_modules/TiGram/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/ComKossoTigramModule.o 2 | /Users/kosso/ti_modules/TiGram/iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/ComKossoTigramModuleAssets.o 3 | -------------------------------------------------------------------------------- /iphone/Classes/ComKossoTigramModule.h: -------------------------------------------------------------------------------- 1 | /** 2 | * TiGram 3 | * 4 | * Created by Kosso 5 | * Copyright (c) 2015 . MIT Licensed. 6 | */ 7 | 8 | #import "TiModule.h" 9 | 10 | @interface ComKossoTigramModule : TiModule 11 | { 12 | UIDocumentInteractionController *interactionController; 13 | } 14 | @property (nonatomic, readonly) id isInstalled; 15 | 16 | @end 17 | -------------------------------------------------------------------------------- /assets/README: -------------------------------------------------------------------------------- 1 | Place your assets like PNG files in this directory and they will be packaged 2 | with your module. 3 | 4 | All JavaScript files in the assets directory are IGNORED except if you create a 5 | file named "com.kosso.tigram.js" in this directory in which case it will be 6 | wrapped by native code, compiled, and used as your module. This allows you to 7 | run pure JavaScript modules that are pre-compiled. 8 | 9 | Note: Mobile Web does not support this assets directory. 10 | -------------------------------------------------------------------------------- /iphone/platform/README: -------------------------------------------------------------------------------- 1 | You can place platform-specific files here in sub-folders named "android" and/or "iphone", just as you can with normal Titanium Mobile SDK projects. Any folders and files you place here will be merged with the platform-specific files in a Titanium Mobile project that uses this module. 2 | 3 | When a Titanium Mobile project that uses this module is built, the files from this platform/ folder will be treated the same as files (if any) from the Titanium Mobile project's platform/ folder. 4 | -------------------------------------------------------------------------------- /iphone/timodule.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | -------------------------------------------------------------------------------- /iphone/manifest: -------------------------------------------------------------------------------- 1 | # 2 | # this is your module manifest and used by Titanium 3 | # during compilation, packaging, distribution, etc. 4 | # 5 | version: 1.0.1 6 | apiversion: 2 7 | architectures: armv7 arm64 i386 x86_64 8 | description: TiGram 9 | author: Kosso 10 | license: Specify your license 11 | copyright: Copyright (c) 2015 by 12 | 13 | # these should not be edited 14 | name: TiGram 15 | moduleid: com.kosso.tigram 16 | guid: bc70cbb5-fd41-4e6d-9790-35bf177a969f 17 | platform: iphone 18 | minsdk: 3.5.0.GA 19 | -------------------------------------------------------------------------------- /iphone/titanium.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // 3 | // CHANGE THESE VALUES TO REFLECT THE VERSION (AND LOCATION IF DIFFERENT) 4 | // OF YOUR TITANIUM SDK YOU'RE BUILDING FOR 5 | // 6 | // 7 | TITANIUM_SDK_VERSION = 3.5.0.GA 8 | 9 | 10 | // 11 | // THESE SHOULD BE OK GENERALLY AS-IS 12 | // 13 | TITANIUM_SDK = /Library/Application Support/Titanium/mobilesdk/osx/3.5.0.GA 14 | TITANIUM_BASE_SDK = "$(TITANIUM_SDK)/iphone/include" 15 | TITANIUM_BASE_SDK2 = "$(TITANIUM_SDK)/iphone/include/TiCore" 16 | TITANIUM_BASE_SDK3 = "$(TITANIUM_SDK)/iphone/include/JavaScriptCore" 17 | HEADER_SEARCH_PATHS= $(TITANIUM_BASE_SDK) $(TITANIUM_BASE_SDK2) $(TITANIUM_BASE_SDK3) 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /example/app.js: -------------------------------------------------------------------------------- 1 | var win = Ti.UI.createWindow({ 2 | backgroundColor:'white' 3 | }); 4 | win.open(); 5 | 6 | var tigram = require('com.kosso.tigram'); 7 | Ti.API.info("module is => " + tigram); 8 | 9 | /* 10 | 11 | ... 12 | 13 | Some code to get/take a photo... 14 | 15 | (sorry.. lazy! :) 16 | 17 | ... 18 | 19 | 20 | */ 21 | 22 | var the_photo = *[a TiBlob from the camera or album]* 23 | 24 | 25 | var the_caption = "Sent via Titanium!"; 26 | 27 | // when some button is clicked to share on Instagram... 28 | 29 | if(tigram.isInstalled){ 30 | tigram.openPhoto({ 31 | mediathe_photo, 32 | caption:the_caption 33 | }); 34 | } else { 35 | alert("Instagram is not installed!"); 36 | } 37 | 38 | 39 | 40 | 41 | -------------------------------------------------------------------------------- /iphone/Classes/ComKossoTigramModuleAssets.m: -------------------------------------------------------------------------------- 1 | /** 2 | * This is a generated file. Do not edit or your changes will be lost 3 | */ 4 | #import "ComKossoTigramModuleAssets.h" 5 | 6 | extern NSData* filterDataInRange(NSData* thedata, NSRange range); 7 | 8 | @implementation ComKossoTigramModuleAssets 9 | 10 | - (NSData*) moduleAsset 11 | { 12 | //##TI_AUTOGEN_BEGIN asset 13 | //Compiler generates code for asset here 14 | return nil; // DEFAULT BEHAVIOR 15 | //##TI_AUTOGEN_END asset 16 | } 17 | 18 | - (NSData*) resolveModuleAsset:(NSString*)path 19 | { 20 | //##TI_AUTOGEN_BEGIN resolve_asset 21 | //Compiler generates code for asset resolution here 22 | return nil; // DEFAULT BEHAVIOR 23 | //##TI_AUTOGEN_END resolve_asset 24 | } 25 | 26 | @end 27 | -------------------------------------------------------------------------------- /documentation/index.md: -------------------------------------------------------------------------------- 1 | # TiGram Module 2 | 3 | ## Description 4 | 5 | TODO: Enter your module description here 6 | 7 | ## Accessing the TiGram Module 8 | 9 | To access this module from JavaScript, you would do the following: 10 | 11 | var tigram = require("com.kosso.tigram"); 12 | 13 | The tigram variable is a reference to the Module object. 14 | 15 | ## Reference 16 | 17 | TODO: If your module has an API, you should document 18 | the reference here. 19 | 20 | ### tigram.function 21 | 22 | TODO: This is an example of a module function. 23 | 24 | ### tigram.property 25 | 26 | TODO: This is an example of a module property. 27 | 28 | ## Usage 29 | 30 | TODO: Enter your usage example here 31 | 32 | ## Author 33 | 34 | TODO: Enter your author name, email and other contact 35 | details you want to share here. 36 | 37 | ## License 38 | 39 | TODO: Enter your license/legal information here. 40 | -------------------------------------------------------------------------------- /iphone/module.xcconfig: -------------------------------------------------------------------------------- 1 | // 2 | // PLACE ANY BUILD DEFINITIONS IN THIS FILE AND THEY WILL BE 3 | // PICKED UP DURING THE APP BUILD FOR YOUR MODULE 4 | // 5 | // see the following webpage for instructions on the settings 6 | // for this file: 7 | // http://developer.apple.com/mac/library/documentation/DeveloperTools/Conceptual/XcodeBuildSystem/400-Build_Configurations/build_configs.html 8 | // 9 | 10 | // 11 | // How to add a Framework (example) 12 | // 13 | // OTHER_LDFLAGS=$(inherited) -framework Foo 14 | // 15 | // Adding a framework for a specific version(s) of iPhone: 16 | // 17 | // OTHER_LDFLAGS[sdk=iphoneos4*]=$(inherited) -framework Foo 18 | // OTHER_LDFLAGS[sdk=iphonesimulator4*]=$(inherited) -framework Foo 19 | // 20 | // 21 | // How to add a compiler define: 22 | // 23 | // OTHER_CFLAGS=$(inherited) -DFOO=1 24 | // 25 | // 26 | // IMPORTANT NOTE: always use $(inherited) in your overrides 27 | // 28 | -------------------------------------------------------------------------------- /iphone/LICENSE: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in 13 | all copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 21 | THE SOFTWARE. -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/arm64/ComKossoTigramModule.d: -------------------------------------------------------------------------------- 1 | dependencies: \ 2 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModule.m \ 3 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModule.h \ 4 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiModule.h \ 5 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiProxy.h \ 6 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBase.h \ 7 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/defines.h \ 8 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiThreading.h \ 9 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiPublicAPI.h \ 10 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiEvaluator.h \ 11 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollContext.h \ 12 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiCore.h \ 13 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/Ti.h \ 14 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiBase.h \ 15 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiContextRef.h \ 16 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiObjectRef.h \ 17 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiValueRef.h \ 18 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/WebKitAvailability.h \ 19 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiStringRef.h \ 20 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiStringRefCF.h \ 21 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollCallback.h \ 22 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollObject.h \ 23 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBindingRunLoop.h \ 24 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiUtils.h \ 25 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiDimension.h \ 26 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiColor.h \ 27 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/WebFont.h \ 28 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiFile.h \ 29 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBuffer.h \ 30 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBlob.h \ 31 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiHost.h \ 32 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/Bridge.h \ 33 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiStylesheet.h \ 34 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiApp.h \ 35 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollBridge.h \ 36 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/XHRBridge.h \ 37 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiRootViewController.h \ 38 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiControllerProtocols.h \ 39 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiViewProxy.h \ 40 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiUIView.h \ 41 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiAnimation.h \ 42 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiPoint.h \ 43 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/ListenerEntry.h \ 44 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/LayoutConstraint.h \ 45 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiGradient.h \ 46 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiRect.h \ 47 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiViewTemplate.h \ 48 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/FilesystemModule.h 49 | -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphoneos/TiGram.build/Objects-normal/armv7/ComKossoTigramModule.d: -------------------------------------------------------------------------------- 1 | dependencies: \ 2 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModule.m \ 3 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModule.h \ 4 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiModule.h \ 5 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiProxy.h \ 6 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBase.h \ 7 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/defines.h \ 8 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiThreading.h \ 9 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiPublicAPI.h \ 10 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiEvaluator.h \ 11 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollContext.h \ 12 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiCore.h \ 13 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/Ti.h \ 14 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiBase.h \ 15 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiContextRef.h \ 16 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiObjectRef.h \ 17 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiValueRef.h \ 18 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/WebKitAvailability.h \ 19 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiStringRef.h \ 20 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiStringRefCF.h \ 21 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollCallback.h \ 22 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollObject.h \ 23 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBindingRunLoop.h \ 24 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiUtils.h \ 25 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiDimension.h \ 26 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiColor.h \ 27 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/WebFont.h \ 28 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiFile.h \ 29 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBuffer.h \ 30 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBlob.h \ 31 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiHost.h \ 32 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/Bridge.h \ 33 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiStylesheet.h \ 34 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiApp.h \ 35 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollBridge.h \ 36 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/XHRBridge.h \ 37 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiRootViewController.h \ 38 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiControllerProtocols.h \ 39 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiViewProxy.h \ 40 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiUIView.h \ 41 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiAnimation.h \ 42 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiPoint.h \ 43 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/ListenerEntry.h \ 44 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/LayoutConstraint.h \ 45 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiGradient.h \ 46 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiRect.h \ 47 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiViewTemplate.h \ 48 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/FilesystemModule.h 49 | -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/i386/ComKossoTigramModule.d: -------------------------------------------------------------------------------- 1 | dependencies: \ 2 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModule.m \ 3 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModule.h \ 4 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiModule.h \ 5 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiProxy.h \ 6 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBase.h \ 7 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/defines.h \ 8 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiThreading.h \ 9 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiPublicAPI.h \ 10 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiEvaluator.h \ 11 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollContext.h \ 12 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiCore.h \ 13 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/Ti.h \ 14 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiBase.h \ 15 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiContextRef.h \ 16 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiObjectRef.h \ 17 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiValueRef.h \ 18 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/WebKitAvailability.h \ 19 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiStringRef.h \ 20 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiStringRefCF.h \ 21 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollCallback.h \ 22 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollObject.h \ 23 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBindingRunLoop.h \ 24 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiUtils.h \ 25 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiDimension.h \ 26 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiColor.h \ 27 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/WebFont.h \ 28 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiFile.h \ 29 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBuffer.h \ 30 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBlob.h \ 31 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiHost.h \ 32 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/Bridge.h \ 33 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiStylesheet.h \ 34 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiApp.h \ 35 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollBridge.h \ 36 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/XHRBridge.h \ 37 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiRootViewController.h \ 38 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiControllerProtocols.h \ 39 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiViewProxy.h \ 40 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiUIView.h \ 41 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiAnimation.h \ 42 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiPoint.h \ 43 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/ListenerEntry.h \ 44 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/LayoutConstraint.h \ 45 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiGradient.h \ 46 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiRect.h \ 47 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiViewTemplate.h \ 48 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/FilesystemModule.h 49 | -------------------------------------------------------------------------------- /iphone/build/TiGram.build/Release-iphonesimulator/TiGram.build/Objects-normal/x86_64/ComKossoTigramModule.d: -------------------------------------------------------------------------------- 1 | dependencies: \ 2 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModule.m \ 3 | /Users/kosso/ti_modules/TiGram/iphone/Classes/ComKossoTigramModule.h \ 4 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiModule.h \ 5 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiProxy.h \ 6 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBase.h \ 7 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/defines.h \ 8 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiThreading.h \ 9 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiPublicAPI.h \ 10 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiEvaluator.h \ 11 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollContext.h \ 12 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiCore.h \ 13 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/Ti.h \ 14 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiBase.h \ 15 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiContextRef.h \ 16 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiObjectRef.h \ 17 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiValueRef.h \ 18 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/WebKitAvailability.h \ 19 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiStringRef.h \ 20 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/JavaScriptCore/TiStringRefCF.h \ 21 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollCallback.h \ 22 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollObject.h \ 23 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBindingRunLoop.h \ 24 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiUtils.h \ 25 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiDimension.h \ 26 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiColor.h \ 27 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/WebFont.h \ 28 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiFile.h \ 29 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBuffer.h \ 30 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiBlob.h \ 31 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiHost.h \ 32 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/Bridge.h \ 33 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiStylesheet.h \ 34 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiApp.h \ 35 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/KrollBridge.h \ 36 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/XHRBridge.h \ 37 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiRootViewController.h \ 38 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiControllerProtocols.h \ 39 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiViewProxy.h \ 40 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiUIView.h \ 41 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiAnimation.h \ 42 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiPoint.h \ 43 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/ListenerEntry.h \ 44 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/LayoutConstraint.h \ 45 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiGradient.h \ 46 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiRect.h \ 47 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/TiViewTemplate.h \ 48 | /Library/Application\ Support/Titanium/mobilesdk/osx/3.5.0.GA/iphone/include/FilesystemModule.h 49 | -------------------------------------------------------------------------------- /iphone/README: -------------------------------------------------------------------------------- 1 | Appcelerator Titanium iPhone Module Project 2 | =========================================== 3 | 4 | This is a skeleton Titanium Mobile iPhone module project. Modules can be 5 | used to extend the functionality of Titanium by providing additional native 6 | code that is compiled into your application at build time and can expose certain 7 | APIs into JavaScript. 8 | 9 | MODULE NAMING 10 | -------------- 11 | 12 | Choose a unique module id for your module. This ID usually follows a namespace 13 | convention using DNS notation. For example, com.appcelerator.module.test. This 14 | ID can only be used once by all public modules in Titanium. 15 | 16 | 17 | COMPONENTS 18 | ----------- 19 | 20 | Components that are exposed by your module must follow a special naming convention. 21 | A component (widget, proxy, etc) must be named with the pattern: 22 | 23 | TiProxy 24 | 25 | For example, if you component was called Foo, your proxy would be named: 26 | 27 | TiMyfirstFooProxy 28 | 29 | For view proxies or widgets, you must create both a view proxy and a view implementation. 30 | If you widget was named proxy, you would create the following files: 31 | 32 | TiMyfirstFooProxy.h 33 | TiMyfirstFooProxy.m 34 | TiMyfirstFoo.h 35 | TiMyfirstFoo.m 36 | 37 | The view implementation is named the same except it does contain the suffix `Proxy`. 38 | 39 | View implementations extend the Titanium base class `TiUIView`. View Proxies extend the 40 | Titanium base class `TiUIViewProxy` or `TiUIWidgetProxy`. 41 | 42 | For proxies that are simply native objects that can be returned to JavaScript, you can 43 | simply extend `TiProxy` and no view implementation is required. 44 | 45 | 46 | GET STARTED 47 | ------------ 48 | 49 | 1. Edit manifest with the appropriate details about your module. 50 | 2. Edit LICENSE to add your license details. 51 | 3. Place any assets (such as PNG files) that are required in the assets folder. 52 | 4. Edit the titanium.xcconfig and make sure you're building for the right Titanium version. 53 | 5. Code and build. 54 | 55 | BUILD TIME COMPILER CONFIG 56 | -------------------------- 57 | 58 | You can edit the file `module.xcconfig` to include any build time settings that should be 59 | set during application compilation that your module requires. This file will automatically get `#include` in the main application project. 60 | 61 | For more information about this file, please see the Apple documentation at: 62 | 63 | 64 | 65 | 66 | DOCUMENTATION FOR YOUR MODULE 67 | ----------------------------- 68 | 69 | You should provide at least minimal documentation for your module in `documentation` folder using the Markdown syntax. 70 | 71 | For more information on the Markdown syntax, refer to this documentation at: 72 | 73 | 74 | 75 | 76 | TEST HARNESS EXAMPLE FOR YOUR MODULE 77 | ------------------------------------ 78 | 79 | The `example` directory contains a skeleton application test harness that can be 80 | used for testing and providing an example of usage to the users of your module. 81 | 82 | 83 | INSTALL YOUR MODULE 84 | -------------------- 85 | 86 | 1. Run `build.py` which creates your distribution 87 | 2. cd to `/Library/Application Support/Titanium` 88 | 3. copy this zip file into the folder of your Titanium SDK 89 | 90 | REGISTER YOUR MODULE 91 | --------------------- 92 | 93 | Register your module with your application by editing `tiapp.xml` and adding your module. 94 | Example: 95 | 96 | 97 | __MODULE_ID__ 98 | 99 | 100 | When you run your project, the compiler will know automatically compile in your module 101 | dependencies and copy appropriate image assets into the application. 102 | 103 | USING YOUR MODULE IN CODE 104 | ------------------------- 105 | 106 | To use your module in code, you will need to require it. 107 | 108 | For example, 109 | 110 | var my_module = require('__MODULE_ID__'); 111 | my_module.foo(); 112 | 113 | WRITING PURE JS NATIVE MODULES 114 | ------------------------------ 115 | 116 | You can write a pure JavaScript "natively compiled" module. This is nice if you 117 | want to distribute a JS module pre-compiled. 118 | 119 | To create a module, create a file named __MODULE_ID__.js under the assets folder. 120 | This file must be in the Common JS format. For example: 121 | 122 | exports.echo = function(s) 123 | { 124 | return s; 125 | }; 126 | 127 | Any functions and properties that are exported will be made available as part of your 128 | module. All other code inside your JS will be private to your module. 129 | 130 | For pure JS module, you don't need to modify any of the Objective-C module code. You 131 | can leave it as-is and build. 132 | 133 | TESTING YOUR MODULE 134 | ------------------- 135 | 136 | Run the `titanium.py` script to test your module or test from within XCode. 137 | To test with the script, execute: 138 | 139 | titanium run --dir=YOURMODULEDIR 140 | 141 | 142 | This will execute the app.js in the example folder as a Titanium application. 143 | 144 | 145 | DISTRIBUTING YOUR MODULE 146 | ------------------------- 147 | 148 | Currently, you will need to manually distribution your module distribution zip file directly. However, in the near future, we will make module distribution and sharing built-in to Titanium Developer and in the Titanium Marketplace! 149 | 150 | 151 | Cheers! 152 | -------------------------------------------------------------------------------- /iphone/Classes/ComKossoTigramModule.m: -------------------------------------------------------------------------------- 1 | /** 2 | * TiGram 3 | * 4 | * Created by Kosso 5 | * Copyright (c) 2015 . MIT Licensed. 6 | */ 7 | 8 | #import "ComKossoTigramModule.h" 9 | #import "TiBase.h" 10 | #import "TiHost.h" 11 | #import "TiUtils.h" 12 | #import "TiApp.h" 13 | #import "FilesystemModule.h" 14 | 15 | @implementation ComKossoTigramModule 16 | @synthesize isInstalled; 17 | 18 | 19 | #pragma mark Internal 20 | 21 | // this is generated for your module, please do not change it 22 | -(id)moduleGUID 23 | { 24 | return @"bc70cbb5-fd41-4e6d-9790-35bf177a969f"; 25 | } 26 | 27 | // this is generated for your module, please do not change it 28 | -(NSString*)moduleId 29 | { 30 | return @"com.kosso.tigram"; 31 | } 32 | 33 | #pragma mark Lifecycle 34 | 35 | -(void)startup 36 | { 37 | // this method is called when the module is first loaded 38 | // you *must* call the superclass 39 | [super startup]; 40 | 41 | NSLog(@"[INFO] %@ loaded",self); 42 | } 43 | 44 | -(void)shutdown:(id)sender 45 | { 46 | // this method is called when the module is being unloaded 47 | // typically this is during shutdown. make sure you don't do too 48 | // much processing here or the app will be quit forceably 49 | 50 | // you *must* call the superclass 51 | [super shutdown:sender]; 52 | } 53 | 54 | #pragma mark Cleanup 55 | 56 | -(void)dealloc 57 | { 58 | // release any resources that have been retained by the module 59 | [super dealloc]; 60 | } 61 | 62 | #pragma mark Internal Memory Management 63 | 64 | -(void)didReceiveMemoryWarning:(NSNotification*)notification 65 | { 66 | // optionally release any resources that can be dynamically 67 | // reloaded once memory is available - such as caches 68 | [super didReceiveMemoryWarning:notification]; 69 | } 70 | 71 | #pragma mark Listener Notifications 72 | 73 | -(void)_listenerAdded:(NSString *)type count:(int)count 74 | { 75 | if (count == 1 && [type isEqualToString:@"my_event"]) 76 | { 77 | // the first (of potentially many) listener is being added 78 | // for event named 'my_event' 79 | } 80 | } 81 | 82 | -(void)_listenerRemoved:(NSString *)type count:(int)count 83 | { 84 | if (count == 0 && [type isEqualToString:@"my_event"]) 85 | { 86 | // the last listener called for event named 'my_event' has 87 | // been removed, we can optionally clean up any resources 88 | // since no body is listening at this point for that event 89 | } 90 | } 91 | #pragma mark - 92 | #pragma mark UIDocumentInteractionControllerDelegate 93 | 94 | - (void)documentInteractionController:(UIDocumentInteractionController *)controller 95 | willBeginSendingToApplication:(NSString *)application 96 | { 97 | NSLog(@"[DEBUG] start sending."); 98 | } 99 | 100 | - (void)documentInteractionController:(UIDocumentInteractionController *)controller 101 | didEndSendingToApplication:(NSString *)application 102 | { 103 | NSLog(@"[DEBUG] end sending."); 104 | } 105 | 106 | #pragma Public APIs 107 | 108 | /* 109 | // via : http://stackoverflow.com/questions/20017266/posting-video-on-instagram-using-hooks 110 | 111 | NSURL *videoFilePath = ...; // Your local path to the video 112 | NSString *caption = @"Some Preloaded Caption"; 113 | ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init]; 114 | [library writeVideoAtPathToSavedPhotosAlbum:[NSURL URLWithString:videoFilePath] completionBlock:^(NSURL *assetURL, NSError *error) { 115 | NSURL *instagramURL = [NSURL URLWithString:[NSString stringWithFormat:@"instagram://library?AssetPath=%@&InstagramCaption=%@",[assetURL absoluteString].percentEscape,caption.percentEscape]]; 116 | if ([[UIApplication sharedApplication] canOpenURL:instagramURL]) { 117 | [[UIApplication sharedApplication] openURL:instagramURL]; 118 | } 119 | }]; 120 | 121 | */ 122 | // This method is a bit of a hack and doesn't use the Document Interaction Controller 123 | // See : http://blog.horizon.camera/post/102273431070/video-share-objc-ios-instagram 124 | - (BOOL)openVideoPath:(NSString*)assetPathString withCaption:(NSString*)caption 125 | { 126 | if(![self.isInstalled boolValue]) 127 | { 128 | return NO; 129 | } 130 | NSString *escapedAssetPathString = [assetPathString stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]]; 131 | NSString *escapedCaption = [caption stringByAddingPercentEncodingWithAllowedCharacters:[NSCharacterSet URLHostAllowedCharacterSet]]; 132 | 133 | NSLog(@"[INFO] openVideoPath : escapedAssetPathString : %@", escapedAssetPathString); 134 | 135 | NSLog(@"[INFO] openVideoPath : escapedCaption : %@", escapedCaption); 136 | 137 | 138 | NSURL *instagramURL = [NSURL URLWithString:[NSString stringWithFormat:@"instagram://library?AssetPath=%@&InstagramCaption=%@", escapedAssetPathString, escapedCaption]]; 139 | 140 | [[UIApplication sharedApplication] openURL:instagramURL]; 141 | 142 | return YES; 143 | } 144 | 145 | - (BOOL)openInstagram:(NSString *)filePath withCaption:(NSString *)caption 146 | { 147 | if(![self.isInstalled boolValue]) 148 | { 149 | return NO; 150 | } 151 | 152 | NSURL *fileURL = [NSURL fileURLWithPath:filePath]; 153 | 154 | RELEASE_TO_NIL(interactionController); 155 | interactionController = [[UIDocumentInteractionController interactionControllerWithURL:fileURL] retain]; 156 | interactionController.UTI = @"com.instagram.exclusivegram"; 157 | interactionController.delegate = self; 158 | interactionController.annotation = [NSDictionary dictionaryWithObjectsAndKeys: 159 | caption, @"InstagramCaption", nil]; 160 | UIView *view = [TiApp controller].view; 161 | BOOL present = [interactionController presentOpenInMenuFromRect:view.frame 162 | inView:view 163 | animated:YES]; 164 | if (!present) 165 | { 166 | NSLog(@"[ERROR] Cannot open this type of the file."); 167 | return NO; 168 | } 169 | return YES; 170 | } 171 | 172 | 173 | - (void)openVideo:(id)args 174 | { 175 | ENSURE_UI_THREAD_1_ARG(args); 176 | ENSURE_SINGLE_ARG(args, NSDictionary); 177 | NSString *video_url = [args objectForKey:@"url"]; 178 | 179 | NSString *caption = [args objectForKey:@"caption"]; 180 | [self openVideoPath:video_url withCaption:caption]; 181 | } 182 | 183 | 184 | 185 | - (void)openPhoto:(id)args 186 | { 187 | ENSURE_UI_THREAD_1_ARG(args); 188 | ENSURE_SINGLE_ARG(args, NSDictionary); 189 | 190 | TiBlob *media = [args objectForKey:@"media"]; 191 | ENSURE_TYPE(media, TiBlob); 192 | 193 | NSString *caption = [args objectForKey:@"caption"]; 194 | 195 | NSFileManager *fileManager = [NSFileManager defaultManager]; 196 | NSError *error; 197 | 198 | NSString *toPath; 199 | toPath = [NSHomeDirectory() stringByAppendingPathComponent:@"Documents/image.igo"]; 200 | 201 | [fileManager createFileAtPath:toPath contents:[media data] attributes:nil]; 202 | 203 | [self openInstagram:toPath withCaption:caption]; 204 | } 205 | 206 | - (id)isInstalled 207 | { 208 | NSURL *instagramURL = [NSURL URLWithString:@"instagram://app"]; 209 | 210 | if (![[UIApplication sharedApplication] canOpenURL:instagramURL]) 211 | { 212 | return NUMBOOL(NO); 213 | } 214 | 215 | return NUMBOOL(YES); 216 | } 217 | 218 | 219 | @end 220 | -------------------------------------------------------------------------------- /iphone/build.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | # 3 | # Appcelerator Titanium Module Packager 4 | # 5 | # 6 | import os, subprocess, sys, glob, string 7 | import zipfile 8 | from datetime import date 9 | 10 | cwd = os.path.abspath(os.path.dirname(sys._getframe(0).f_code.co_filename)) 11 | os.chdir(cwd) 12 | required_module_keys = ['architectures', 'name','version','moduleid','description','copyright','license','copyright','platform','minsdk'] 13 | module_defaults = { 14 | 'description':'My module', 15 | 'author': 'Your Name', 16 | 'license' : 'Specify your license', 17 | 'copyright' : 'Copyright (c) %s by Your Company' % str(date.today().year), 18 | } 19 | module_license_default = "TODO: place your license here and we'll include it in the module distribution" 20 | 21 | def find_sdk(config): 22 | sdk = config['TITANIUM_SDK'] 23 | return os.path.expandvars(os.path.expanduser(sdk)) 24 | 25 | def replace_vars(config,token): 26 | idx = token.find('$(') 27 | while idx != -1: 28 | idx2 = token.find(')',idx+2) 29 | if idx2 == -1: break 30 | key = token[idx+2:idx2] 31 | if not config.has_key(key): break 32 | token = token.replace('$(%s)' % key, config[key]) 33 | idx = token.find('$(') 34 | return token 35 | 36 | 37 | def read_ti_xcconfig(): 38 | contents = open(os.path.join(cwd,'titanium.xcconfig')).read() 39 | config = {} 40 | for line in contents.splitlines(False): 41 | line = line.strip() 42 | if line[0:2]=='//': continue 43 | idx = line.find('=') 44 | if idx > 0: 45 | key = line[0:idx].strip() 46 | value = line[idx+1:].strip() 47 | config[key] = replace_vars(config,value) 48 | return config 49 | 50 | def generate_doc(config): 51 | docdir = os.path.join(cwd,'documentation') 52 | if not os.path.exists(docdir): 53 | docdir = os.path.join(cwd,'..','documentation') 54 | if not os.path.exists(docdir): 55 | print "Couldn't find documentation file at: %s" % docdir 56 | return None 57 | 58 | try: 59 | import markdown2 as markdown 60 | except ImportError: 61 | import markdown 62 | documentation = [] 63 | for file in os.listdir(docdir): 64 | if file in ignoreFiles or os.path.isdir(os.path.join(docdir, file)): 65 | continue 66 | md = open(os.path.join(docdir,file)).read() 67 | html = markdown.markdown(md) 68 | documentation.append({file:html}); 69 | return documentation 70 | 71 | def compile_js(manifest,config): 72 | js_file = os.path.join(cwd,'assets','com.kosso.tigram.js') 73 | if not os.path.exists(js_file): 74 | js_file = os.path.join(cwd,'..','assets','com.kosso.tigram.js') 75 | if not os.path.exists(js_file): return 76 | 77 | from compiler import Compiler 78 | try: 79 | import json 80 | except: 81 | import simplejson as json 82 | 83 | compiler = Compiler(cwd, manifest['moduleid'], manifest['name'], 'commonjs') 84 | root_asset, module_assets = compiler.compile_module() 85 | 86 | root_asset_content = """ 87 | %s 88 | 89 | return filterDataInRange([NSData dataWithBytesNoCopy:data length:sizeof(data) freeWhenDone:NO], ranges[0]); 90 | """ % root_asset 91 | 92 | module_asset_content = """ 93 | %s 94 | 95 | NSNumber *index = [map objectForKey:path]; 96 | if (index == nil) { 97 | return nil; 98 | } 99 | return filterDataInRange([NSData dataWithBytesNoCopy:data length:sizeof(data) freeWhenDone:NO], ranges[index.integerValue]); 100 | """ % module_assets 101 | 102 | from tools import splice_code 103 | 104 | assets_router = os.path.join(cwd,'Classes','ComKossoTigramModuleAssets.m') 105 | splice_code(assets_router, 'asset', root_asset_content) 106 | splice_code(assets_router, 'resolve_asset', module_asset_content) 107 | 108 | # Generate the exports after crawling all of the available JS source 109 | exports = open('metadata.json','w') 110 | json.dump({'exports':compiler.exports }, exports) 111 | exports.close() 112 | 113 | def die(msg): 114 | print msg 115 | sys.exit(1) 116 | 117 | def warn(msg): 118 | print "[WARN] %s" % msg 119 | 120 | def validate_license(): 121 | license_file = os.path.join(cwd,'LICENSE') 122 | if not os.path.exists(license_file): 123 | license_file = os.path.join(cwd,'..','LICENSE') 124 | if os.path.exists(license_file): 125 | c = open(license_file).read() 126 | if c.find(module_license_default)!=-1: 127 | warn('please update the LICENSE file with your license text before distributing') 128 | 129 | def validate_manifest(): 130 | path = os.path.join(cwd,'manifest') 131 | f = open(path) 132 | if not os.path.exists(path): die("missing %s" % path) 133 | manifest = {} 134 | for line in f.readlines(): 135 | line = line.strip() 136 | if line[0:1]=='#': continue 137 | if line.find(':') < 0: continue 138 | key,value = line.split(':') 139 | manifest[key.strip()]=value.strip() 140 | for key in required_module_keys: 141 | if not manifest.has_key(key): die("missing required manifest key '%s'" % key) 142 | if manifest[key].strip() == '': die("manifest key '%s' missing required value" % key) 143 | if module_defaults.has_key(key): 144 | defvalue = module_defaults[key] 145 | curvalue = manifest[key] 146 | if curvalue==defvalue: warn("please update the manifest key: '%s' to a non-default value" % key) 147 | return manifest,path 148 | 149 | ignoreFiles = ['.DS_Store','.gitignore','libTitanium.a','titanium.jar','README'] 150 | ignoreDirs = ['.DS_Store','.svn','.git','CVSROOT'] 151 | 152 | def zip_dir(zf,dir,basepath,ignore=[],includeJSFiles=False): 153 | for root, dirs, files in os.walk(dir): 154 | for name in ignoreDirs: 155 | if name in dirs: 156 | dirs.remove(name) # don't visit ignored directories 157 | for file in files: 158 | if file in ignoreFiles: continue 159 | e = os.path.splitext(file) 160 | if len(e) == 2 and e[1] == '.pyc': continue 161 | if not includeJSFiles and len(e) == 2 and e[1] == '.js': continue 162 | from_ = os.path.join(root, file) 163 | to_ = from_.replace(dir, basepath, 1) 164 | zf.write(from_, to_) 165 | 166 | def glob_libfiles(): 167 | files = [] 168 | for libfile in glob.glob('build/**/*.a'): 169 | if libfile.find('Release-')!=-1: 170 | files.append(libfile) 171 | return files 172 | 173 | def build_module(manifest,config): 174 | from tools import ensure_dev_path 175 | ensure_dev_path() 176 | 177 | rc = os.system("xcodebuild -sdk iphoneos -configuration Release") 178 | if rc != 0: 179 | die("xcodebuild failed") 180 | rc = os.system("xcodebuild -sdk iphonesimulator -configuration Release") 181 | if rc != 0: 182 | die("xcodebuild failed") 183 | # build the merged library using lipo 184 | moduleid = manifest['moduleid'] 185 | libpaths = '' 186 | for libfile in glob_libfiles(): 187 | libpaths+='%s ' % libfile 188 | 189 | os.system("lipo %s -create -output build/lib%s.a" %(libpaths,moduleid)) 190 | 191 | def verify_build_arch(manifest, config): 192 | binaryname = 'lib%s.a' % manifest['moduleid'] 193 | binarypath = os.path.join('build', binaryname) 194 | manifestarch = set(manifest['architectures'].split(' ')) 195 | 196 | output = subprocess.check_output('xcrun lipo -info %s' % binarypath, shell=True) 197 | 198 | builtarch = set(output.split(':')[-1].strip().split(' ')) 199 | 200 | if ('arm64' not in builtarch): 201 | warn('built module is missing 64-bit support.') 202 | 203 | if (manifestarch != builtarch): 204 | warn('there is discrepancy between the architectures specified in module manifest and compiled binary.') 205 | warn('architectures in manifest: %s' % ', '.join(manifestarch)) 206 | warn('compiled binary architectures: %s' % ', '.join(builtarch)) 207 | die('please update manifest to match module binary architectures.') 208 | 209 | def package_module(manifest,mf,config): 210 | name = manifest['name'].lower() 211 | moduleid = manifest['moduleid'].lower() 212 | version = manifest['version'] 213 | modulezip = '%s-iphone-%s.zip' % (moduleid,version) 214 | if os.path.exists(modulezip): os.remove(modulezip) 215 | zf = zipfile.ZipFile(modulezip, 'w', zipfile.ZIP_DEFLATED) 216 | modulepath = 'modules/iphone/%s/%s' % (moduleid,version) 217 | zf.write(mf,'%s/manifest' % modulepath) 218 | libname = 'lib%s.a' % moduleid 219 | zf.write('build/%s' % libname, '%s/%s' % (modulepath,libname)) 220 | docs = generate_doc(config) 221 | if docs!=None: 222 | for doc in docs: 223 | for file, html in doc.iteritems(): 224 | filename = string.replace(file,'.md','.html') 225 | zf.writestr('%s/documentation/%s'%(modulepath,filename),html) 226 | 227 | p = os.path.join(cwd, 'assets') 228 | if not os.path.exists(p): 229 | p = os.path.join(cwd, '..', 'assets') 230 | if os.path.exists(p): 231 | zip_dir(zf,p,'%s/%s' % (modulepath,'assets'),['README']) 232 | 233 | for dn in ('example','platform'): 234 | p = os.path.join(cwd, dn) 235 | if not os.path.exists(p): 236 | p = os.path.join(cwd, '..', dn) 237 | if os.path.exists(p): 238 | zip_dir(zf,p,'%s/%s' % (modulepath,dn),['README'],True) 239 | 240 | license_file = os.path.join(cwd,'LICENSE') 241 | if not os.path.exists(license_file): 242 | license_file = os.path.join(cwd,'..','LICENSE') 243 | if os.path.exists(license_file): 244 | zf.write(license_file,'%s/LICENSE' % modulepath) 245 | 246 | zf.write('module.xcconfig','%s/module.xcconfig' % modulepath) 247 | exports_file = 'metadata.json' 248 | if os.path.exists(exports_file): 249 | zf.write(exports_file, '%s/%s' % (modulepath, exports_file)) 250 | zf.close() 251 | 252 | 253 | if __name__ == '__main__': 254 | manifest,mf = validate_manifest() 255 | validate_license() 256 | config = read_ti_xcconfig() 257 | 258 | sdk = find_sdk(config) 259 | sys.path.insert(0,os.path.join(sdk,'iphone')) 260 | sys.path.append(os.path.join(sdk, "common")) 261 | 262 | compile_js(manifest,config) 263 | build_module(manifest,config) 264 | verify_build_arch(manifest, config) 265 | package_module(manifest,mf,config) 266 | sys.exit(0) 267 | -------------------------------------------------------------------------------- /iphone/TiGram.xcodeproj/project.pbxproj: -------------------------------------------------------------------------------- 1 | // !$*UTF8*$! 2 | { 3 | archiveVersion = 1; 4 | classes = { 5 | }; 6 | objectVersion = 46; 7 | objects = { 8 | 9 | /* Begin PBXAggregateTarget section */ 10 | 24416B8111C4CA220047AFDD /* Build & Test */ = { 11 | isa = PBXAggregateTarget; 12 | buildConfigurationList = 24416B8A11C4CA520047AFDD /* Build configuration list for PBXAggregateTarget "Build & Test" */; 13 | buildPhases = ( 14 | 24416B8011C4CA220047AFDD /* ShellScript */, 15 | ); 16 | dependencies = ( 17 | 24416B8511C4CA280047AFDD /* PBXTargetDependency */, 18 | ); 19 | name = "Build & Test"; 20 | productName = "Build & test"; 21 | }; 22 | /* End PBXAggregateTarget section */ 23 | 24 | /* Begin PBXBuildFile section */ 25 | 24DD6CF91134B3F500162E58 /* ComKossoTigramModule.h in Headers */ = {isa = PBXBuildFile; fileRef = 24DD6CF71134B3F500162E58 /* ComKossoTigramModule.h */; }; 26 | 24DD6CFA1134B3F500162E58 /* ComKossoTigramModule.m in Sources */ = {isa = PBXBuildFile; fileRef = 24DD6CF81134B3F500162E58 /* ComKossoTigramModule.m */; }; 27 | 24DE9E1111C5FE74003F90F6 /* ComKossoTigramModuleAssets.h in Headers */ = {isa = PBXBuildFile; fileRef = 24DE9E0F11C5FE74003F90F6 /* ComKossoTigramModuleAssets.h */; }; 28 | 24DE9E1211C5FE74003F90F6 /* ComKossoTigramModuleAssets.m in Sources */ = {isa = PBXBuildFile; fileRef = 24DE9E1011C5FE74003F90F6 /* ComKossoTigramModuleAssets.m */; }; 29 | AA747D9F0F9514B9006C5449 /* ComKossoTigram_Prefix.pch in Headers */ = {isa = PBXBuildFile; fileRef = AA747D9E0F9514B9006C5449 /* ComKossoTigram_Prefix.pch */; }; 30 | AACBBE4A0F95108600F1A2B1 /* Foundation.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = AACBBE490F95108600F1A2B1 /* Foundation.framework */; }; 31 | /* End PBXBuildFile section */ 32 | 33 | /* Begin PBXContainerItemProxy section */ 34 | 24416B8411C4CA280047AFDD /* PBXContainerItemProxy */ = { 35 | isa = PBXContainerItemProxy; 36 | containerPortal = 0867D690FE84028FC02AAC07 /* Project object */; 37 | proxyType = 1; 38 | remoteGlobalIDString = D2AAC07D0554694100DB518D; 39 | remoteInfo = "TiGram"; 40 | }; 41 | /* End PBXContainerItemProxy section */ 42 | 43 | /* Begin PBXFileReference section */ 44 | 24DD6CF71134B3F500162E58 /* ComKossoTigramModule.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "ComKossoTigramModule.h"; path = "Classes/ComKossoTigramModule.h"; sourceTree = ""; }; 45 | 24DD6CF81134B3F500162E58 /* ComKossoTigramModule.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "ComKossoTigramModule.m"; path = "Classes/ComKossoTigramModule.m"; sourceTree = ""; }; 46 | 24DD6D1B1134B66800162E58 /* titanium.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = titanium.xcconfig; sourceTree = ""; }; 47 | 24DE9E0F11C5FE74003F90F6 /* ComKossoTigramModuleAssets.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = "ComKossoTigramModuleAssets.h"; path = "Classes/ComKossoTigramModuleAssets.h"; sourceTree = ""; }; 48 | 24DE9E1011C5FE74003F90F6 /* ComKossoTigramModuleAssets.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = "ComKossoTigramModuleAssets.m"; path = "Classes/ComKossoTigramModuleAssets.m"; sourceTree = ""; }; 49 | AA747D9E0F9514B9006C5449 /* ComKossoTigram_Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "ComKossoTigram_Prefix.pch"; sourceTree = SOURCE_ROOT; }; 50 | AACBBE490F95108600F1A2B1 /* Foundation.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = Foundation.framework; path = System/Library/Frameworks/Foundation.framework; sourceTree = SDKROOT; }; 51 | D2AAC07E0554694100DB518D /* libComKossoTigram.a */ = {isa = PBXFileReference; explicitFileType = archive.ar; includeInIndex = 0; path = "libComKossoTigram.a"; sourceTree = BUILT_PRODUCTS_DIR; }; 52 | /* End PBXFileReference section */ 53 | 54 | /* Begin PBXFrameworksBuildPhase section */ 55 | D2AAC07C0554694100DB518D /* Frameworks */ = { 56 | isa = PBXFrameworksBuildPhase; 57 | buildActionMask = 2147483647; 58 | files = ( 59 | AACBBE4A0F95108600F1A2B1 /* Foundation.framework in Frameworks */, 60 | ); 61 | runOnlyForDeploymentPostprocessing = 0; 62 | }; 63 | /* End PBXFrameworksBuildPhase section */ 64 | 65 | /* Begin PBXGroup section */ 66 | 034768DFFF38A50411DB9C8B /* Products */ = { 67 | isa = PBXGroup; 68 | children = ( 69 | D2AAC07E0554694100DB518D /* libComKossoTigram.a */, 70 | ); 71 | name = Products; 72 | sourceTree = ""; 73 | }; 74 | 0867D691FE84028FC02AAC07 /* TiGram */ = { 75 | isa = PBXGroup; 76 | children = ( 77 | 08FB77AEFE84172EC02AAC07 /* Classes */, 78 | 32C88DFF0371C24200C91783 /* Other Sources */, 79 | 0867D69AFE84028FC02AAC07 /* Frameworks */, 80 | 034768DFFF38A50411DB9C8B /* Products */, 81 | ); 82 | name = "TiGram"; 83 | sourceTree = ""; 84 | }; 85 | 0867D69AFE84028FC02AAC07 /* Frameworks */ = { 86 | isa = PBXGroup; 87 | children = ( 88 | AACBBE490F95108600F1A2B1 /* Foundation.framework */, 89 | ); 90 | name = Frameworks; 91 | sourceTree = ""; 92 | }; 93 | 08FB77AEFE84172EC02AAC07 /* Classes */ = { 94 | isa = PBXGroup; 95 | children = ( 96 | 24DE9E0F11C5FE74003F90F6 /* ComKossoTigramModuleAssets.h */, 97 | 24DE9E1011C5FE74003F90F6 /* ComKossoTigramModuleAssets.m */, 98 | 24DD6CF71134B3F500162E58 /* ComKossoTigramModule.h */, 99 | 24DD6CF81134B3F500162E58 /* ComKossoTigramModule.m */, 100 | ); 101 | name = Classes; 102 | sourceTree = ""; 103 | }; 104 | 32C88DFF0371C24200C91783 /* Other Sources */ = { 105 | isa = PBXGroup; 106 | children = ( 107 | AA747D9E0F9514B9006C5449 /* ComKossoTigram_Prefix.pch */, 108 | 24DD6D1B1134B66800162E58 /* titanium.xcconfig */, 109 | ); 110 | name = "Other Sources"; 111 | sourceTree = ""; 112 | }; 113 | /* End PBXGroup section */ 114 | 115 | /* Begin PBXHeadersBuildPhase section */ 116 | D2AAC07A0554694100DB518D /* Headers */ = { 117 | isa = PBXHeadersBuildPhase; 118 | buildActionMask = 2147483647; 119 | files = ( 120 | AA747D9F0F9514B9006C5449 /* ComKossoTigram_Prefix.pch in Headers */, 121 | 24DD6CF91134B3F500162E58 /* ComKossoTigramModule.h in Headers */, 122 | 24DE9E1111C5FE74003F90F6 /* ComKossoTigramModuleAssets.h in Headers */, 123 | ); 124 | runOnlyForDeploymentPostprocessing = 0; 125 | }; 126 | /* End PBXHeadersBuildPhase section */ 127 | 128 | /* Begin PBXNativeTarget section */ 129 | D2AAC07D0554694100DB518D /* TiGram */ = { 130 | isa = PBXNativeTarget; 131 | buildConfigurationList = 1DEB921E08733DC00010E9CD /* Build configuration list for PBXNativeTarget "TiGram" */; 132 | buildPhases = ( 133 | D2AAC07A0554694100DB518D /* Headers */, 134 | D2AAC07B0554694100DB518D /* Sources */, 135 | D2AAC07C0554694100DB518D /* Frameworks */, 136 | ); 137 | buildRules = ( 138 | ); 139 | dependencies = ( 140 | ); 141 | name = "TiGram"; 142 | productName = "TiGram"; 143 | productReference = D2AAC07E0554694100DB518D /* libComKossoTigram.a */; 144 | productType = "com.apple.product-type.library.static"; 145 | }; 146 | /* End PBXNativeTarget section */ 147 | 148 | /* Begin PBXProject section */ 149 | 0867D690FE84028FC02AAC07 /* Project object */ = { 150 | isa = PBXProject; 151 | attributes = { 152 | LastUpgradeCheck = 0600; 153 | }; 154 | buildConfigurationList = 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "TiGram" */; 155 | compatibilityVersion = "Xcode 3.2"; 156 | developmentRegion = English; 157 | hasScannedForEncodings = 1; 158 | knownRegions = ( 159 | English, 160 | Japanese, 161 | French, 162 | German, 163 | ); 164 | mainGroup = 0867D691FE84028FC02AAC07 /* TiGram */; 165 | productRefGroup = 034768DFFF38A50411DB9C8B /* Products */; 166 | projectDirPath = ""; 167 | projectRoot = ""; 168 | targets = ( 169 | D2AAC07D0554694100DB518D /* TiGram */, 170 | 24416B8111C4CA220047AFDD /* Build & Test */, 171 | ); 172 | }; 173 | /* End PBXProject section */ 174 | 175 | /* Begin PBXShellScriptBuildPhase section */ 176 | 24416B8011C4CA220047AFDD /* ShellScript */ = { 177 | isa = PBXShellScriptBuildPhase; 178 | buildActionMask = 2147483647; 179 | files = ( 180 | ); 181 | inputPaths = ( 182 | ); 183 | outputPaths = ( 184 | ); 185 | runOnlyForDeploymentPostprocessing = 0; 186 | shellPath = /bin/sh; 187 | shellScript = "# shell script goes here\n\npython \"${TITANIUM_SDK}/titanium.py\" run --dir=\"${PROJECT_DIR}\"\nexit $?\n"; 188 | }; 189 | /* End PBXShellScriptBuildPhase section */ 190 | 191 | /* Begin PBXSourcesBuildPhase section */ 192 | D2AAC07B0554694100DB518D /* Sources */ = { 193 | isa = PBXSourcesBuildPhase; 194 | buildActionMask = 2147483647; 195 | files = ( 196 | 24DD6CFA1134B3F500162E58 /* ComKossoTigramModule.m in Sources */, 197 | 24DE9E1211C5FE74003F90F6 /* ComKossoTigramModuleAssets.m in Sources */, 198 | ); 199 | runOnlyForDeploymentPostprocessing = 0; 200 | }; 201 | /* End PBXSourcesBuildPhase section */ 202 | 203 | /* Begin PBXTargetDependency section */ 204 | 24416B8511C4CA280047AFDD /* PBXTargetDependency */ = { 205 | isa = PBXTargetDependency; 206 | target = D2AAC07D0554694100DB518D /* TiGram */; 207 | targetProxy = 24416B8411C4CA280047AFDD /* PBXContainerItemProxy */; 208 | }; 209 | /* End PBXTargetDependency section */ 210 | 211 | /* Begin XCBuildConfiguration section */ 212 | 1DEB921F08733DC00010E9CD /* Debug */ = { 213 | isa = XCBuildConfiguration; 214 | baseConfigurationReference = 24DD6D1B1134B66800162E58 /* titanium.xcconfig */; 215 | buildSettings = { 216 | CODE_SIGN_IDENTITY = "iPhone Developer"; 217 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 218 | DSTROOT = "/tmp/ComKossoTigram.dst"; 219 | GCC_C_LANGUAGE_STANDARD = c99; 220 | GCC_OPTIMIZATION_LEVEL = 0; 221 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 222 | GCC_PREFIX_HEADER = "ComKossoTigram_Prefix.pch"; 223 | GCC_PREPROCESSOR_DEFINITIONS = "TI_VERSION=$(TI_VERSION)"; 224 | GCC_TREAT_WARNINGS_AS_ERRORS = NO; 225 | GCC_VERSION = ""; 226 | GCC_WARN_ABOUT_RETURN_TYPE = NO; 227 | GCC_WARN_MISSING_PARENTHESES = NO; 228 | GCC_WARN_SHADOW = NO; 229 | GCC_WARN_STRICT_SELECTOR_MATCH = NO; 230 | GCC_WARN_UNUSED_FUNCTION = YES; 231 | GCC_WARN_UNUSED_PARAMETER = NO; 232 | GCC_WARN_UNUSED_VALUE = NO; 233 | GCC_WARN_UNUSED_VARIABLE = NO; 234 | INSTALL_PATH = /usr/local/lib; 235 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 236 | LIBRARY_SEARCH_PATHS = ""; 237 | OTHER_CFLAGS = ( 238 | "-DDEBUG", 239 | "-DTI_POST_1_2", 240 | ); 241 | OTHER_LDFLAGS = "-ObjC"; 242 | PRODUCT_NAME = "ComKossoTigram"; 243 | PROVISIONING_PROFILE = ""; 244 | "PROVISIONING_PROFILE[sdk=iphoneos*]" = ""; 245 | RUN_CLANG_STATIC_ANALYZER = NO; 246 | SDKROOT = iphoneos; 247 | USER_HEADER_SEARCH_PATHS = ""; 248 | }; 249 | name = Debug; 250 | }; 251 | 1DEB922008733DC00010E9CD /* Release */ = { 252 | isa = XCBuildConfiguration; 253 | baseConfigurationReference = 24DD6D1B1134B66800162E58 /* titanium.xcconfig */; 254 | buildSettings = { 255 | ALWAYS_SEARCH_USER_PATHS = NO; 256 | DSTROOT = "/tmp/ComKossoTigram.dst"; 257 | GCC_C_LANGUAGE_STANDARD = c99; 258 | GCC_MODEL_TUNING = G5; 259 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 260 | GCC_PREFIX_HEADER = "ComKossoTigram_Prefix.pch"; 261 | GCC_PREPROCESSOR_DEFINITIONS = "TI_VERSION=$(TI_VERSION)"; 262 | GCC_TREAT_WARNINGS_AS_ERRORS = NO; 263 | GCC_VERSION = ""; 264 | GCC_WARN_ABOUT_RETURN_TYPE = NO; 265 | GCC_WARN_MISSING_PARENTHESES = NO; 266 | GCC_WARN_SHADOW = NO; 267 | GCC_WARN_STRICT_SELECTOR_MATCH = NO; 268 | GCC_WARN_UNUSED_FUNCTION = YES; 269 | GCC_WARN_UNUSED_PARAMETER = NO; 270 | GCC_WARN_UNUSED_VALUE = NO; 271 | GCC_WARN_UNUSED_VARIABLE = NO; 272 | INSTALL_PATH = /usr/local/lib; 273 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 274 | LIBRARY_SEARCH_PATHS = ""; 275 | OTHER_CFLAGS = "-DTI_POST_1_2"; 276 | OTHER_LDFLAGS = "-ObjC"; 277 | PRODUCT_NAME = "ComKossoTigram"; 278 | RUN_CLANG_STATIC_ANALYZER = NO; 279 | SDKROOT = iphoneos; 280 | USER_HEADER_SEARCH_PATHS = ""; 281 | }; 282 | name = Release; 283 | }; 284 | 1DEB922308733DC00010E9CD /* Debug */ = { 285 | isa = XCBuildConfiguration; 286 | baseConfigurationReference = 24DD6D1B1134B66800162E58 /* titanium.xcconfig */; 287 | buildSettings = { 288 | CLANG_CXX_LIBRARY = "libstdc++"; 289 | CODE_SIGN_IDENTITY = "iPhone Developer"; 290 | "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; 291 | DSTROOT = "/tmp/ComKossoTigram.dst"; 292 | GCC_C_LANGUAGE_STANDARD = c99; 293 | GCC_OPTIMIZATION_LEVEL = 0; 294 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 295 | GCC_PREFIX_HEADER = "ComKossoTigram_Prefix.pch"; 296 | GCC_PREPROCESSOR_DEFINITIONS = "TI_VERSION=$(TI_VERSION)"; 297 | GCC_TREAT_WARNINGS_AS_ERRORS = NO; 298 | GCC_VERSION = ""; 299 | GCC_WARN_ABOUT_RETURN_TYPE = NO; 300 | GCC_WARN_MISSING_PARENTHESES = NO; 301 | GCC_WARN_SHADOW = NO; 302 | GCC_WARN_STRICT_SELECTOR_MATCH = NO; 303 | GCC_WARN_UNUSED_FUNCTION = YES; 304 | GCC_WARN_UNUSED_PARAMETER = NO; 305 | GCC_WARN_UNUSED_VALUE = NO; 306 | GCC_WARN_UNUSED_VARIABLE = NO; 307 | INSTALL_PATH = /usr/local/lib; 308 | ONLY_ACTIVE_ARCH = YES; 309 | OTHER_CFLAGS = ( 310 | "-DDEBUG", 311 | "-DTI_POST_1_2", 312 | ); 313 | OTHER_LDFLAGS = "-ObjC"; 314 | PRODUCT_NAME = "ComKossoTigram"; 315 | PROVISIONING_PROFILE = ""; 316 | "PROVISIONING_PROFILE[sdk=iphoneos*]" = ""; 317 | RUN_CLANG_STATIC_ANALYZER = NO; 318 | SDKROOT = iphoneos; 319 | USER_HEADER_SEARCH_PATHS = ""; 320 | }; 321 | name = Debug; 322 | }; 323 | 1DEB922408733DC00010E9CD /* Release */ = { 324 | isa = XCBuildConfiguration; 325 | baseConfigurationReference = 24DD6D1B1134B66800162E58 /* titanium.xcconfig */; 326 | buildSettings = { 327 | ALWAYS_SEARCH_USER_PATHS = NO; 328 | CLANG_CXX_LIBRARY = "libstdc++"; 329 | DSTROOT = "/tmp/ComKossoTigram.dst"; 330 | GCC_C_LANGUAGE_STANDARD = c99; 331 | GCC_MODEL_TUNING = G5; 332 | GCC_PRECOMPILE_PREFIX_HEADER = YES; 333 | GCC_PREFIX_HEADER = "ComKossoTigram_Prefix.pch"; 334 | GCC_PREPROCESSOR_DEFINITIONS = "TI_VERSION=$(TI_VERSION)"; 335 | GCC_TREAT_WARNINGS_AS_ERRORS = NO; 336 | GCC_VERSION = ""; 337 | GCC_WARN_ABOUT_RETURN_TYPE = NO; 338 | GCC_WARN_MISSING_PARENTHESES = NO; 339 | GCC_WARN_SHADOW = NO; 340 | GCC_WARN_STRICT_SELECTOR_MATCH = NO; 341 | GCC_WARN_UNUSED_FUNCTION = YES; 342 | GCC_WARN_UNUSED_PARAMETER = NO; 343 | GCC_WARN_UNUSED_VALUE = NO; 344 | GCC_WARN_UNUSED_VARIABLE = NO; 345 | INSTALL_PATH = /usr/local/lib; 346 | IPHONEOS_DEPLOYMENT_TARGET = 6.0; 347 | OTHER_CFLAGS = "-DTI_POST_1_2"; 348 | OTHER_LDFLAGS = "-ObjC"; 349 | PRODUCT_NAME = "ComKossoTigram"; 350 | RUN_CLANG_STATIC_ANALYZER = NO; 351 | SDKROOT = iphoneos; 352 | USER_HEADER_SEARCH_PATHS = ""; 353 | }; 354 | name = Release; 355 | }; 356 | 24416B8211C4CA220047AFDD /* Debug */ = { 357 | isa = XCBuildConfiguration; 358 | baseConfigurationReference = 24DD6D1B1134B66800162E58 /* titanium.xcconfig */; 359 | buildSettings = { 360 | COPY_PHASE_STRIP = NO; 361 | GCC_DYNAMIC_NO_PIC = NO; 362 | GCC_OPTIMIZATION_LEVEL = 0; 363 | PRODUCT_NAME = "Build & test"; 364 | }; 365 | name = Debug; 366 | }; 367 | 24416B8311C4CA220047AFDD /* Release */ = { 368 | isa = XCBuildConfiguration; 369 | baseConfigurationReference = 24DD6D1B1134B66800162E58 /* titanium.xcconfig */; 370 | buildSettings = { 371 | COPY_PHASE_STRIP = YES; 372 | DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; 373 | GCC_ENABLE_FIX_AND_CONTINUE = NO; 374 | PRODUCT_NAME = "Build & test"; 375 | ZERO_LINK = NO; 376 | }; 377 | name = Release; 378 | }; 379 | /* End XCBuildConfiguration section */ 380 | 381 | /* Begin XCConfigurationList section */ 382 | 1DEB921E08733DC00010E9CD /* Build configuration list for PBXNativeTarget "TiGram" */ = { 383 | isa = XCConfigurationList; 384 | buildConfigurations = ( 385 | 1DEB921F08733DC00010E9CD /* Debug */, 386 | 1DEB922008733DC00010E9CD /* Release */, 387 | ); 388 | defaultConfigurationIsVisible = 0; 389 | defaultConfigurationName = Release; 390 | }; 391 | 1DEB922208733DC00010E9CD /* Build configuration list for PBXProject "TiGram" */ = { 392 | isa = XCConfigurationList; 393 | buildConfigurations = ( 394 | 1DEB922308733DC00010E9CD /* Debug */, 395 | 1DEB922408733DC00010E9CD /* Release */, 396 | ); 397 | defaultConfigurationIsVisible = 0; 398 | defaultConfigurationName = Release; 399 | }; 400 | 24416B8A11C4CA520047AFDD /* Build configuration list for PBXAggregateTarget "Build & Test" */ = { 401 | isa = XCConfigurationList; 402 | buildConfigurations = ( 403 | 24416B8211C4CA220047AFDD /* Debug */, 404 | 24416B8311C4CA220047AFDD /* Release */, 405 | ); 406 | defaultConfigurationIsVisible = 0; 407 | defaultConfigurationName = Release; 408 | }; 409 | /* End XCConfigurationList section */ 410 | }; 411 | rootObject = 0867D690FE84028FC02AAC07 /* Project object */; 412 | } 413 | --------------------------------------------------------------------------------