From 0512114a2bd3a1b6a3e416c0da0093bc41e43dfd Mon Sep 17 00:00:00 2001
From: Spencer Brown <spencer@privategrity.com>
Date: Fri, 16 Feb 2018 16:12:10 -0800
Subject: [PATCH] Refactor package structure

---
 README.md                            | 2 +-
 client.go => api/client.go           | 2 +-
 client_test.go => api/client_test.go | 2 +-
 build.py                             | 6 ------
 initialize.py                        | 7 -------
 5 files changed, 3 insertions(+), 16 deletions(-)
 rename client.go => api/client.go (98%)
 rename client_test.go => api/client_test.go (98%)
 delete mode 100755 build.py
 delete mode 100755 initialize.py

diff --git a/README.md b/README.md
index a8ba5cbf8..5b15efc39 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,7 @@ Building
 To build the .aar for the client, cd to privategrity/client/android/client and
 run this command:
 
-$ gomobile bind -target=android gitlab.com/privategrity/client
+$ gomobile bind -target=android gitlab.com/privategrity/client/api
 
 Adding the .aar to the Android Studio project
 ==
diff --git a/client.go b/api/client.go
similarity index 98%
rename from client.go
rename to api/client.go
index 697ffc97b..800d2a156 100644
--- a/client.go
+++ b/api/client.go
@@ -1,4 +1,4 @@
-package client
+package api
 
 import (
 	"gitlab.com/privategrity/client/crypto"
diff --git a/client_test.go b/api/client_test.go
similarity index 98%
rename from client_test.go
rename to api/client_test.go
index 2baa26641..cbeef676c 100644
--- a/client_test.go
+++ b/api/client_test.go
@@ -1,4 +1,4 @@
-package client
+package api
 
 import "testing"
 
diff --git a/build.py b/build.py
deleted file mode 100755
index 8163ffa0e..000000000
--- a/build.py
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/env python3
-
-import os
-
-# Run this script to re-generate the .aar build artifact for the Android app.
-
diff --git a/initialize.py b/initialize.py
deleted file mode 100755
index d89a67dcf..000000000
--- a/initialize.py
+++ /dev/null
@@ -1,7 +0,0 @@
-#!/bin/env python3
-
-import argparse
-
-# This script will download and install, or use local versions of, the Android
-# NDK and gomobile. These are needed to build the client for mobile but they
-# can't be installed with glide for various dumb reasons.
-- 
GitLab