TheCocoaProject / cordova-plugin-nativestorage

Cordova plugin: Native storage of variables in Android, iOS and Windows
http://thecocoaproject.github.io/
Apache License 2.0
292 stars 106 forks source link

Newest source fails build in my environment #107

Closed korsgaard closed 6 years ago

korsgaard commented 6 years ago

Worked fine last week... (and still does with my fork...)

Plugins/cordova-plugin-nativestorage/NativeStorage.m:45:8: warning: incompatible pointer to integer conversion initializing 'BOOL' (aka 'signed char') with an expression of type 'id' [-Wint-conversion]
                BOOL aBoolean = [command.arguments objectAtIndex:1];
                     ^          ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Plugins/cordova-plugin-nativestorage/NativeStorage.m:214:32: error: expected expression
                if(reference!=nil && (NsNull*) aString == [NsNull null]) {
                                             ^
Plugins/cordova-plugin-nativestorage/NativeStorage.m:214:25: error: use of undeclared identifier 'NsNull'
                if(reference!=nil && (NsNull*) aString == [NsNull null]) {
                                      ^
Plugins/cordova-plugin-nativestorage/NativeStorage.m:223:3: error: expected expression
                else
                ^
Plugins/cordova-plugin-nativestorage/NativeStorage.m:228:3: error: expected expression
        }];
         ^
Plugins/cordova-plugin-nativestorage/NativeStorage.m:266:5: error: expected ']'
@end
    ^
Plugins/cordova-plugin-nativestorage/NativeStorage.m:266:5: error: expected '}'
Plugins/cordova-plugin-nativestorage/NativeStorage.m:208:1: note: to match this '{'
{
korsgaard commented 6 years ago

Seem to have to go back to 2.2.1 to have a successful build... otherwise the build fails or the ap starts with a white screen...

alokrajiv commented 6 years ago

cc @GillesC

alokrajiv commented 6 years ago

@mbkinnovo are you building from GitHub master? because we haven't updated NPM for sometime now.

korsgaard commented 6 years ago

Yeah, did build from the newest github.

alokrajiv commented 6 years ago

@GillesC our master is then unstable... In the meantime, @mbkinnovo you should try building from npm then.

alokrajiv commented 6 years ago

Hi, is anyone else facing issue? Looks to me the master is actually stable..no other reported errors.

ealch commented 6 years ago

Still not working, I think that you messed up in this commit. Since you mistyped 'NsNull' and you opened two times the clauses.

korsgaard commented 6 years ago

Thank you @ealch - I've created pull request #109 fixing this...!

GillesC commented 6 years ago

Merged your PR (aff0b51cf06924d34c67425788f06c460ba3859d) thank you for your contribution! I will close this issue now :)

alokrajiv commented 6 years ago

Sorry about the mess up :(

thanks, @ealch & @mbkinnovo 👍 👍 👍 ... dunno how it was missed.

.... I really need to automate those tests onto Travis #126

.... will squeeze in sometime in the coming weeks and get it up...so this never happens again