Importing Freshplanet ANE - air

I discovered the great Freshplanet ANE repository https://github.com/freshplanet/
I'm trying to get the basic AirAlert to work but I can't work out how to resolve the import.
I build my Adobe AIR iOS app in IntelliJ and already have a couple of ANE successfully working. So what I did,
Copied the AirAlert.ane in my ane folder
Included in my App.xml extensions tag the relevant
com.freshplanet.AirAlert
Added the ane in the Build Configuration of my project so that it has the right dependencies when I build in IntelliJ
But I can't seem to resolve the AirAlert in my code.
I tried with no luck.
import AirAlert;
import com.freshplanet.AirAlert
Am I missing something here?
Thanks!

Fixed! After adding the ANE to all the build configurations under my Module Settings in IntelliJ.
I have about four different configurations, one for deploying to the emulator, one for the device etc and I had only added the ANE to the one deploying to the device as that was where I was interested in testing it.
But after I added it to all the other ones, I could resolve
import com.freshplanet.ane.AirAlert.AirAlert;
Hope this helps someone!

Related

Why cannot find declaration to go to in IntelliJ Idea?

I have a code in go, and I am using IntelliJIdea for development. It used to work fine, but since the time I have changed the folder where the code used to be, IntelliJ has been behaving in a weird manner. It shows me a lot of unable to find declaration to go to errors. After changing the folder where my project used to be, I changed the GOPATH and imported from the new directory once again.
I am attaching the screenshot as that will be better for understanding.
See the conductor.Start(). This function is right there in the package app. But it can't find this.
PS: I have tried importing the project from scratch and invalidating and restarting multiple times, but that didn't help.
I'm using Gogland, which is also a JetBrains IDE, but I also had a problem with symbols not getting resolved.
I fixed it by deleting the project's index file.
Close the IDE.
In your project directory, find a directory named ".idea".
Delete all files with the extension ".iml" in that directory.
Restart the IDE.
The project should get reindexed and symbols will be resolved.
https://www.jetbrains.org/intellij/sdk/docs/basics/project_structure.html?search=.iml
For my case, Intellij didn't have Rust installed. I found that out while trying to create a new project (it had JAVA and other language support). As soon as I installed Rust, it worked.
For my case, I have 2 virtual environments, and I found that I did not set the correct environment in Pycharm. The environment I used did not include these packages. After I changed the environment, everything goes well.

Build ti.barcode failed

This is my first time to build Titanium module. What I am building is the ti.barcode for Android. I grasp the source code from Github and import to Titanium studio. Some build path error is easily corrected by opening build path and just close. There is no error shown on the project.
But when I tried to package it, I always get error message:
Launching build and packaging failed
Build failed. Unable to locate generated zip file at /Users/ymlan/Code/ti.barcode-android-2.3.5/dist/ti.barcode-android-2.3.5.zip
I use JDK 1.8 , SDK 5.2.2GA , it seems to be some configuration error, but I can not figure it out after hours of googling. Since I request your keens help here.
Thanks in advance for your help.
Cliff
Maybe it's related to https://jira.appcelerator.org/browse/AC-3806.
It gives me the same error with a new module too.
I had a similar issue. After two days of hell, I have found the cause of my problem! In my workspace root there was an old tiapp.xml (I do not know how it got there...). After removing it, I managed to make the build of the modules, both from Appcelerator Studio that from the CLI.
Try to see if you also have a tiapp.xml or timodule.xml file in the root of the workspace.
Maybe this one might help you
https://github.com/acktie/Acktie-Mobile-Android-Barcode
Or is it definitely required to use Ti.barcode ?

Worklight 6.2: Reference Error: WLJQ is not defined

My project was working fine before. After I added a few css files and js files from the other project, the preview as common resource or mobilesimulator produced this error. I have tried the suggested methods in this discussion thread (remove the folders in the temp dir, clean the project and reboot). But still could not fix it. Anything special in Worklight 6.2? Thanks.
IBM Worklight 6.1 - Uncaught ReferenceErrors: WLJQ is not defined, WL is not defined
Fang
I had this problem and after working on a app for a while and then closing down eclipse. On restart I'd often get this problem when working in the browser. I'd delete the $TMPDIR/wl* folders but with no luck.
I had a tip given to me this weekend which seems to work.
Right click on the common folder within your app in WL Studio and Click Run As > Preview.
It seems if you do this at least once it resolves the problem. Not sure why it works, but it works for me and is much quicker than exporting the project and importing it into another workspace... which also works.
Try to export and re-import the project into a new workspace. I had this issue once, and this helped.
IBM Worklight 6.1 - Uncaught ReferenceErrors: WLJQ is not defined, WL is not defined

Cordova 2.1.0 not getting included in the project after install

I am creating an IOS app with cordova 2.1.0.
I installed cordova 2.1.0, by following the steps mentioned in http://docs.phonegap.com/en/2.1.0/guide_getting-started_ios_index.md.html#Getting%20Started%20with%20iO
Now i made changes to files like AppDelegate.m, AppDelegate.h, etc. and www folder. When i see the physical folder structure in the project, the CordovaLib.xcodeproj does'nt get included in the project. Why is this happening? Why is it not getting included in the project. Every user will not download cordova and follow the steps.
Any help will be appreciated.
Thanks.
What do you mean by "user will not download". The developer (you) have to downlod it nd create the app. Cordova is packaged within your *.ip file.
If the cordov project is not oincluded, you will be unabvle to build. If you cn build it, it is included.
If you don't want to handle the complete xcode project stuff, use build.phonegap.com

Appcelerator Titanium Module - Verification issue, unlicensed module(s)

I had found a module in the appcelerator marketplace to allow for the rotate gesture called gesture recogniser but unfortunately it's now been removed when i went to purchase but it looks like the developer has also released the module as a 'skeleton' version on github here:
https://github.com/atsusy/Gesture-Recognizer
Now i followed the instructions on the readme file and built the project which created the module for me, when putting this into an app though i get the following error message and red screen:
Verification issue
Unlicensed module(s) detected.
You must be a subscriber to use one or more of the modules included with this project
Is there something i have missed to get this and how to i go about resolving the issue? Sorry i have no clue when it comes to github and modules so apologies if i am trying to use this in my app when i shouldn't but if anyone can help explain how and if i am allowed to get this working?
p.s the original link for the marketplace link that is now not found is: https://marketplace.appcelerator.com/http-status/?1894758329
You need to follow steps as follows:
Open Terminal and run “uuidgen”
Copy the code you see on the terminal
Open tiapp.xml, replace what’s in the “guid” tag with the the code you copied.
In Titanium Studio, do Project –> Clean
Run
Concept is to change GUID of module which is mentioned in manifest.
If you have the source code, just go the the manifest file, change the guid in the manifest to a new one, and build the module again. Probably better to increase the version and include it in your project again. Clean and build and it will work.
I guess the Titanium studio checks if you have licence for the modules you use. In case a module is on the marketplace with the same guid and you have no licence for that, it triggers it as unlicensed module.