I downloaded the examples shown in Sencha Docs, e.g. http://docs.sencha.com/touch/2-1/#!/example/maps, and installed Architect on my Windows computer.
I want to modify the examples shown here: http://dev.sencha.com/deploy/touch/examples/production/index.html
inside Architect but the program is asking for an .xds or .xda file. How do I generate this file type so I can use a WYSIWYG editor.
The application you are trying to import is a Sencha Touch project (not an Architect one), so there's no way to import it.
Related
I downloaded the google project from git repo link: https://github.com/googlesamples/androidtv-sample-inputs. But I am unable to find the understanding of module for the below-mentioned layout. I need to create channel and EPG view exactly same as the below-mentioned diagram, using the android lean-back library and TV Input framework concepts. So, kindly provide me with the understanding of the project as where I can find the working of this module.
The guide you see here is part of a reference TV App aka Live Channels which is a system app and ships with every Android TV system image. It is open-sourced under Apache 2.0 and you can check out the details and source code here:
https://source.android.com/devices/tv/reference-tv-app
https://android.googlesource.com/platform/packages/apps/TV/
It uses a different build system than Gradle but you should be able to refactor it to use Gradle.
EDIT: A nice alternative TV guide for Android TV recently appeared on GitHub here: https://github.com/egeniq/android-tv-program-guide
From Symfony or Drupal, I used to use the shell for generate templates empty files (pages, entity, ...)
I'm a new react native developer, its really useful to have a console for generate some projects files.
I make several google search but I find nothing..
Basically you can not do this for react native. What you can do is use an editor like WebStorm and add some codes snippets and custom live templates. There is a great tutorial here.
I have created a react-native app using expo. Now I am looking for share-extension to the app to import CSV data from email attachment to my app.
I have tried npm package but that does not work for me(I was not able to build my project with that npm package in Xcode)
I think react-native or expo does not have any share API
In this picture, you can see how he got the option to import data into the app.
I understand that without share extension API, I think react-native and Expo both are useless because you can create the app but you don't expand it.
Looking for the solution or any other alternate solution.
I'm afraid this is not possible with expo.
First of all, are you looking for a way to create your own extension, or do you just want your app to be in the "open with list" that you have in the screenshot on the right? (Sharing and "open with" are two distinct things.)
If you just want your app to be listed in the standard "open with list", you do not need to use github.com/alinz/react-native-share-extension since it serves a different purpose. To quote the repo:
This is a helper module which brings react native as an engine to drive share extension for your app.
So with the package you can use react native to create your own share extension
To get your app into the "open with list", you need to go to target settings and change it according to the screenshot (example for MS word). Read more about it here. However, I'm afraid you won't be able to do this with expo without ejecting.
How to get the url of the file in react-native? You need to make sure that libRCTLinking.a is in the Link Binary with Libraries in Xcode (it'll probably be there already). And then you can follow the docs and call Linking.getInitialURL to get the file url. Then it really depends on what you want to do with the file. If you need something complicated, you'll likely need to write native code. If you just want to upload the file to some server, then you can make use of blob support that was added to RN 0.54 in this commit. An example of how to use the blob support is here.
I have a Sencha Application which contains Models, Controllers, Views etc. I need to minify all models, views, controllers, app Javascript file into a single JavaScript file. Any recommendation of tools on a Mac.
Sencha Cmd has an inbuilt function for this. Open up your command prompt, change into the root directory of your project and run:
sencha app build production
And it will generate a minified version of your app in YourApp/build/production/YourApp.
The answer is indeed sencha app build production
For a step by step here is an excellent blog post from Sencha
http://www.sencha.com/blog/getting-started-with-sencha-touch-2-build-a-weather-utility-app-part-1/
Its a three part blog post, you'll have fun following it, and in the third part it does make a build for production.
Here is a demo of how fast loads when is production build.
http://prosp-anonym111.rhcloud.com/simulador/build/production/reestructura/index.html
best regards
I have developed two applications using ExtJS and Sencha Touch. I would like to minify the JavaScript code and create a single js file for all classes used in the applications (separately, I am trying to minify the code and not to build. My task doesn't depend on ExtJS or Sencha Touch).
I used sencha cmd verions 4 to do. It am facing some issues with both ExtJS and Sencha Touch application.
In ExtJS, It is not taking all the classes for minifying and creating a single js file. It is taking the classes which are mentioned in required method. If I want to minify the all the javascript classes, I will have to include all the classes in require method in app.js. This is not fair.
I used the following command. It is not giving any error
sencha -sdk <path-to-sdk> compile --classpath=<classpath> page -in index.html -out build/index.html -yui
In Sencha Touch, It is targetting for mobile environment (eg: Andriod, iPhone, windows, etc.). I am trying to compile and minify and not to package application.
Please let me know how to do.
This is working as intended. Sencha build process looks for dependencies (via require) and loads them accordingly, getting you the smallest build necessary. Good practice is to always set your requires.
To get around this, if you really want to just include all classes, you can add standalone requires to the top of the app. Since Ext.Loader can accept wildcards, you can just do Ext.require('App.model.*') and it will load all the individual model files, for example.