Commit Graph

663 Commits

Author SHA1 Message Date
Watson
ebc11886ef generate object file from Ruby code directly 2014-06-27 09:46:32 +09:00
Ignacio Piantanida
db4b3b6020 [spec] Add spec helpers subdirs to #spec_files.
Signed-off-by: Eloy Durán <eloy.de.enige@gmail.com>
2014-06-24 14:56:35 +02:00
Laurent Sansonetti
6d662e4d21 re-generate classes.dex if one of the vendored jar is newer 2014-06-11 00:28:59 +02:00
Watson
9bfb8f4ef7 [iOS8] add "device_name" parameter
Usage:
	$ rake device_name="iPad Air"

We can use the following device name for iOS 8 simulator.
	"iPhone 4s"
	"iPhone 5"
	"iPhone 5s"
	"iPad 2"
	"iPad Retina"
	"iPad Air"
	"Resizable iPhone"
	"Resizable iPad"
2014-06-07 09:30:55 +09:00
Watson
493a06f1d7 [iOS8] fix device family string in order to select device 2014-06-07 09:22:38 +09:00
Watson
d2caa4a5ac accept the lower SDK version in `app.deployment_target' on Yosemite 2014-06-04 10:20:01 +09:00
Watson
1d7886db98 should not drop "10.10" from supported sdk version list
This should allow to use "10.10" sdk on Yosemite
2014-06-04 10:05:46 +09:00
Watson
591a616a68 build an app even if resources and assets directories does exists
This should fix the following error.
Because, now, android samples does not have resources and assets directories.

$ rake device
   Compile ./app/main_activity.rb
    Create ./build/Development-18/lib/armeabi/libpayload.so
    Create ./build/Development-18/lib/armeabi/gdbserver
    Create ./build/Development-18/lib/armeabi/gdb.setup
    Create ./build/Development-18/AndroidManifest.xml
ERROR: resource directory './resources' does not exist
rake aborted!
2014-05-29 05:03:34 -07:00
Laurent Sansonetti
6009476dcd fix build when manifest entries could be nil/empty 2014-05-27 09:57:50 -07:00
Laurent Sansonetti
d2b5ec0bfc fix rake start_avd’ task to honor the avd’ env variable which can be used to override the default AVD configuration that should be used 2014-05-27 09:56:35 -07:00
Laurent Sansonetti
bbe51897e7 add app.version_name, app.version_code, and app.version(code, name) to specify app versioning when generating the manifest file 2014-05-20 12:01:08 +02:00
Laurent Sansonetti
274b13770e move app.version from config to xcodeconfig 2014-05-20 12:01:08 +02:00
Laurent Sansonetti
66f4c8cff8 add `rake release’ task which creates an apk build suitable for play store submissions, fix build to use a distinct directory for development/release build objects 2014-05-19 16:30:29 +02:00
Laurent Sansonetti
8e8201c519 add app.release_keystore(path, alias_name) method to set up the code signing for release builds (play store) 2014-05-19 16:28:07 +02:00
Laurent Sansonetti
51cd103453 move versionized_build_dir from config to xcodeconfig 2014-05-19 16:27:14 +02:00
Laurent Sansonetti
4549026078 damnit 2014-05-19 10:52:11 +02:00
Laurent Sansonetti
e89343c126 fix a bug where the ‘class_path’ local variable was shadowed 2014-05-19 10:47:22 +02:00
Laurent Sansonetti
ea4a041b8f read extra packages paths from the manifest files, rebuild the R.java files if *any* resource file is newer than them 2014-05-19 10:41:21 +02:00
Laurent Sansonetti
04d11e1c99 fix app.vendor_project to accept a manifest’ key/value pair (when resources’ is provided), generate R.java files for the project’s resources + libraries’ resources 2014-05-19 10:22:05 +02:00
Laurent Sansonetti
1949f57c58 remove app.manifest_metadata, add app.manifest_entry() which can be used to provide any element at either the top-level element or ‘application’ 2014-05-19 10:18:50 +02:00
Laurent Sansonetti
16ab93948d fix code when called within the class 2014-05-19 00:20:34 +02:00
Laurent Sansonetti
8b06cc055b add app.logs_components which can be used to customize the components we will be logging messages from in the development terminal 2014-05-19 00:20:34 +02:00
Laurent Sansonetti
e67a6e4123 introduce app.vendor_project which receives a hash (mandatory, :jar key/value, optional, :resources key/value), fix build system to include 3rd-party resources directories into the apk 2014-05-19 00:20:34 +02:00
Laurent Sansonetti
1e235c909e add app.manifest_metadata which can be used to provide <meta-data …> elements to the AndroidManifest.xml file 2014-05-19 00:20:34 +02:00
Laurent Sansonetti
8bf34a724a add app.icon which must contain the name of an icon file in resources/drawable 2014-05-19 00:20:34 +02:00
Laurent Sansonetti
c629a10ddf app.resources_dirs are now used for android resources, introduce app.assets_dirs to store raw assets (and it defaults to the ‘assets’ project directory) 2014-05-19 00:20:34 +02:00
Laurent Sansonetti
3426b6cfba support for 3rd-party android libraries: the build system will vendor all .jar files that are inside the ‘vendor’ sub-directory, and also generate .bridgesupport metadata for them 2014-05-15 20:04:17 +02:00
Laurent Sansonetti
10499593c4 move the `rake clear’ logic to platform-specific config files 2014-05-15 20:04:17 +02:00
Laurent Sansonetti
656af65680 move #vendor_project to xcode config, since it won’t work on android 2014-05-15 20:04:17 +02:00
Laurent Sansonetti
92f1fdefd0 log informational messages from dalvikvm 2014-05-13 16:22:51 +02:00
Laurent Sansonetti
e146102969 force a rebuild of .rb files if the kernel bitcode changed 2014-05-11 00:40:21 +08:00
Eloy Durán
3a45e058c6 [builder] Quote framework search paths to guard against spaces. 2014-05-08 19:39:43 +02:00
Eloy Durán
1179ac6373 [builder] Do not try to compile completely empty .strings files.
Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-483
2014-05-01 12:52:17 +02:00
Laurent Sansonetti
c2da1b0c89 re-create the payload library if the librubymotion-static.a archive changed 2014-04-27 23:47:46 +02:00
Laurent Sansonetti
4675a36840 fix typo 2014-04-27 17:41:02 +02:00
Laurent Sansonetti
59d23e6217 better fix for when we need to rebuild classes.dex if a .class file changed 2014-04-27 16:26:30 +02:00
Laurent Sansonetti
8c43ad838e don’t print when creating java files, to not confuse the user with how rubymotion works 2014-04-27 16:25:55 +02:00
Laurent Sansonetti
aeba249d76 on-demand build for classes.dex, AndroidManifest.xml, apk file 2014-04-27 16:16:58 +02:00
Laurent Sansonetti
5451197a33 create the debug keystore regardless if we have to create the apk file 2014-04-27 16:07:36 +02:00
Laurent Sansonetti
0688166578 on demand build for ruby bit code, payload library, java/class files (+ remove old java/class files that are not referred in the class map anymore) 2014-04-27 16:03:51 +02:00
Laurent Sansonetti
fc4785d58c follow java map generation change 2014-04-26 14:08:25 +02:00
Laurent Sansonetti
9a3f14022c support for Java interfaces when generating the Java description of Ruby classes 2014-04-25 15:32:12 +02:00
Laurent Sansonetti
ec7abfe3f3 add .gitignore android project file 2014-04-24 13:50:29 +02:00
Laurent Sansonetti
836f6bc0ab `motion create —template=android’ now creates an empty MainActivity class 2014-04-24 13:48:43 +02:00
Laurent Sansonetti
737f50d95b log chromium messages (useful to debug apps using webkit) 2014-04-21 19:14:58 +02:00
Laurent Sansonetti
03b12ab6e1 resource directories are now considered “assets” and not Android resources (which are apparently a completely different beast) 2014-04-21 19:14:23 +02:00
Eloy Durán
2c32806de1 [builder] Also compile .strings files inside other bundles. 2014-04-17 16:23:55 +02:00
Hwee-Boon Yar
165f30fd45 [builder] Compile .strings resource files as binary plists.
Signed-off-by: Eloy Durán <eloy.de.enige@gmail.com>
2014-04-17 16:23:55 +02:00
Laurent Sansonetti
a192545b12 log errors from AndroidRuntime (ex. app crashing due to an uncaught exception) 2014-04-16 14:12:47 +02:00
Laurent Sansonetti
cf46459c2e clean up local references created by the ruby source init functions 2014-04-16 13:08:35 +02:00