Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-07-05 Thread Dennis Rogers
Thanks! On Friday, July 2, 2021 at 9:07:53 AM UTC-4 Steve Hannah wrote: > Looks like there is a bug right now in the maven plugin regarding where it > generates the IOS native interfaces. > > It seems to be generating them in src/main/objectivec (i.e. in the "src" > directory of the root

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-07-02 Thread Steve Hannah
Looks like there is a bug right now in the maven plugin regarding where it generates the IOS native interfaces. It seems to be generating them in src/main/objectivec (i.e. in the "src" directory of the root project). They should be generated in ios/src/main/objectivec. (i.e. inside the ios

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-07-01 Thread Shai Almog
They don't have the right name. I'm checking. On Thursday, July 1, 2021 at 7:14:31 AM UTC+3 a2nd...@gmail.com wrote: > The files appear to be here: > > src/main/objectivec/com_symdesign_shoppinggenie_MyNativeImpl.h > src/main/objectivec/com_symdesign_shoppinggenie_MyNativeImpl.m > > On

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-30 Thread Dennis Rogers
The files appear to be here: src/main/objectivec/com_symdesign_shoppinggenie_MyNativeImpl.h src/main/objectivec/com_symdesign_shoppinggenie_MyNativeImpl.m On Wednesday, June 30, 2021 at 10:05:05 PM UTC-4 Shai Almog wrote: > In iOS it generates >

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-30 Thread Shai Almog
In iOS it generates native_com_symdesign_shoppinggenie_MyNativeImplCodenameOne.m and native_com_symdesign_shoppinggenie_MyNativeImplCodenameOne.h Which you need to edit. For some reason it seems native_com_symdesign_shoppinggenie_MyNativeImplCodenameOne.h is missing. Do you have any idea why?

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-28 Thread Dennis Rogers
The file MyNative.java I created. I assume it was used to create the MyNativeImpl.java. I see that file is in three places: android/target/classes/com/symdesign/shoppinggenie/MyNativeImpl.java android/src/main/java/com/symdesign/shoppinggenie/MyNativeImpl.java

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-27 Thread Shai Almog
Not common. Under the android hierarchy you should have a file with the name MyNativeImpl.java On Sunday, June 27, 2021 at 6:23:28 AM UTC+3 a2nd...@gmail.com wrote: > I'm not quite sure what you mean by the "Android native" file. The file > with my NativeInterface interface code is in >

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-26 Thread Dennis Rogers
I'm not quite sure what you mean by the "Android native" file. The file with my NativeInterface interface code is in "common/src/main/java/com/symdesigns/shoppinggenie/MyNative.java. The cn1.pluging.version is 7.0.26 . On Saturday, June 26, 2021 at 9:47:06 PM UTC-4 Shai Almog wrote: > Just the

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-26 Thread Shai Almog
Just the Android version is enough. If the Android native file there? Under which directory from project root? What's the cn1.plugin.version in the pom.xml? On Sunday, June 27, 2021 at 1:21:03 AM UTC+3 a2nd...@gmail.com wrote: > Do you need to add native code for all of the native platforms? At

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-23 Thread Shai Almog
Where's the rest of the error log? Also you didn't implement the native code for each of the native platforms e.g. Android would have its own impl file and so would iOS. Did you look at the How Do I video tutorial for native interfaces? It's pre-maven but should cover all of this. On Thursday,

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-23 Thread Dennis Rogers
I forgot to add the code used to test it: if(cn != null && cn.isSupported()) { rv = cn.doInNative("string"); Log.p(rv); } which returns "Dummy" as expected. --- On Wednesday, June 23, 2021 at 6:15:12 PM UTC-4 Dennis Rogers wrote: > I'm at a loss in trying to do a native

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-23 Thread Dennis Rogers
I'm at a loss in trying to do a native interface. I created the class "MyNative" package com.symdesign.myapp; import com.codename1.system.NativeInterface; public interface MyNative extends NativeInterface { public String doInNative(String hi); } Then I ran the tool "create native interfaces"

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-16 Thread Dennis Rogers
Thanks, but that didn't seem to help. I don't get any errors when building the app. I get these errors when trying to load it onto the phone: $ adb install -i ShoppingGenie-debug.apk Performing Streamed Install adb: failed to install ShoppingGenie-debug.apk: Error: Unable to open file:

Re: [codenameone-discussions] Re: Native interfaces in Intellij

2021-06-16 Thread Steve Hannah
Add the following to the dependences section of your javase/pom.xml file: com.codenameone codenameone-core provided That should fix the issue. (Mind you you haven't shared any error messages so it's hard to say what your specific problem is). Steve On Tue, Jun 15, 2021 at

[codenameone-discussions] Re: Native interfaces in Intellij

2021-06-15 Thread Dennis Rogers
Since I added the generated the native interface I can no longer do cloud builds. Is there a way I can remove the native interface I created for the moment? On Monday, June 14, 2021 at 10:09:56 PM UTC-4 Shai Almog wrote: > That sounds like a bug in the maven project. Let me check. > > On

[codenameone-discussions] Re: Native interfaces in Intellij

2021-06-14 Thread Shai Almog
That sounds like a bug in the maven project. Let me check. On Tuesday, June 15, 2021 at 12:00:09 AM UTC+3 a2nd...@gmail.com wrote: > Sorry but I'm a little confused. I created a file, MyNative.java, in the > common folder along with my other code: > > package com.symdesign.shoppinggenie; > >

[codenameone-discussions] Re: Native interfaces in Intellij

2021-06-14 Thread Dennis Rogers
Sorry but I'm a little confused. I created a file, MyNative.java, in the common folder along with my other code: package com.symdesign.shoppinggenie; import com.codename1.system.NativeInterface; public interface MyNative extends NativeInterface { String helloWorld(String hi); } When I run

[codenameone-discussions] Re: Native interfaces in Intellij

2021-06-13 Thread Shai Almog
On which file? notice that the native side shouldn't include the native interface, it should only be in common. On Monday, June 14, 2021 at 1:08:30 AM UTC+3 a2nd...@gmail.com wrote: > I generated the native interface but when I try to build it, it says it > can't find

[codenameone-discussions] Re: Native interfaces in Intellij

2021-06-13 Thread Dennis Rogers
I generated the native interface but when I try to build it, it says it can't find com.codename1.system.NativeInterface. On Saturday, June 12, 2021 at 9:41:08 PM UTC-4 Shai Almog wrote: > The plugin is only applicable to Ant projects not to maven projects. > For maven Generate Native

[codenameone-discussions] Re: Native interfaces in Intellij

2021-06-12 Thread Shai Almog
The plugin is only applicable to Ant projects not to maven projects. For maven Generate Native Interfaces is one of the run configurations. On Sunday, June 13, 2021 at 12:01:09 AM UTC+3 a2nd...@gmail.com wrote: > I'm trying to create a native interface to access android's >