Skip to content

Commit

Permalink
library module created and also separated the example module.
Browse files Browse the repository at this point in the history
  • Loading branch information
vansikrishna authored and bhaskarxinthe committed Feb 21, 2017
1 parent 0af62d3 commit 298a500
Show file tree
Hide file tree
Showing 125 changed files with 269 additions and 145 deletions.
File renamed without changes.
42 changes: 42 additions & 0 deletions example/build.gradle
@@ -0,0 +1,42 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 24
buildToolsVersion "25.0.0"

defaultConfig {
applicationId "com.vlk.multimager.example"
minSdkVersion 19
targetSdkVersion 24
versionCode 1
versionName "1.0"

testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"

}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:24.2.1'
compile('com.github.QuadFlask:colorpicker:0.0.10@aar') {
transitive = true;
}
testCompile 'junit:junit:4.12'
compile project(path: ':lib')
}
File renamed without changes.
17 changes: 17 additions & 0 deletions example/proguard-rules.pro
@@ -0,0 +1,17 @@
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in D:\AndroidDevKits\android-sdk_r04-windowss\android-sdk-windows/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html

# Add any project specific keep options here:

# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
@@ -0,0 +1,26 @@
package com.vlk.multimager.example;

import android.content.Context;
import android.support.test.InstrumentationRegistry;
import android.support.test.runner.AndroidJUnit4;

import org.junit.Test;
import org.junit.runner.RunWith;

import static org.junit.Assert.*;

/**
* Instrumentation test, which will execute on an Android device.
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
@RunWith(AndroidJUnit4.class)
public class ExampleInstrumentedTest {
@Test
public void useAppContext() throws Exception {
// Context of the app under test.
Context appContext = InstrumentationRegistry.getTargetContext();

assertEquals("com.vlk.multimager.example", appContext.getPackageName());
}
}
19 changes: 19 additions & 0 deletions example/src/main/AndroidManifest.xml
@@ -0,0 +1,19 @@
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.vlk.multimager.example">

<application
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true">
<activity
android:name=".SampleActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|uiMode"
android:theme="@style/MultimagerTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>

</manifest>
@@ -1,4 +1,4 @@
package com.vlk.multimager.activities;
package com.vlk.multimager.example;

import android.Manifest;
import android.content.DialogInterface;
Expand All @@ -24,7 +24,9 @@
import com.flask.colorpicker.OnColorSelectedListener;
import com.flask.colorpicker.builder.ColorPickerClickListener;
import com.flask.colorpicker.builder.ColorPickerDialogBuilder;
import com.vlk.multimager.R;
import com.vlk.multimager.activities.BaseActivity;
import com.vlk.multimager.activities.GalleryActivity;
import com.vlk.multimager.activities.MultiCameraActivity;
import com.vlk.multimager.adapters.GalleryImagesAdapter;
import com.vlk.multimager.utils.Constants;
import com.vlk.multimager.utils.Image;
Expand Down
6 changes: 6 additions & 0 deletions example/src/main/res/values/colors.xml
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<color name="colorPrimary">#196E15</color>
<color name="colorPrimaryDark">#000000</color>
<color name="colorAccent">#196E15</color>
</resources>
3 changes: 3 additions & 0 deletions example/src/main/res/values/strings.xml
@@ -0,0 +1,3 @@
<resources>
<string name="app_name">Multimager</string>
</resources>
11 changes: 11 additions & 0 deletions example/src/main/res/values/styles.xml
@@ -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>
@@ -0,0 +1,17 @@
package com.vlk.multimager.example;

import org.junit.Test;

import static org.junit.Assert.*;

/**
* Example local unit test, which will execute on the development machine (host).
*
* @see <a href="http://d.android.com/tools/testing">Testing documentation</a>
*/
public class ExampleUnitTest {
@Test
public void addition_isCorrect() throws Exception {
assertEquals(4, 2 + 2);
}
}
1 change: 1 addition & 0 deletions lib/.gitignore
@@ -0,0 +1 @@
/build
File renamed without changes.
17 changes: 4 additions & 13 deletions app/build.gradle → lib/build.gradle
@@ -1,15 +1,14 @@
apply plugin: 'com.android.application'
apply plugin: 'com.android.library'

android {
compileSdkVersion 23
buildToolsVersion "23.0.3"

defaultConfig {
applicationId "com.vlk.multimager"
minSdkVersion 17
targetSdkVersion 23
versionCode 1
versionName "1.0.0"
versionCode 2
versionName "1.0.1"
}
buildTypes {
release {
Expand All @@ -19,20 +18,12 @@ android {
}
}

allprojects {
repositories {
maven { url "https://jitpack.io" }
}
}

dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:support-v13:23.4.0'
compile 'com.android.support:design:23.4.0'
compile ('com.github.QuadFlask:colorpicker:0.0.10@aar'){
transitive = true;
}

compile 'com.android.support:support-annotations:24.2.1'
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Expand Up @@ -11,19 +11,8 @@
android:name="android.hardware.camera.flash"
android:required="false" />
<application
android:allowBackup="true"
android:icon="@mipmap/ic_launcher"
android:label="@string/app_name"
android:supportsRtl="true">
<activity android:name=".activities.SampleActivity"
android:theme="@style/MultimagerTheme.NoActionBar"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|uiMode">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name=".activities.GalleryActivity"
android:theme="@style/MultimagerTheme.NoActionBar"
Expand Down
File renamed without changes

0 comments on commit 298a500

Please sign in to comment.