Skip to content

Commit

Permalink
Merge pull request #7 from openmrs/dev
Browse files Browse the repository at this point in the history
Release 0.1.0
  • Loading branch information
isears committed Jun 26, 2019
2 parents 541b2ca + cabe447 commit 3e8b952
Show file tree
Hide file tree
Showing 39 changed files with 1,136 additions and 116 deletions.
112 changes: 112 additions & 0 deletions .idea/codeStyles/Project.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions .travis.yml
@@ -0,0 +1,37 @@
language: android
jdk: oraclejdk8
dist: trusty

env:
global:
- ANDROID_API_LEVEL=28
- ANDROID_BUILD_TOOLS_VERSION=28.0.3

android:
licenses:
- 'android-sdk-preview-license-.+'
- 'android-sdk-license-.+'
- 'google-gdk-license-.+'
components:
- tools
- platform-tools
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
- android-$ANDROID_API_LEVEL


before_install:
- yes | sdkmanager "platforms;android-$ANDROID_API_LEVEL"

script:
- ./build.sh

# Caching implemented as per Travis CI Docs
# https://docs.travis-ci.com/user/languages/android/#caching
before_cache:
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
- rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
directories:
- $HOME/.gradle/caches/
- $HOME/.gradle/wrapper/
- $HOME/.android/build-cache
66 changes: 66 additions & 0 deletions README.md
@@ -0,0 +1,66 @@
<img height='250' src="https://github.com/codepoet2017390/openmrs-contrib-telemedicine-app/blob/dev/app/src/main/res/drawable/telemedicine_icon.png" align="left" hspace="1" vspace="1">

# Nigeria Telemedicine App

