gomobile-ios-android-library-dev

command module
v0.0.0-...-9796969 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2019 License: AGPL-3.0 Imports: 0 Imported by: 0

README

gomobile-ios-android-library-dev

Android and iOS cross library development with Golang

Author: Diego De Santiago

The main purpose for this project is to create cross-compiling libraries for Android and iOS, and generated application will be a map application that contains a search input with autocomplete features, search functionality will be processed using a cross-compiled library in Golang.

How to set up?

Create base folders on your environment

cd ~
mkdir -p go/pkg go/bin go/src
OSx
brew install go
Linux and Windows with MinGW (or Unix Like Windows) from TarBall
wget https://dl.google.com/go/go1.12.4.linux-amd64.tar.gz
sudo tar -C /usr/local -xzf go1.12.4.linux-amd64.tar.gz
Dependencies and Golang configuration

Edit your shell profile file configuration based on your distribution

# GO CONFIGURATION
export GOPATH="${HOME}/go"

## For OSx
export GOROOT="$(brew --prefix golang)/libexec"

## For linux and windows
export GOROOT="/usr/local/go"

## For legacy compile support C, Objective-C
export GOROOT_BOOTSTRAP=$GOROOT

## Append golang root and installed binaries throw go get
export PATH="${PATH}:${GOROOT}/bin:${GOPATH}/bin"

Open a new terminal or reload your profile file with source ~/.profile

To check go installation run following commands:

go version
go env

The next step is install project dependencies

Dependencies: gomobile, go-sqlite3, google-geolocate, ini.v1

Copy and paste following commands on terminal:

go get github.com/martinlindhe/google-geolocate
go get github.com/mattn/go-sqlite3
go get golang.org/x/mobile/cmd/gomobile
go get github.com/go-ini/ini

Initialize gomobile in this project, with gomobile init command

Cloning

Clone this repository as googlemapsearch name

git clone git@github.com:captaincode0/gomobile-ios-android-library-dev.git $GOPATH/src/googlemapsearch

Note: If you want to keep your files outside GOPATH directory, personally recommend to make a soft symlink in GOPATH/src folder, ln -s <your-custom-path>/googlemapsearch $GOPATH/src

Set your google API Key

After Api Key generation for Google Maps, edit ini configuration file config.ini and add your own key

Check documentation to generate a Google Maps Api Key

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL