Skip to content

Commit 365f4ca

Browse files
committed
feat(tests): opensourcing tests
1 parent b880ef8 commit 365f4ca

File tree

88 files changed

+9343
-198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+9343
-198
lines changed

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,28 @@ captures/
156156
# Keystore files
157157
*.jks
158158

159+
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
160+
161+
# User-specific stuff:
162+
.idea/**/workspace.xml
163+
.idea/**/tasks.xml
164+
.idea/dictionaries
165+
.idea/vcs.xml
166+
.idea/copyright
167+
168+
# Sensitive or high-churn files:
169+
.idea/**/dataSources/
170+
.idea/**/dataSources.ids
171+
.idea/**/dataSources.xml
172+
.idea/**/dataSources.local.xml
173+
.idea/**/sqlDataSources.xml
174+
.idea/**/dynamic.xml
175+
.idea/**/uiDesigner.xml
176+
177+
# Gradle:
178+
.idea/**/gradle.xml
179+
.idea/**/libraries
180+
159181

160182
## CUSTOM
161183

.idea/inspectionProfiles/Project_Default.xml

Lines changed: 0 additions & 10 deletions
This file was deleted.

.idea/inspectionProfiles/profiles_settings.xml

Lines changed: 0 additions & 7 deletions
This file was deleted.

.idea/misc.xml

Lines changed: 6 additions & 174 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/modules.xml

Lines changed: 2 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

AndroidSDKTests/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/build

AndroidSDKTests/build.gradle

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
apply plugin: 'com.android.application'
2+
3+
android {
4+
compileSdkVersion 25
5+
buildToolsVersion "25.0.2"
6+
7+
defaultConfig {
8+
applicationId "com.leanplum.tests"
9+
minSdkVersion 14
10+
targetSdkVersion 25
11+
versionCode 1
12+
versionName "1.0"
13+
}
14+
buildTypes {
15+
release {
16+
minifyEnabled false
17+
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
18+
}
19+
}
20+
}
21+
22+
dependencies {
23+
compile project(path: ':AndroidSDK', configuration: 'debug')
24+
compile 'com.android.support:appcompat-v7:25.3.1'
25+
compile 'com.google.android.gms:play-services-gcm:11.0.1'
26+
compile 'com.google.android.gms:play-services-location:11.0.1'
27+
28+
// Dependencies used for unit tests.
29+
testCompile 'junit:junit:4.12'
30+
testCompile('org.robolectric:robolectric:3.3.2') {
31+
exclude group: 'commons-logging', module: 'commons-logging'
32+
exclude group: 'org.apache.httpcomponents', module: 'httpclient'
33+
}
34+
testCompile 'org.robolectric:shadows-play-services:3.3.1'
35+
testCompile 'org.mockito:mockito-core:1.10.19'
36+
testCompile 'org.powermock:powermock-module-junit4:1.6.6'
37+
testCompile 'org.powermock:powermock-module-junit4-rule:1.6.6'
38+
testCompile 'org.powermock:powermock-api-mockito:1.6.6'
39+
testCompile 'org.powermock:powermock-classloading-xstream:1.6.6'
40+
testCompile 'org.bouncycastle:bcmail-jdk15on:1.54'
41+
}

AndroidSDKTests/proguard-rules.pro

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /Users/milos/android-sdk/tools/proguard/proguard-android.txt
4+
# You can edit the include path and order by changing the proguardFiles
5+
# directive in build.gradle.
6+
#
7+
# For more details, see
8+
# http://developer.android.com/guide/developing/tools/proguard.html
9+
10+
# Add any project specific keep options here:
11+
12+
# If your project uses WebView with JS, uncomment the following
13+
# and specify the fully qualified class name to the JavaScript interface
14+
# class:
15+
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
16+
# public *;
17+
#}
18+
19+
# Uncomment this to preserve the line number information for
20+
# debugging stack traces.
21+
#-keepattributes SourceFile,LineNumberTable
22+
23+
# If you keep the line number information, uncomment this to
24+
# hide the original source file name.
25+
#-renamesourcefileattribute SourceFile
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<manifest package="com.leanplum.tests" xmlns:android="http://schemas.android.com/apk/res/android">
3+
4+
<application android:allowBackup="true"
5+
android:icon="@mipmap/ic_launcher"
6+
android:label="@string/app_name"
7+
android:roundIcon="@mipmap/ic_launcher_round"
8+
android:supportsRtl="true"
9+
android:theme="@style/AppTheme">
10+
<activity android:name=".MainActivity">
11+
<intent-filter>
12+
<action android:name="android.intent.action.MAIN" />
13+
14+
<category android:name="android.intent.category.LAUNCHER" />
15+
</intent-filter>
16+
</activity>
17+
</application>
18+
19+
</manifest>
23.9 KB
Loading

0 commit comments

Comments
 (0)