Comments (3)
The android build its a lot more complex / involved... you need to create a gradle project essentially - there isnt a command line tool to do this that comes with the android SDK (there used to be when it was ant based). So haxeui comes with a tool that does it for you. So copying the templates is kind of what the tool does, but it actually does more like replacing certain things inside the output. My advice would be to use:
haxelib run haxeui-core create android
in a blank folder - if the folder already has contents it may (incorrectly) create another Main.hx - ill have a check to see how "clever" it is at detecting that stuff.
Ian
PS: the focus / blur stuff should be fixed now
from haxeui-android.
heres an example .hxml that is outputted by the haxeui tool, fyi:
-cp src
-main Main
-dce no
-D no-compilation
-lib haxeui-core
-lib haxeui-android
-lib hscript
-java-lib X:\AndroidSDK\platforms\android-21\android.jar
-java build/android/app/src/main/java
-cmd cd build/android
# so this is annoying - hxJava seems to always add "src/" infront of path names
# and thus this is windows specific
-cmd xcopy app\src\main\java\src app\src\main\java /s /e /y
-cmd del app\src\main\java\src\* /q /s
-cmd rmdir app\src\main\java\src /q /s
# this is annoying too - android resources seem to need to be in an assets/ dir, copy them
# css
-cmd xcopy app\src\main\java\*.css app\src\main\assets /s /y /i
-cmd del app\src\main\java\*.css /q /s
# xml
-cmd xcopy app\src\main\java\*.xml app\src\main\assets /s /y /i
-cmd del app\src\main\java\*.xml /q /s
# png
-cmd xcopy app\src\main\java\*.png app\src\main\assets /s /y /i
-cmd del app\src\main\java\*.png /q /s
-cmd gradlew build -x lint
Note that you will need an ANDROID_HOME env var setup (which i think should already setup as part of the SDK)
Finally, to run the .apk, you can use:
call haxelib run haxeui-core run android
call %ANDROID_HOME%/platform-tools/adb logcat System.out:I *:S
from haxeui-android.
from haxeui-android.
Related Issues (1)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from haxeui-android.