Skip to content

mtorrado/SDExtensionsSample

 
 

Repository files navigation

Smart Devices Extension Sample

This sample contains:

  • A User Control definition.
  • An External Object definition.
  • An Android Library project of a Genexus Module that implements the two previously defined extensions.
  • An Genexus Library definition which declares the Android Library which implements the User Control and External Object in Android and its corresponding Genexus Module name.
  • An implementation for iOS for the User Control and External Object.
  • An app that lets you try out both extensions.

Requirements

  • Genexus 15 (Upgrade 9 or later)
  • JDK and Android SDK for Android generator
  • MAC machine for iOS generator

For more details see:

Instructions

Import the User Control definition in Genexus

  • Set the following environment variable:
    • GENEXUS_REPO to Genexus Android Maven repository located in Android\m2repository inside your Genexus installation (e.g. file:///C/path/to/GX/Android/m2Repository).
  • Copy the BasicUserControl directory to the UserControls directory in your Genexus installation.
  • Run genexus.exe /install.

Import the External Object definition in Genexus

  • Open Genexus.
  • Import the BasicExternalObject definition from BasicExternalObject\BasicExternalObject.xpz.

Import the Genexus Library definition to Genexus

  • Copy the SampleLibrary directory to the Libraries directory in your Genexus installation.

Import the sample app (optional).

To try out the BasicUserControl and BasicExternalObject samples you may wish to import the sample app from SampleApp\BasicSample.xpz.

Android specific

Deploy the Genexus Android Module to Genexus

  • Set the following environment variable:
    • ANDROID_HOME to your Android SDK directory.
  • Run the command gradlew uploadArchives from the SampleModule directory.

Further reading

User Controls

External Objects

License

This project is licensed under the MIT License. See the LICENSE file for more details.

About

This repository contains extensions samples for Smart Devices generator.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 50.6%
  • Java 49.4%