Commit Graph

22 Commits

Author SHA1 Message Date
Daniel Martí e8ba5b6aff all: remove a couple of unused parameters
Both from unexported functions, to keep the change low-risk. Found via
unparam.

Signed-off-by: Daniel Martí <mvdan@mvdan.cc>
2019-08-25 22:48:15 +01:00
Elias Naur 6433cb2d88 cmd/gio: change all occurences of *appID with the buildInfo field
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-24 17:44:14 +01:00
Elias Naur 1f918c751e cmd/gio: use package name for iOS binaries
To make it easier to locate the app in the Console app.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-20 11:10:59 +02:00
Elias Naur c52376065e cmd/gio: list available bundle ids when no match was found
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-16 14:24:58 +02:00
Elias Naur 9d9051d468 cmd/gio: provide DT* fields in iOS Info.plists
Required by App Store.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-16 13:50:55 +02:00
Elias Naur 6007a8c90e cmd/gio: specify CFBundleSupportedPlatforms in iOS ipa bundles
Required by App Store.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-16 12:53:09 +02:00
Elias Naur c4e46e0348 cmd/gio: add support for iOS App Store icons
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-16 12:32:53 +02:00
Elias Naur 50599bc65d cmd/gio: support app icons
If there is an appicon.png file in the main package the gio tool
will use it for Android and iOS apps in buildmode exe.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-16 12:08:44 +02:00
Elias Naur 2440e1880e cmd/gio: specify UISupportedInterfaceOrientations
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-15 09:43:31 +02:00
Elias Naur b10175b233 cmd/gio: add -version flag
For Android and iOS.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-14 17:09:44 +02:00
Elias Naur 105d094030 cmd/gio: drop appDir function
It's not worth its weight.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-14 17:02:36 +02:00
Elias Naur 632e4e3ae6 cmd/gio: specify UIDeviceFamily
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-14 16:52:58 +02:00
Elias Naur ed0bbe9dd2 cmd/gio: filter out unsupported architectures, specify MinimumOSVersion
For the App Store.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-14 16:43:44 +02:00
Elias Naur 5ac1b6ea3c cmd/gio: set DTPlatformName, DTPlatformVersion, UIRequiredDeviceCapabilities
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-14 14:59:27 +02:00
Elias Naur 564f30ca0f cmd/gio: use the package name for app directories inside ipa files
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-14 14:24:51 +02:00
Elias Naur 2a07890086 cmd/gio: add provisioning file to ipa apps
Required by App Store.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-14 12:49:50 +02:00
Elias Naur 8472bbc78b ui/app,cmd/gio: move running of main from driver to GioAppDelegate
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-08-05 15:38:34 +02:00
Elias Naur c080a54038 ui/app: call main from Android and iOS
Android can only run c-shared libraries which means that every
Gio program must create its window and event loop from an init
function.

The same applies to iOS but for a more benign reason: the gio tool
builds programs in c-archive mode for iOS and links the binary with
a Objective-C driver.

Allow Gio programs to run off its main function by linking to and
invoking main even from Android libraries and iOS ditto.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-07-22 11:33:09 +02:00
Elias Naur cde040369c cmd/gio: use the import path as basis for the output file
Before this change `go list <pkg>` was used to sanitize the import
path of the package argument. That doesn't work well for building
Go source files directly:

gio -target android helloworld.go

where `go list helloworld.go` simply returns "command-line-arguments".

A better way is to leave the package path alone, and compute the
output file separately from the import path, as reported by
`go list -f {{.ImportPath}} <pkg>`.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-07-13 20:19:25 +02:00
Elias Naur 15c4ce9e22 ui/app,cmd/gio: support edge-to-edge layout on Android
Implement recomendations from
https://developer.android.com/preview/features/gesturalnav#java

While here, give up on providing translucent top and bottom bars on
Android 4.4 and below. It's simpler to use the app drawn system
backgrounds from 5.0 and newer.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-07-11 13:05:29 +02:00
Elias Naur 8e46bea6dc cmd/gio: use package name for app name in -buildmode=exe
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-07-06 15:30:39 +02:00
Elias Naur 3c345a67b8 cmd/gio: add iOS/tvOS support for -buildmode=exe
Signed-off-by: Elias Naur <mail@eliasnaur.com>
2019-06-09 14:26:57 +02:00