gluonhq / client-samples

Client samples to run with Gluon Client plugins for Maven and Gradle
114 stars 23 forks source link

Is there an option for iOS simulator only? #82

Open piosystems opened 4 years ago

piosystems commented 4 years ago

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

odbuser2 commented 4 years ago

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.

piosystems commented 4 years ago

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

jperedadnr commented 4 years ago

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.

piosystems commented 4 years ago

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?

jperedadnr commented 4 years ago

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.