Skip to content

Commit c565b24

Browse files
committed
Add client module
1 parent 05f2209 commit c565b24

File tree

5 files changed

+115
-2
lines changed

5 files changed

+115
-2
lines changed

.idea/modules.xml

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

example-client/build.gradle

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
buildscript {
2+
repositories {
3+
jcenter()
4+
}
5+
dependencies {
6+
classpath 'com.android.tools.build:gradle:2.2.0'
7+
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
8+
}
9+
}
10+
11+
allprojects {
12+
repositories {
13+
jcenter()
14+
}
15+
}
16+
17+
task clean(type: Delete) {
18+
delete rootProject.buildDir
19+
}
20+
21+
apply plugin: 'com.android.library'
22+
apply plugin: 'me.tatarka.retrolambda'
23+
apply plugin: 'com.github.dcendents.android-maven'
24+
25+
group='com.github.NaikSoftware'
26+
27+
android {
28+
compileSdkVersion 23
29+
buildToolsVersion "23.0.3"
30+
31+
defaultConfig {
32+
minSdkVersion 16
33+
targetSdkVersion 23
34+
versionCode 1
35+
versionName "1.0"
36+
}
37+
38+
compileOptions {
39+
sourceCompatibility JavaVersion.VERSION_1_8
40+
targetCompatibility JavaVersion.VERSION_1_8
41+
}
42+
43+
buildTypes {
44+
release {
45+
minifyEnabled false
46+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
47+
}
48+
}
49+
}
50+
51+
52+
dependencies {
53+
compile fileTree(include: ['*.jar'], dir: 'libs')
54+
testCompile 'junit:junit:4.12'
55+
compile 'io.reactivex:rxjava:1.1.0'
56+
// Supported transports
57+
provided 'org.java-websocket:Java-WebSocket:1.3.0'
58+
}
59+
60+
task sourcesJar(type: Jar) {
61+
from android.sourceSets.main.java.srcDirs
62+
classifier = 'sources'
63+
}
64+
65+
artifacts {
66+
archives sourcesJar
67+
}

example-client/example-client.iml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<module type="JAVA_MODULE" version="4">
3+
<component name="FacetManager">
4+
<facet type="android-gradle" name="Android-Gradle">
5+
<configuration>
6+
<option name="GRADLE_PROJECT_PATH" />
7+
</configuration>
8+
</facet>
9+
<facet type="android" name="Android">
10+
<configuration>
11+
<option name="MANIFEST_FILE_RELATIVE_PATH" value="/src/main/AndroidManifest.xml" />
12+
<option name="RES_FOLDER_RELATIVE_PATH" value="/src/main/res" />
13+
<option name="ASSETS_FOLDER_RELATIVE_PATH" value="/src/main/asests" />
14+
<option name="CUSTOM_APK_RESOURCE_FOLDER" value="/build" />
15+
</configuration>
16+
</facet>
17+
</component>
18+
<component name="NewModuleRootManager" inherit-compiler-output="false">
19+
<output url="file://$MODULE_DIR$/../out/production/example-client/build" />
20+
<output-test url="file://$MODULE_DIR$/../out/test/example-client/build/test" />
21+
<exclude-output />
22+
<content url="file://$MODULE_DIR$">
23+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
24+
<sourceFolder url="file://$MODULE_DIR$/gen" isTestSource="false" generated="true" />
25+
<sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
26+
<sourceFolder url="file://$MODULE_DIR$/src/main/res" type="java-resource" />
27+
</content>
28+
<orderEntry type="jdk" jdkName="Android API 24 Platform" jdkType="Android SDK" />
29+
<orderEntry type="sourceFolder" forTests="false" />
30+
</component>
31+
</module>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
package ua.naiksoftware.exampleclient;
2+
3+
import android.app.Activity;
4+
import android.os.Bundle;
5+
6+
/**
7+
* Created by naik on 20.09.16.
8+
*/
9+
public class MainActivity extends Activity {
10+
@Override
11+
public void onCreate(Bundle savedInstanceState) {
12+
super.onCreate(savedInstanceState);
13+
}
14+
}

lib/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
jcenter()
44
}
55
dependencies {
6-
classpath 'com.android.tools.build:gradle:2.1.0'
6+
classpath 'com.android.tools.build:gradle:2.2.0'
77
classpath 'me.tatarka:gradle-retrolambda:3.2.5'
88
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.3'
99
}
@@ -21,7 +21,7 @@ task clean(type: Delete) {
2121

2222
apply plugin: 'com.android.library'
2323
apply plugin: 'me.tatarka.retrolambda'
24-
apply plugin: 'com.github.dcendents.android-maven'
24+
//apply plugin: 'com.github.dcendents.android-maven'
2525

2626
group='com.github.NaikSoftware'
2727

0 commit comments

Comments
 (0)