All Projects → genexuslabs → SDExtensionsSample

genexuslabs / SDExtensionsSample

Licence: MIT license
This repository contains extensions samples for the Native Mobile generators.

Programming Languages

swift
15916 projects
kotlin
9241 projects

Projects that are alternatives of or similar to SDExtensionsSample

web-controls-library
A library of reusable custom elements for GeneXus web applications
Stars: ✭ 14 (-17.65%)
Mutual labels:  genexus

Native Mobile 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 (latest upgrade is recommended)
  • JDK and Android SDK for Android generator
  • MAC machine for iOS generator

For more details see:

Instructions

Import the GeneXus Library definition to GeneXus

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

Import the User Control definition in GeneXus

  • Copy the BasicUserControl directory to the UserControls directory in your GeneXus installation.
  • Run genexus.exe /install in a command line in the Genexus installation directory.

Import the External Object definition in GeneXus

  • Open GeneXus and open the KB to work with.
  • Import the BasicExternalObject definition from BasicExternalObject\BasicExternalObject.xpz.

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 variables:
    • GENEXUS_REPO to GeneXus Android Maven repository located in Android\m2repository inside your GeneXus installation (e.g. file:///C:/path/to/GX/Android/m2Repository). Check that the environment variables use the format with "file:///" at the beginning.
    • ANDROID_HOME to your Android SDK directory.
  • Run the command gradlew uploadArchives from the SampleModule directory.

Considerations

  • Take into account that this project uses the latest FlexibleClient version installed at GENEXUS_REPO. If you need to work with a specific one, you will have to replace it in library/build.gradle file.

Further reading

User Controls

External Objects

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].