Appcelerator module cannot be found - titanium

I have created a new Appcelerator project as I'm updating an old Appcelerator to a new one.
I'm having trouble with it recognising a module though. The module is:
var map = require('bencoding.map');
And it's included in the '/modules/iphone/bencoding.map/' folder.
I did include the module in the tiapp.xml file: <module platform="iphone">bencoding.map</module>
Anyone got any ideas why?

It appears bencoding.map hasn't been updated in 4 years! It probably is no longer supported.
However, the build in ti.map has polygon support just like bencoding.map tried 4 years ago. Just look at the doc here: http://docs.appcelerator.com/platform/latest/#!/api/Modules.Map
ti.map is included in the SDK. But should you need a download (to pin a version/include it in repo) just download it from their Git repo

Related

Problems archiving project with react-native-fbsdk

I have managed to get react-native-fbsdk (core, login and share) all working in my project. I can build to devices without issue but if I try to create an archive from Xcode I get the error
Lexical or Preprocessor Issue
'RCTBridgeModule.h' file not found
I have followed the install instructions and create a virgin project and done it again to ensure nothing else could be causing this.
Similar Xcode related questions have come up blank for me too:
Xcode 4 can't locate public header files from static library dependency
When archiving app Xcode complains about missing files
Xcode 4 and nested projects -- header files not found
This makes me wonder if there's something else to to with FBSDK specifically that I need to do to get it to archive properly.
Has anyone got a project to archive with react-native-fbsdk? If so, how?
Note: I skipped the step regarding explicitly naming the path for static libraries as I do not know what the name should be; I do not know which the static library would be fbsdkcore (etc) or react-native/react.
I appears that the repo had an error in its header search paths in 'release' distribution. The fix was to correct the xcodeproj in the plugin (A PR is currently going through for this) as outlined here
The following line is present in the debug distribution but not in release for any of the required xcodeproj's
"$(SRCROOT)/../../node_modules/react-native/React/**",
Adding this fixes the error.
Full Source Code Alterations

Extending Titanium WebViewProxy for Android - Build error

I need to extend Titanium's Android Webview with some additional functionality, however I'm not able to build my titanium project after including my created module.
My module has the titanium-ui.jar on it's build path and I have copied the original Titanium WebViewProxy.java into my module project. I haven't added any custom code to WebViewProxy.java yet.
This is the project hierarchy of my module, together with the build.properties file.
When building the module, I get an exception but the module seems to get built anyway, this must have something to do with the final problem. When I remove the WebViewProxy.java and keep the titanium-ui.jar on my build path, building the module and including it in my titanium project works fine.
Here's the full console log of the build script of the module: http://pastebin.com/G2LSkFLF
This is what happens when I try to run my titanium project using the generated module (the one, that threw the exception while building)
Does anyone know how to solve this? Maybe some different approach at all? I have some special url schemes in my app and I need to handle them. I have already a similar module for iOS, which works fine.
Thanks.
Ok, I finally found the solution. It was so easy... The WebViewProxy.java had to be adjusted a little bit.
#Kroll.proxy(creatableInModule=UIModule.class, propertyAccessors = {
has to be
#Kroll.proxy(creatableInModule=CustomwebviewModule.class, propertyAccessors = {
UIModule.class has to be replaced with the class name of your Module.

Why is IntelliJ not showing the project structure?

Just tried to create a JAR with IntelliJ as always. Now IntelliJ doesn't show the project structure. It looks like this (I can't post an image, because Stackoverlow says I need "at least 10 reputation to post images"):
MyProject.iml
pom.xml
External Libraries
There are no classes or anything, that are the only files shown in tab "Project". Why? Version is 13.1.5
I checked all view options with an older project which does not have this problem after creating a jar, everthing is fine. First time that is occurs for me.
I'm using version 12.1.4
You can create a new project File -> Import Module -> and importing the older project.
Import Project also works as well.

Cannot get module to work in Titanium Alloy JS

I've tried to add the TiSocial.Framework module into Titanium Alloy, and after reading several guides and questions, I still can't get it to work. What am I doing wrong?
Here are the steps I took:
Copied the unzipped module files into modules/iphone/TiSocial.Framework-master
Edited the TiApp.xml file with: <module platform="iphone">TiSocial.Framework-master</module>
Cleaned the build tried to run the app.
But I get the following error(s):
Could not find Titanium module id=TiSocial.Framework-master
version=latest platform=iphone deploy-type=development
Could not find all required Titanium Modules: id: TiSocial.Framework-master version:
latest platform: iphone deploy-type: development
I can't spot where I'm going wrong, in my TiApp.xml Overview screen, I the module appears to be installed just fine (see picture):
My addition to TiApp.xml looks like this:
<modules>
<module platform="iphone">TiSocial.Framework-master</module>
</modules>
I also tried doing the same as above but changing the name of the module, to dk.napp.social, because in the README on their GitHub account, it says to reference that in the TiApp.xml. So I tried that but it still didn't work.
TiSocial.Framework-master is not the name of the module, also you are not supposed to unzip the entire module plus souurce code and documentation into your modules/ folder, you ONLY want the compiled module binary.
Instead do this:
Inside Titanium Studio goto "Help->Install Mobile Module"
Enter this url: https://github.com/viezel/TiSocial.Framework/blob/master/dist/dk.napp.social-iphone-1.7.3.zip?raw=true
Choose your project, hit ok, and it should be installed now.

How do you install a Appcelerator Titanium Module in OSX

I cannot find any instructions on how to install modules into Titanium
I have downloaded a trial version of the TVOut module from the Appcelerator webpage
https://developer.appcelerator.com/package/28/tv-out/media
however it doesn't say how to install this into Titanium?
I know it needs to end up in /Library/Application Support/Titanium/Modules but just unzipping into this location is not enough.
What is the command line script which I can run on the zip which will allow me to use it?
thx
here are the guides. if you build your module successfully you need to put the zip in root/Library/Application Support/titanium/. (not /users/name/Library/..). you need to add the module within your tiapp.xml like that
....
<modules>
<module version="0.1">nameOfYourModule</module>
</modules>
</ti:app>
now the titanium preprocessor should build your module while building your project.
EDIT - In Titanium Studio, just go to Help > Install Mobile Module...
This brings up a dialog that lets you browse your filesystem for the module file. Find the zip file inside the downloaded module folder ( example: ti.imagefactory-iphone-1.1.1.zip ) and it should work magically.
This is the most up to date guide for using and installing modules:
http://docs.appcelerator.com/titanium/latest/#!/guide/Using_a_Module
You can also read complete instructions here:
https://wiki.appcelerator.org/display/tis/Using+Titanium+Modules