This is a migrated thread and some comments may be shown as answers.

The diffrence with Build and Publish Build

5 Answers 51 Views
General Discussion
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Yonggu Kang
Top achievements
Rank 1
Iron
Yonggu Kang asked on 06 Aug 2013, 11:53 AM
Hi, Icenium,

I've deployed one App in google play on last march with graphite without problem.
To upgrade at this time, after I changed some source and tried on simulator, it works fine.
To test on real device,Android 4.x, I build and copy .apk on device and that also works well.
However when I build for publish after signing and upload in google play, app does not work at all.
To check what is diffrent between build and publish build .apk, I copied one by one to real device
and found build one is working fine but publish build one is not working.
What is the difference and what am I missing ?

First screen trys to connect server via ajax to get some basic data and shows login page,
but it looks like kendo style never applied and only shows default textbox as I saw it usually
when debugging such as I made some error in my code in javascript.

I suspect cordova and kendo.mobile.min.js version because I upgraded that into as cordova 2.7 and kendo new version,
but result is same even though I revert those into original verison,cordova 2.2 and keno at that time.

When I first load app in google play,  I did 2 upgrades without problem,
however at this time,though spend 2 days to conclude publish build has problem,I'm still stuck.
Your kind advice would be highly appreciated.

Thank you in advance.

Kang



5 Answers, 1 is accepted

Sort by
0
Yonggu Kang
Top achievements
Rank 1
Iron
answered on 07 Aug 2013, 07:08 AM
I can narrow down the problem.
When build setting 'release' mode, kendo .css looks not applied at real device
regardless of build or publish build.
Of course,  always working fine in graphite emulator and as well on real device if .apk build in debug mode.
So I found another thread here to confirm if .css file is well located to add some .css showing
red box when loading first view.  I added that .css in my main.css and it shows big red box but kendo
is still not applied , and I'm sure kendo .css has right path.

I created new project and adds all files to maintain brand new jquery and kendo version
as well as update require.js into the most current version,but no success.

Follwoing is head of my index.html, What would be wrong ?
As shown,I'm using require.js. Could that be a problem ?

  <head>
        <title>SYR Mobile</title>
  <meta charset="utf-8" />
        <script src="cordova.js"></script>
  <script>
   require = undefined;
   define = undefined;
  </script>
  <script data-main="scripts/main" src="scripts/libs/require.js"></script>
        <link href="kendo/styles/kendo.mobile.all.min.css" rel="stylesheet" />
        <link href="styles/main.css" rel="stylesheet" />
    </head>
      
    <body>
       
          <div id="logon" data-role="view" data-title="로그인"
              data-before-show="App.ViewModels.Login.beforeShow"
     data-show="App.ViewModels.Login.show"
        data-model="App.ViewModels.Login.Model">
             
            <div data-role="content" style="padding-top:65px;">

             <ul data-role="listview" data-style="inset">                   
     <li>

          -- kind of textbox for userid/password and login buitton goes here.    

        </div>

Follwing is code snippet of main.js.

document.addEventListener("deviceready", onDeviceReady, false);

// PhoneGap is ready
function onDeviceReady() {
}

// create app js shims for require.js.
require.config({
 
    paths: {
        jQuery: "libs/jquery.min",
        kendo:"libs/kendo.mobile.min"
    },
    shim: {
        jQuery :{
            exports: "jQuery"
        },
        kendo:{
            deps: ["jQuery"],
            exports: "kendo"
            }
    }
});

// global object to expose
var App;

require(["app"], function(application) {
    App = application;
 App.init();
});

App.Init creates kendo app as such.

init : function() {
           
            // init main app
            kendoApp = new kendo.mobile.Application(document.body,{transition: "slide",layout: "syr-default"});
  },

Any kind of advice would be highly appreciated.

Kang





0
Accepted
Steve
Telerik team
answered on 09 Aug 2013, 08:53 AM
Hi Kang,

There were some problems with Kendo UI and requirejs up until Q2 2013 release (v2013.2.716), so make sure you upgrade to this version of Kendo UI (see Update the Code Libraries in Your Project).
If you're still having problems after the upgrade, would it be possible to isolate the problem in a really simple app (does not involve credentials etc.) that exhibits the problem and provide steps/instructions what should we observe that is not happening.

Regards,
Steve
Telerik

Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
0
Yonggu Kang
Top achievements
Rank 1
Iron
answered on 10 Aug 2013, 06:19 AM
Hi Steve,

Thank you for your reply I've waited for long time.
That makes me comfortable at least it is not my fault, bcz I spend a week to find what is my fault.
Since my free subscription is terminated,so no project list is displayed and can't work anymore in graphite.
I will upgrade subscription and will try as you advisd and will report the result.

Thank you.

Kang
0
Yonggu Kang
Top achievements
Rank 1
Iron
answered on 12 Aug 2013, 05:12 AM
Hi Steve,

I upgraded my subscription and set basic js into new one,looks to solve all problem.
The relase compile version runs fine on real device,so uploaded in google play.

But because of version problem, it took me several days to settle makes me sigh.

Kang





0
Steve
Telerik team
answered on 12 Aug 2013, 07:10 AM
Hi Kang,

I'm glad that your project works as expected now. Unfortunately it is hard to predict or mark such issues as "known problems" especially when another 3rd party library is involved. Currently there is no automatic upgrade process for Kendo UI versions in Icenium and we upgrade after some acceptance tests on our end. So if you have Kendo UI license available as well, it might be a good idea to upgrade to their latest internal build whenever you encounter a problem, to see whether it has not been resolved already.

Thank you for the patience and understanding!

Regards,
Steve
Telerik

Do you enjoy Icenium? Vote for it as your favorite new product here (use short code H048S).
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
General Discussion
Asked by
Yonggu Kang
Top achievements
Rank 1
Iron
Answers by
Yonggu Kang
Top achievements
Rank 1
Iron
Steve
Telerik team
Share this question
or