-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
Initial Release
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Mesosfer Starter Project for Android # | ||
|
||
|
||
A library that gives you access to the powerful Mesosfer cloud platform from your Android app. | ||
For more information about Mesosfer and its features, see [Mesosfer Website][mesosfer.com] and [Mesosfer Documentations][docs]. | ||
|
||
## Release Changelog | ||
* `0.1.0` (Oct 27, 2016) | ||
- Initial release | ||
|
||
## License | ||
Copyright (c) 2016, Mesosfer. | ||
All rights reserved. | ||
|
||
This source code is licensed under the BSD-style license found in the | ||
LICENSE file in the root directory of this source tree. | ||
|
||
[mesosfer.com]:https://mesosfer.com | ||
[docs]:https://docs.mesosfer.com/ | ||
[cloud]:https://cloud.mesosfer.com/ | ||
[library]:Library/MesosferSDK-Android-0.1.0.aar |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
# Mesosfer Starter Project for Android # | ||
|
||
|
||
A library that gives you access to the powerful Mesosfer cloud platform from your Android app. | ||
For more information about Mesosfer and its features, see [Mesosfer Website][mesosfer.com] and [Mesosfer Documentations][docs]. | ||
|
||
## Download | ||
1. Download [the latest AAR][library] and copy it on `libs` directory. | ||
2. Define in your `app` module `build.gradle` this code below before `dependencies` | ||
|
||
```groovy | ||
repositories{ | ||
flatDir { | ||
dirs 'libs' | ||
} | ||
} | ||
``` | ||
|
||
Then add this code below on `dependencies` : | ||
|
||
```groovy | ||
compile 'com.eyro.mesosfer:MesosferSDK-Android:0.1.0@aar' | ||
``` | ||
|
||
## Setup | ||
1. Register first to [Mesosfer Cloud][cloud] | ||
2. Create an application to get `applicationId` and `clientKey` | ||
3. Add this line below to your `Application` class to initialize Mesosfer SDK | ||
|
||
```java | ||
Mesosfer.initialize(this, "YOUR-APPLICATION-ID-HERE", "YOUR-CLIENT-KEY-HERE"); | ||
``` | ||
Don't forget to initialize your application class to `AndroidManifest.xml` | ||
|
||
(Optional) You can add some custom setup : | ||
|
||
* Enable Mesosfer Push Notification by calling `Mesosfer.setPushNotification(boolean)` | ||
* Enable Mesosfer SDK debug logging by calling `Mesosfer.setLogLevel(int);` before initialize SDK. | ||
* Mesosfer Log Level Mode : `LOG_LEVEL_VERBOSE`, `LOG_LEVEL_DEBUG`, `LOG_LEVEL_INFO`, `LOG_LEVEL_WARNING`, `LOG_LEVEL_ERROR`, `LOG_LEVEL_NONE` | ||
|
||
Everything is done! | ||
|
||
## License | ||
Copyright (c) 2016, Mesosfer. | ||
All rights reserved. | ||
|
||
This source code is licensed under the BSD-style license found in the | ||
LICENSE file in the root directory of this source tree. | ||
|
||
[mesosfer.com]:https://mesosfer.com | ||
[docs]:https://docs.mesosfer.com/ | ||
[cloud]:https://cloud.mesosfer.com/ | ||
[library]:Library/MesosferSDK-Android-0.1.0.aar |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
*.iml | ||
.gradle | ||
/local.properties | ||
/.idea/workspace.xml | ||
/.idea/libraries | ||
.DS_Store | ||
/build | ||
/captures | ||
.externalNativeBuild |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# Mesosfer Starter Project for Android # | ||
|
||
|
||
A library that gives you access to the powerful Mesosfer cloud platform from your Android app. | ||
For more information about Mesosfer and its features, see [Mesosfer Website][mesosfer.com] and [Mesosfer Documentations][docs]. | ||
|
||
## Download | ||
1. Download [the latest AAR][library] and copy it on `libs` directory. | ||
2. Define in your `app` module `build.gradle` this code below before `dependencies` | ||
|
||
```groovy | ||
repositories{ | ||
flatDir { | ||
dirs 'libs' | ||
} | ||
} | ||
``` | ||
|
||
Then add this code below on `dependencies` : | ||
|
||
```groovy | ||
compile 'com.eyro.mesosfer:MesosferSDK-Android:0.1.0@aar' | ||
``` | ||
|
||
## Setup | ||
1. Register first to [Mesosfer Cloud][cloud] | ||
2. Create an application to get `applicationId` and `clientKey` | ||
3. Add this line below to your `Application` class to initialize Mesosfer SDK | ||
|
||
```java | ||
Mesosfer.initialize(this, "YOUR-APPLICATION-ID-HERE", "YOUR-CLIENT-KEY-HERE"); | ||
``` | ||
Don't forget to initialize your application class to `AndroidManifest.xml` | ||
|
||
(Optional) You can add some custom setup : | ||
|
||
* Enable Mesosfer SDK debug logging by calling `Mesosfer.setLogLevel(int);` before initialize SDK. | ||
* Mesosfer Log Level Mode : `LOG_LEVEL_VERBOSE`, `LOG_LEVEL_DEBUG`, `LOG_LEVEL_INFO`, `LOG_LEVEL_WARNING`, `LOG_LEVEL_ERROR`, `LOG_LEVEL_NONE` | ||
|
||
Everything is done! | ||
|
||
## License | ||
Copyright (c) 2016, Mesosfer. | ||
All rights reserved. | ||
|
||
This source code is licensed under the BSD-style license found in the | ||
LICENSE file in the root directory of this source tree. | ||
|
||
[mesosfer.com]:https://mesosfer.com | ||
[docs]:https://docs.mesosfer.com/ | ||
[cloud]:https://cloud.mesosfer.com/ | ||
[library]:../../Library/MesosferSDK-Android-0.1.0.aar |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
/build |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
apply plugin: 'com.android.application' | ||
|
||
android { | ||
compileSdkVersion 24 | ||
buildToolsVersion "24.0.3" | ||
defaultConfig { | ||
applicationId "com.eyro.mesosfer.sample" | ||
minSdkVersion 15 | ||
targetSdkVersion 24 | ||
versionCode 1 | ||
versionName "1.0" | ||
} | ||
buildTypes { | ||
release { | ||
minifyEnabled false | ||
proguardFiles getDefaultProguardFile('proguard-android.txt') | ||
} | ||
} | ||
} | ||
|
||
repositories{ | ||
flatDir { | ||
dirs 'libs' | ||
} | ||
} | ||
|
||
dependencies { | ||
compile fileTree(dir: 'libs', include: ['*.jar']) | ||
compile 'com.android.support:appcompat-v7:24.2.1' | ||
compile 'com.eyro.mesosfer:MesosferSDK-Android:0.1.0@aar' | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<manifest xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="com.eyro.mesosfer.sample"> | ||
|
||
<application | ||
android:name=".MesosferApp" | ||
android:allowBackup="true" | ||
android:icon="@mipmap/ic_launcher" | ||
android:label="@string/app_name" | ||
android:supportsRtl="true" | ||
android:theme="@style/AppTheme"> | ||
|
||
</application> | ||
|
||
</manifest> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
package com.eyro.mesosfer.sample; | ||
|
||
import android.app.Application; | ||
|
||
import com.eyro.mesosfer.Mesosfer; | ||
|
||
/** | ||
* Created by Eyro on 10/19/16. | ||
*/ | ||
public class MesosferApp extends Application { | ||
@Override | ||
public void onCreate() { | ||
super.onCreate(); | ||
|
||
// uncomment this line below to show Mesosfer log in verbose mode | ||
// Mesosfer.setLogLevel(Mesosfer.LOG_LEVEL_VERBOSE); | ||
|
||
// initialize Mesosfer SDK | ||
Mesosfer.initialize(this, "YOUR-APPLICATION-ID-HERE", "YOUR-CLIENT-KEY-HERE"); | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<color name="colorPrimary">#1567a3</color> | ||
<color name="colorPrimaryDark">#0d4367</color> | ||
<color name="colorAccent">#1567a3</color> | ||
</resources> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<resources> | ||
<string name="app_name">Mesosfer</string> | ||
</resources> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<resources> | ||
|
||
<!-- Base application theme. --> | ||
<style name="AppTheme" parent="Theme.AppCompat.Light.DarkActionBar"> | ||
<!-- Customize your theme here. --> | ||
<item name="colorPrimary">@color/colorPrimary</item> | ||
<item name="colorPrimaryDark">@color/colorPrimaryDark</item> | ||
<item name="colorAccent">@color/colorAccent</item> | ||
</style> | ||
|
||
</resources> |