client-samples icon indicating copy to clipboard operation
client-samples copied to clipboard

Is there an option for iOS simulator only?

Open piosystems opened this issue 5 years ago • 5 comments

Using client-maven-plugin, is there an option to build for iOS simulator only, without having to register a physical device using Xcode?

piosystems avatar May 19 '20 16:05 piosystems

This would be supported in the maven-client-plugin by setting the target to ios-sim:

    <build>
        <plugins>
            <plugin>
                <groupId>com.gluonhq</groupId>
                <artifactId>client-maven-plugin</artifactId>
                <version>${client.plugin.version}</version>
                <configuration>
                    <!-- Uncomment to run on iOS: -->
                    <!--<target>ios</target>--> 
                    <!-- Uncomment to run on iOS simulator: -->
                    <target>ios-sim</target> 
                    <mainClass>${mainClassName}</mainClass>
                    <graalvmHome>{path to graal 20.1.0 with native image and llvm installed}</graalvmHome>
                </configuration>
            </plugin>
        </plugins>
    </build>

But it's not supported yet b/c you'll get an error like this:

java.lang.RuntimeException: Error downloading zips: Error: ~/.gluon/substrate/labs-staticjdk-ios-x86_64-gvm-15-ea+3.zip does not exist

They haven't created the static jdk zip for the ios sim which runs on x86-64.

This is not explained in https://docs.gluonhq.com/client/ nor https://github.com/gluonhq/client-maven-plugin/.

It used to work. Documentation and consistent cross platform support is not there yet... 1 thing is fixed and 10 other things are broken or changed. Lots of moving parts.

odbuser2 avatar May 22 '20 22:05 odbuser2

Is there an online documentation that contains information on the various configurations that can be applied to client-maven-plugin?

piosystems avatar May 23 '20 10:05 piosystems

  • https://github.com/gluonhq/client-maven-plugin/ (readme)
  • https://github.com/gluonhq/client-samples (readme)
  • https://docs.gluonhq.com/client/ (requirements, https://docs.gluonhq.com/client/#_target)

all contain up-to-date information with the supported platforms and targets.

Platforms: Linux, Mac OS, Windows, iOS and Android Possible target values: host (default, for Linux, Mac OS, Windows), ios (iOS), android (Android).

This is it for now. What it is not there it is not supported yet or experimental.

jperedadnr avatar May 23 '20 11:05 jperedadnr

  • https://github.com/gluonhq/client-maven-plugin/ (readme)
  • https://github.com/gluonhq/client-samples (readme)
  • https://docs.gluonhq.com/client/ (requirements, https://docs.gluonhq.com/client/#_target)

all contain up-to-date information with the supported platforms and targets.

Platforms: Linux, Mac OS, Windows, iOS and Android Possible target values: host (default, for Linux, Mac OS, Windows), ios (iOS), android (Android).

This is it for now. What it is not there it is not supported yet or experimental.

Your feedback seems to imply that previous gluon mobile examples that are based on gradle (see https://github.com/gluonhq/gluon-samples) are now obsolete. Will there be replacement example equivalents, based on client-maven-plugin?

piosystems avatar May 31 '20 17:05 piosystems

Samples are being migrated here: https://github.com/gluonhq/gluon-samples/tree/substrate (few more pending https://github.com/gluonhq/gluon-samples/pulls). Work in progress for the rest.

jperedadnr avatar May 31 '20 17:05 jperedadnr