Build hangs in Tizen IDE 2.4 - javascript

I am using Samsung Tizen IDE 2.4.0 Rev5 for building Apps for Samsung Tizen TV(emulator - version 2.4).
I created an App which plays video using HTML5 player.
I want to use video.js along with the HTML5 player for playing the videos. So I took it from:
https://github.com/videojs/video.js/releases (Version 5.10.1)
The issue which I am facing is that when I build the project, it (the build) hangs when it tries to build video.js. This happens every time. However, if I use video.min.js (which I believe is the obfuscated version of the same file) instead of video.js, I do not see any such build issue and I am able to run the project.
The tizen SDK is build on top on eclipse, so I checked the following question:
Eclipse building workspace hangs after importing existing maven project because of JavaScript validation
Where similar issue was faced and the solution was to disable javascript validation. However I checked my project files and javascript validation was anyway not enabled.

This could be an issue with R5. We have a product which builds fine with R3 & R4. When we upgraded to R5, the build would hang because of the size of our 'browswerified' client library file. When we rolled back to R4, the project built again. Samsung support has privately confirmed to me that they can reproduce the issue with our project.
I would encourage you to log a 'Q&A 1:1' through the Seller Office (http://seller.samsungapps.com/tv/portal/main).

Related

com.android.bundle.errors.EvalIssueException: The android Grandle plugin only kotlin-android extension Grandle plugin version

We have developed an application with react native expo and when we upload the application to the google store the application freezes and does not run. After some research we tried to run our application with Android studio and we get the following error
“com.android.bundle.errors.EvalIssueException: The android Grandle plugin only kotlin-android extension Grandle plugin version. The following dependencies do not satisfy the required verssion:
Project ‘:expo’ -> org.jetbrain.kotlin:kotlin-grandle-plugin:1.6.10
”
The error is most probably occurred because the application is using expo and does not build react native in a native environment. Does any body know how we can solve this problem. Should we change from react native expo to bare react native?
We uploaded successfully the application to the google store and after we download it to our mobile phone, the application did not load and freezed in a white screen. Also the application does not run with android studio and we can not fix this problem.

Phonegap build final apk file locally without phonegap build website

I use Phonegap CLI to make my android apps every thing works fine, but when I want to make my final .apk I face a problem
I have SDK JDK Java and all environment variables
I generated my .keystore and when i run phonegap build --release i have no error my problem is this
there is no folder called bin or any .apk file in my folder
I red all documents and questions from stackoverflow and I still have this problem
what do you think? should i switch to cordova CLI ?
PhoneGap has been discontinued.
Switching to Cordova CLI is certainly an option, but many find that installing the build toolchain is a lot of trouble to get working (and keep working).
If you prefer the convenience of a build service like you had with PhoneGap, have a look at VoltBuilder, Ionic or Monaca.

how to generate apk or ios file of React Native project

I am building a RN project with "create-react-native-app" and "Expo". So how it is possible to run on Android & Ios device? How i can generate APK file? I am using sublime text 3 for writing code.
If you don't mind opening your app through the Expo app on real devices, all you need is to publish it onto the Expo ecosystem. Read more about publishing.
If you do mind that extra step and want to go the normal way, you need to create a standalone app for distribution:
When you’re ready to distribute your app to end-users, you can create
a standalone app binary (an ipa or apk file) and put it in the iOS App
Store and the Google Play Store. See the full guide to building a
standalone app.
Source

Maintaining code base for Android/iOS Hybrid Applications

I am planning to develop hybrid application for Android and iOS using Angular,Phonegap etc.
My main query is how to maintain single code base for iOS/Android?
Q1:I execute cordova create command to create project for Android. and write one Hello World App.Do I need to do create project again in iOS and copy www?
Q2: How about maintaining single code in git ? I am confused since folder structure are different for Android and iOS ?
Any help is appreciated.
I have searched many blogs but didn't find the this concepts.
Just develop your code under project/www
cordova platform add android
cordova platform add ios
Will create both platforms, and with cordova prepare, and cordova build, it will copy the files to each platform
To maintain code, just add your project into a GIT, and both platforms project/platforms/[IOS/android] will be in the same project. You can also gitignore the platforms if you want to maintain light your project

Google Play reject Cordova application 'cause contains security vulnerabilities for users

I developed an application on Apache Cordova, I followed all the steps to generate the .apk to upload on Google Play. I tried many times but Google's response is the same:
We rejected APP, package ID com.xxx.app, for violating our dangerous products policy. If you submitted an update, the previous version of
your app is still available on Google Play. This app uses software
that contains security vulnerabilities for users. Below is the list of
vulnerabilities and the corresponding APK versions that were detected
in your recent submission. Please upgrade your app(s) as soon as
possible and increment the version number of the upgraded APK.
Vulnerability Apache Cordova: The vulnerabilities were fixed in Apache Cordova v.3.5.1.
I have the latest version of Cordova (5.4.1).
The following will detail the steps that I followed for installation and project development:
Start the download of Cordova from the console Node.js using the command npm install -g Cordova.
Install Java: version 1.8.0_65.
Install Android SDK.
Add Java and SDK to PATH.
I downloaded the necessary components of the Android SDK.
Create the project through the commands. (Cordova create Projectxxxx).
Add the Android platform.
I copied my application code in the www folder.
Add the plugins needed for my project: splashscreen and sqlite.
I tested the application on the Android emulator and other mobile phones. All good. Runs perfect.
To create the signed APK file, these are the steps:
-Cordova build --release android. (This generated the android-release-unsigned.apk on platforms / android / build / outputs
/ apk).
-Then, I generated the keystore.
-After the jarsigner.
-Finally: zipalign.
I upload end-app.apk to Google Play.
Another detail that I have is that cordova.js generated version is 4.1.1. But the console version is 5.4.1 (Command: Cordova -version).
I did everything by node.js console.
Attemps:
I uploaded an APK without js components. Only with cordova.js and it not worked.
I installed all over again in a newly installed windows and neither worked.
My version is higher than 3.5.1. I can not find the solution.
The big problem is not just that PLATFORM_VERSION_BUILD_LABEL is wrong, but the default cordova used is ancient ( it was 3.7.1 on mine ). To resolve this you need to install a newer version in the project. You can specify this on the command line, much like npm does.
cordova platform update android#4.1.1
Or you can specify it in your config.xml
<engine name="android" version="4.1.1" />
That may need 'spec' instead of 'version' depending on how current you cordova install is. At this point, they are up to 5.1, and you can use 'latest' instead of a specific version number.
The next headache will be the point of the patch, which locks down network access. I am now getting 404 errors on all my ajax calls to our server. Access was the root of the security problem, so this isn't a big surprise. I am still working on that.
I had the same problem, I found a previous corodva version in a plugin, in my case was facebook connect; I deleted this plugin and upload again, its work form me. You may search PLATFORM_VERSION_BUILD_LABEL in your project, is posible that some plugin have other cordova version.
I was trying to solve this problem almost for a week. Solution:
There was a cordova.js file within www/lib/cordova folder that doesn't get updated when you update cordova and ionic. Open the file and look for var PLATFORM_VERSION_BUILD_LABEL. If the version is not 4.1.1 at the time of this post, update it with another copy of the file that is somewhere in your main directory.

Categories

Resources