From 096c3d3458a5a0792b23a819da435dc5866b8134 Mon Sep 17 00:00:00 2001 From: Ahmed Eltaher Date: Fri, 17 Mar 2017 23:28:15 +0100 Subject: [PATCH] Add jitpack.io to build lib via maven . Update Read me file . --- README.md | 23 ++++++++++++++- app/app.iml | 37 +++++++----------------- app/build.gradle | 4 +-- azan/azan.iml | 31 +------------------- azan/build.gradle | 4 +++ build.gradle | 5 +++- gradle/wrapper/gradle-wrapper.properties | 4 +-- local.properties | 5 ++-- 8 files changed, 48 insertions(+), 65 deletions(-) diff --git a/README.md b/README.md index 2e9f884..4331f4b 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ [![Android Arsenal](https://img.shields.io/badge/Android-Time%20Prayer-brightgreen.svg)](https://android-arsenal.com/details/1/5099) ![LICENSE](https://img.shields.io/badge/License-Apache%20License%20V2.0-brightgreen.svg) +![Build](https://img.shields.io/badge/Azan-jitpack.io-blue.svg) + **what is azan ?** @@ -38,8 +40,27 @@ you can determin your latitude, longitude, timezone, height, The Way of Calculat ## How to use ? Add it to dependencies in your gradle file -```compile 'com.eltaher:azan:2.1'``` +- Add it in your root `build.gradle` at the end of repositories: + + - in your `allprojects` section , you have to add `maven { url 'https://jitpack.io' }` + +``` +allprojects { + repositories { + ... + maven { url 'https://jitpack.io' } + } + } +``` + + - in your `build.gradle` in your `app` module , Add the dependency `compile 'com.github.ahmedeltaher:Azan:2.1'` . + + ``` + dependencies { + compile 'com.github.ahmedeltaher:Azan:2.1' + } + ``` **Example how to get prayer times** diff --git a/app/app.iml b/app/app.iml index 67fe903..4c58217 100644 --- a/app/app.iml +++ b/app/app.iml @@ -9,7 +9,6 @@