[![Build Status](https://travis-ci.org/openmrs/openmrs-contrib-telemedicine-app.svg?branch=dev)](https://travis-ci.org/openmrs/openmrs-contrib-telemedicine-app)


The Nigeria Telemedicine App is light weight, easy to use telemedicine mobile app developed to make health services more
accessible to the Nigerian population. Users can register themselves on the app providing basic details like their
name ,phone-number and optionally a small description of their ailment. All this can be done within a minute as there is
no wasting time in login and verification etc. After succesful registration the user will receive a call from a doctor as
early as possible. This app is developed and maintained by OpenMRS together with a global community.
<br>
<br>
## Screenshots
<p>
<img src="https://lh4.googleusercontent.com/vKVrMYL3Uuyqfhw9ysbuLAj_4jB38ewrm2adUE3XARSDMsJPl-BCivUJuJm0onwQn5nlen86c0Z65eXbp3izBeV2dfKOhJNLiwPiNyXfzVdy29i6CLotk0H0wZ-BalaKbt4xCsmQ" width="288" height="500" />
<img src="https://lh5.googleusercontent.com/DIdrJqQMV2Pu4bPavbczpol3FxzDoa5k7_xLRbDZ8H7qAyIME1q8JUFvmuxKK9VidB3RWuLp3kmeD_C5730TQKG05pvFa1Sygyr-VS9oWhEUhSI7jLUowl5GuYDxmykxsNouwokG" width="288" height="500" />
<img src="https://lh3.googleusercontent.com/LiFMGY-DybFi6Ojsy-4tzfnIbQcCPayQL0hGSL2YYcbBK9Y2ZXONlp3GY_2J9SWzformUi5QlL0WhqhmB4WYIHwbNfnNKBfsqegWCA6O0etpfqiHS7E5VQolNW6_iyXHsIkT9akJ" width="288" height="500" />
</p>



## How to Contribute

This is an OpenSource project and we would be happy to see new contributors. The issues should be raised via the GitHub issue tracker.
All fixes should be proposed via pull requests.

### Branch Policy

We have the following branches :

* **dev**
All the contributions should be pushed to this branch. If you're making a contribution,
you are supposed to make a pull request to _dev_.

It is advisable to clone only the development branch using the following command:

`git clone -b <branch> <remote_repo>`

With Git 1.7.10 and later, add --single-branch to prevent fetching of all branches. Example, with development branch:

`git clone -b dev --single-branch https://github.com/username/openmrs-contrib-telemedicine-app.git`

* **master**
The master branch contains all the stable and bug-free working code. The development branch once complete will be merged with this branch.


## Development Setup

Before you begin, you should have already downloaded the Android Studio SDK and set it up correctly. You can find a guide on how to do this here: [Setting up Android Studio](http://developer.android.com/sdk/installing/index.html?pkg=studio).

## Building the Code

1. Clone the repository using HTTP: git clone https://github.com/openmrs/openmrs-contrib-telemedicine-app.git

2. Open Android Studio.

3. Click on 'Open an existing Android Studio project'

4. Browse to the directory where you cloned the repo and click OK.

5. Let Android Studio import the project.

6. Sync and build the project in Android studio.

28 changes: 27 additions & 1 deletion app/build.gradle
Expand Up @@ -4,11 +4,18 @@ apply plugin: 'kotlin-android'

apply plugin: 'kotlin-android-extensions'

apply plugin: 'kotlin-kapt'

android {
compileSdkVersion 28
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
defaultConfig {
applicationId "com.example.nigeriatelemedicineapp"
minSdkVersion 14
android.defaultConfig.vectorDrawables.useSupportLibrary = true
targetSdkVersion 28
versionCode 1
versionName "1.0"
Expand All @@ -20,16 +27,35 @@ android {
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}

dataBinding {
enabled = true
}
}

dependencies {
def lifecycle_version = "2.0.0"

implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation"org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.core:core-ktx:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.google.android.material:material:1.0.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.1'

implementation "androidx.lifecycle:lifecycle-extensions:$rootProject.archLifecycleVersion"
annotationProcessor "androidx.lifecycle:lifecycle-compiler:$rootProject.archLifecycleVersion"
//retrofit & gson
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.squareup.retrofit2:retrofit:2.5.0'
implementation 'com.squareup.retrofit2:converter-gson:2.5.0'
//okHttp3
implementation 'com.squareup.okhttp3:logging-interceptor:3.4.1'
implementation 'com.squareup.okhttp3:okhttp:3.4.1'

//timber
implementation 'com.jakewharton.timber:timber:4.7.1'
}
42 changes: 27 additions & 15 deletions app/src/main/AndroidManifest.xml
@@ -1,26 +1,38 @@
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:dist="http://schemas.android.com/apk/distribution"
package="com.example.nigeriatelemedicineapp">
xmlns:dist="http://schemas.android.com/apk/distribution"
package="com.example.nigeriatelemedicineapp">

<dist:module dist:instant="true"/>
<uses-permission android:name="android.permission.INTERNET" />
<dist:module dist:instant="true" />

<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
android:allowBackup="true"
android:name=".TelemedicineApp"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:roundIcon="@mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="@style/AppTheme">
<activity
android:name=".MainActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
android:name=".SplashScreen"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>

<category android:name="android.intent.category.LAUNCHER"/>
<category android:name="android.intent.category.LAUNCHER" />
<action android:name="android.intent.action.MAIN" />
</intent-filter>

</activity>
<activity
android:name=".registerpatient.RegisterPatientActivity"
android:theme="@style/AppTheme.NoActionBar"
android:parentActivityName=".dashboard.DashBoardActivity"
/>
<activity
android:name=".dashboard.DashBoardActivity"
android:label="@string/app_name"
android:theme="@style/AppTheme.NoActionBar">
</activity>
</application>

Expand Down

This file was deleted.

@@ -0,0 +1,19 @@
package com.example.nigeriatelemedicineapp

import android.content.Intent
import android.os.Bundle
import android.os.Handler
import androidx.appcompat.app.AppCompatActivity;
import com.example.nigeriatelemedicineapp.dashboard.DashBoardActivity

class SplashScreen : AppCompatActivity() {

override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.splash_screen)
Handler().postDelayed({
startActivity(Intent(this, DashBoardActivity::class.java))
finish()
},1000)
}
}

0 comments on commit 3e8b952

Please sign in to comment.