Thursday, June 30, 2016

PERINGATAN KALAU GUNA cordova-plugin-crosswalk-webview

PERINGATAN KALAU GUNA cordova-plugin-crosswalk-webview


1) Mesti guna cordova-plugin-crosswalk-webview 1.3.1 "Crosswalk WebView Engine". Versi lain ada banyak masalah pada phone X86.
-------------------------------------------------------------------
COMMAND : cordova plugin add cordova-plugin-crosswalk-webview@1.3.1
-------------------------------------------------------------------



2) Guna cordova 4.1.1 pun dah ok. Kalau nak guna versi latest, upgrade apps :
-------------------------------------------------------------------
COMMAND : cordova platform update android
-------------------------------------------------------------------

Kalau nak guna versi lama :
-------------------------------------------------------------------
COMMAND : cordova platform update android@4.1.1
-------------------------------------------------------------------


3) Kalau dah guna cordova versi terbaru, & ada masalah nak compile sebab guna class API bawah 23, refer ini:

-------------------------------------------------------------------
http://stackoverflow.com/questions/31433687/android-gradle-apache-httpclient-does-not-exist
-------------------------------------------------------------------

if you are using target sdk as 23 add below code in your build.gradle

android{
    compileSdkVersion 23
    buildToolsVersion '23.0.1'
    useLibrary  'org.apache.http.legacy'
}
and change your buildscript to

classpath 'com.android.tools.build:gradle:1.3.0'




Saturday, May 21, 2016

Building combined armv7/x86 apk after Crosswalk integration in an Ionic project

http://stackoverflow.com/questions/32535551/building-combined-armv7-x86-apk-after-crosswalk-integration-in-an-ionic-project



----------------------


14
down vote
favorite
6
I have added Crosswalk to my ionic project. When i do ionic build android it outputs two separate APK files, one for armv7 and one for x86.

However i want one single apk file bundling two architectures together.

I tried setting BUILD_MULTIPLE_APKS = false but it's still building two separate apks.

There is a post here saying :

Took me a minute but you can get the single build file by commenting out the cdvBuildMultipleApks=true line in the platforms/android/gradle.properties

Cheers
But i don't have any gradle.properties file in my platforms/android/ folder, i have a project.properties file and there is no cdvBuildMultipleApks=true line in it to comment out.

I tried to manually create a gradle.properties file and putting cdvBuildMultipleApks=false in there but still two outputs.

Any ideas how to achieve this?

Update:

My Cordova version is 5.1.1

Solution:

What did work for me as suggested by @mudasserajaz and here, was to :

Create a file named build-extras.gradle inside my /platform/android/ directory.
put ext.cdvBuildMultipleApks=false inside it.
ionic build android --release then and Voila, it worked.
@mudasserajaz suggested the same thing except variable name is cdvBuildMultipleApks=false so in case it didn't work out for you, don't forget the ext

Wednesday, May 11, 2016

Securing a Cordova Hybrid Mobile App

REF : http://developer.telerik.com/featured/securing-phonegapcordova-hybrid-mobile-app/

 | 

MyGear

MyBlogList I

MyBlogList II

MyBlogList III

  • Salam - Macam dah ada banyak masa nak beramah-mesra dengan makhluk bumi macam dahulu kala. Assalamualaikum semua!
    7 years ago
  • Rahsia Burung Helang - Korang perasan tak, setiap kali kita tengok gambar burung helang ini, mesti gambar dia diambil dari posisi tepi. Bukan dari posisi depan. Perasan tak? Haa....
    8 years ago
  • Salam 2016 - Salam Jumaat untuk semua. Jumaat pertama pada hari pertama untuk tahun 2016 Semoga kita semua terus positif, ceria dan sihat selalu ye
    8 years ago
  • Senai–Desaru Bridge - The tolled expressway is a combination of a four-lane dual carriageway (Senai-Cahaya Baru section) and a two-lane single carriageway (Cahaya Baru-Penawa...
    11 years ago

MyFollowers

MyWishList

  • http://www.bloggerplugins.org
  • CPL/ND8 ---> DONE
  • Tokina 11-16mm ---> DONE
  • LEP4 ---> DONE!
  • ASBMX ---> IN PROGRESS
  • Bali
  • D700
  • Nikkor 70-200f2.8
  • C200

About This Blog

MyFacebookPhotos


  © Blogger template 'Photoblog' by Ourblogtemplates.com 2008

Back to TOP