Skip to content

Commit dcf67f1

Browse files
committed
Merge branch 'develop'
2 parents 018a85d + 3ee8c3f commit dcf67f1

File tree

165 files changed

+3160
-670
lines changed

Some content is hidden

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

165 files changed

+3160
-670
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ build
1919
gradle-app.setting
2020
gradle.properties
2121
Gemfile.lock
22+
*~

.travis.yml

Lines changed: 28 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,31 @@
1-
language: java
2-
jdk: oraclejdk7
1+
language: android
2+
android:
3+
components:
4+
- android-19
5+
- build-tools-20.0.0
6+
7+
env:
8+
matrix:
9+
- ANDROID_TARGET=android-19 ANDROID_ABI=armeabi-v7a
10+
311
before_install:
4-
- export TERM=dumb
5-
- sudo apt-get install -qq libstdc++6:i386 lib32z1
6-
- export COMPONENTS=build-tools-19.1.0,android-19,extra-android-m2repository
7-
- curl -L https://raw.github.com/embarkmobile/android-sdk-installer/version-1/android-sdk-installer | bash /dev/stdin --install=$COMPONENTS
8-
- source ~/.android-sdk-installer/env
12+
# Create and start emulator
13+
- android list targets
14+
- echo no | android create avd --force -n test -t $ANDROID_TARGET --abi $ANDROID_ABI
15+
- emulator -avd test -no-skin -no-audio -no-window &
16+
17+
install:
18+
- TERM=dumb ./gradlew assemble
19+
20+
before_script:
21+
- adb devices
22+
- chmod +x ./wait_for_emulator
23+
- ./wait_for_emulator
24+
25+
script:
26+
- TERM=dumb ./gradlew connectedAndroidTest
927

1028
notifications:
11-
hipchat:
12-
rooms:
13-
secure: Pz5CQX/NtKLkk8c6kjhxipMS6kdQTj5jaeN9LC2k1IzERsqCYnx/nD2EV0cG4YJO0W3sMK3vaVgL5lLE3xHpe7wsLB/LWmxLY8QV0NJaSGOqqXAC4S5Yo7MRFd2S5fPWN7MC05SPpqiDveEle1fK6Gz7oHXSZxAFMyYnLRcaX3M=
29+
hipchat:
30+
rooms:
31+
secure: pofqFB1dvZq/Ue0okcuy3cWDKMxkq/5acPGoK2VlB8Sj1OEPm3Uau2y4Kx0DKtV9vQCLmAwc9Wvy26eIbihFIjzM6O8BDS5kdWlApJIlnJtT5hJ/YT5JB0jDHW6P1aU4muu9PXtBMMZhUWmBU3jIUPTgiLbCAygCYPGOkVRku+g=

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ buildscript {
44
mavenCentral()
55
}
66
dependencies {
7-
classpath 'com.android.tools.build:gradle:0.11.+'
7+
classpath 'com.android.tools.build:gradle:0.12.+'
88
classpath 'com.jakewharton.sdkmanager:gradle-plugin:0.10.+'
99
}
1010
}

changelog.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
11
[
2+
{
3+
"version": "v2.7",
4+
"date": "October 27, 2014",
5+
"features": [
6+
"Added Alerts & Debug which essentially allows you to get status of the device running SMSsync remotely by sending query codes as SMS to the device.",
7+
"Message Results API, allows SMSsync to send SMS delivery reports back to the server and makes it easier to for the server to know if outgoing messages got sent to the recipients.",
8+
"Added ability to toggle SMS delivery reports. Now you can turn this feature on or off as some providers charge you for it.",
9+
"Change from SMSSync to SMSsync. Feels more natural writing it that way.",
10+
"Updated logo. We have updated our logo to make it modern looking and to conform to Android's design guidelines.",
11+
"Updated notification status icon to conform to Android's design guidelines.",
12+
"Added a feedback dialog as a way to engage more with our users to figure out a better way to support them.",
13+
"Updated website with favicon.",
14+
15+
],
16+
"bugs": [
17+
"Fixed bug with changing the sync scheme not being effected.",
18+
"Fixed a bug when SMSsync attempt to send an SMS to users it crashes in the background.",
19+
"Fixed issue with not being able to delete selected whitelist and blacklist entries.",
20+
"Fixed issue with not being able to delete all messages in the sent list."
21+
]
22+
},
223
{
324
"version": "v2.6.1",
425
"date": "June 23, 2014",

libraries/survey-dialog/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
*.swp
2+
bin
3+
gen
4+
local.properties
5+
secure.properties
6+
*.iml
7+
*.ipr
8+
*.iws
9+
*.swp
10+
.rvmrc
11+
.idea
12+
*.DS_Store
13+
target
14+
out
15+
proguard.cfg
16+
proguard-project.txt
17+
build
18+
.gradle
19+
gradle-app.setting
20+
gradle.properties
21+
Gemfile.lock

libraries/survey-dialog/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# ChangeLog
2+
3+
- 2014/08/23 0.4.1 release.
4+
- 2014/08/09 0.4.0 release.
5+
- 2014/08/02 0.3.3 release.
6+
- 2014/07/23 0.3.2 release.
7+
- 2014/07/05 0.3.1 release.
8+
- 2014/07/03 0.3.0 release.
9+
- 2014/07/02 0.2.1 release.
10+
- 2014/06/20 0.2.0 release.
11+
- 2014/06/19 0.1.3 release.
12+
- 2014/06/16 0.1.2 release.
13+
- 2014/06/15 0.1.1 release.
14+
- 2014/05/25 0.1.0 release.
15+
- 2014/04/13 0.0.6 release.
16+
- 2014/04/12 0.0.5 release.
17+
- 2014/04/07 0.0.4 release.
18+
- 2014/02/13 0.0.3 release.
19+
- 2014/02/12 0.0.2 release.
20+
- 2014/02/11 0.0.1 release.

libraries/survey-dialog/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2014 Shintaro Katafuchi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

libraries/survey-dialog/README.md

Lines changed: 168 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,168 @@
1+
Android-Rate
2+
============
3+
4+
[![Build Status](https://travis-ci.org/hotchemi/Android-Rate.png?branch=master)](https://travis-ci.org/hotchemi/Android-Rate)
5+
[![Android Arsenal](http://img.shields.io/badge/Android%20Arsenal-Android%20Rate-brightgreen.svg?style=flat)](http://android-arsenal.com/details/1/846)
6+
7+
Android-Rate is a library to help you promote your android app by prompting users to rate the app after using it for a few days.
8+
9+
![screen shot](http://gifzo.net/BI5e2qMJVi0.gif)
10+
11+
## Getting Started
12+
![Maven Badges](https://maven-badges.herokuapp.com/maven-central/com.github.hotchemi/android-rate/badge.svg)
13+
14+
You can download from maven central.
15+
16+
```groovy
17+
dependencies {
18+
compile 'com.github.hotchemi:android-rate:{$latest.version}'
19+
}
20+
```
21+
22+
## Sample
23+
24+
Please try to move the [sample module](https://github.com/hotchemi/Android-Rate/tree/master/sample).
25+
26+
## How to use
27+
28+
### Configuration
29+
30+
Android-Rate provides methods to configure its behavior.
31+
32+
```java
33+
@Override
34+
protected void onCreate(Bundle savedInstanceState) {
35+
super.onCreate(savedInstanceState);
36+
setContentView(R.layout.activity_main);
37+
38+
AppRate.with(this)
39+
.setInstallDays(0) // default 10, 0 means install day.
40+
.setLaunchTimes(3) // default 10
41+
.setRemindInterval(2) // default 1
42+
.setShowNeutralButton(true) // default true
43+
.setDebug(false) // default false
44+
.setOnClickButtonListener(new OnClickButtonListener() { // callback listener.
45+
@Override
46+
public void onClickButton(int which) {
47+
Log.d(MainActivity.class.getName(), Integer.toString(which));
48+
}
49+
})
50+
.monitor();
51+
52+
// Show a dialog if meets conditions
53+
AppRate.showRateDialogIfMeetsConditions(this);
54+
}
55+
```
56+
57+
The default conditions to show rate dialog is as below:
58+
59+
1. App is launched more than 10 days later than installation. Change via `AppRate#setInstallDays(int)`.
60+
2. App is launched more than 10 times. Change via `AppRate#setLaunchTimes(int)`.
61+
3. App is launched more than 2 days after neutral button clicked. Change via `AppRate#setRemindInterval(int)`.
62+
4. App shows neutral dialog(Remind me later) by default. Change via `setShowNeutralButton(boolean)`.
63+
5. To specify the callback when the button is pressed. The same value as the second argument of `DialogInterface.OnClickListener#onClick` will be passed in the argument of `onClickButton`.
64+
6. Setting `AppRate#setDebug(boolean)` will ensure that the rating request is shown each time the app is launched. **This feature is only development!**.
65+
66+
### Event Tracking
67+
68+
When you want to track significant events, write code as below.
69+
70+
```java
71+
72+
@Override
73+
protected void onCreate(Bundle savedInstanceState) {
74+
super.onCreate(savedInstanceState);
75+
setContentView(R.layout.activity_main);
76+
AppRate.with(this).setEventTimes(2).monitor();
77+
}
78+
79+
@Override
80+
public void onClick() {
81+
AppRate.passSignificantEvent(this); // when user pass this line for the third time, dialog appears.
82+
}
83+
```
84+
85+
### Clear show dialog flag
86+
87+
When you want to show the dialog again, call `AppRate#clearAgreeShowDialog()`.
88+
89+
```java
90+
AppRate.with(this).clearAgreeShowDialog();
91+
```
92+
93+
### When the button presses on
94+
95+
call `AppRate#showDialog(Activity)`.
96+
97+
```java
98+
AppRate.with(this).showDialog(this);
99+
```
100+
101+
### Set custom view
102+
103+
call `AppRate#setView(View)`.
104+
105+
```java
106+
LayoutInflater inflater = (LayoutInflater)this.getSystemService(LAYOUT_INFLATER_SERVICE);
107+
View view = inflater.inflate(R.layout.custom_dialog, (ViewGroup)findViewById(R.id.layout_root));
108+
AppRate.with(this).setView(view).monitor();
109+
```
110+
111+
### Custom dialog
112+
113+
If you want to use your own dialog labels, override string xml resources on your application.
114+
115+
```xml
116+
<resources>
117+
<string name="rate_dialog_title">Rate this app</string>
118+
<string name="rate_dialog_message">If you enjoy playing this app, would you mind taking a moment to rate it? It won\'t take more than a minute. Thanks for your support!</string>
119+
<string name="rate_dialog_ok">Rate It Now</string>
120+
<string name="rate_dialog_cancel">Remind Me Later</string>
121+
<string name="rate_dialog_no">No, Thanks</string>
122+
</resources>
123+
```
124+
125+
## Localization
126+
127+
Android-Rate currently supports the following languages:
128+
129+
- English
130+
- Spanish
131+
- French
132+
- Chinese
133+
- Korean
134+
- Japanese
135+
- Vietnamese
136+
- Polish
137+
- Czech
138+
- Russian
139+
- Ukrainian
140+
- Hebrew
141+
- Portuguese
142+
143+
## Contribute
144+
145+
1. Fork it
146+
2. Create your feature branch (`git checkout -b my-new-feature`)
147+
3. Commit your changes (`git commit -am 'Added some feature'`)
148+
4. Push to the branch (`git push origin my-new-feature`)
149+
5. Create new Pull Request
150+
151+
## Contributor
152+
153+
- [androhi](https://github.com/androhi)
154+
- [hoang8f](https://github.com/hoang8f)
155+
- [mrmike](https://github.com/mrmike)
156+
- [maarekj](https://github.com/maarekj)
157+
- [TomasValenta](https://github.com/TomasValenta)
158+
- [nein37](https://github.com/nein37)
159+
- [marta-rodriguez](https://github.com/marta-rodriguez)
160+
- [Bersh](https://github.com/Bersh)
161+
- [amitkot](https://github.com/amitkot)
162+
- [joelbrito](https://github.com/joelbrito)
163+
164+
## Used
165+
166+
- [Zaim](https://play.google.com/store/apps/details?id=net.zaim.android)
167+
- [就活マネージャー](https://play.google.com/store/apps/details?id=jp.co.recruit.shukatsumgr2016)
168+
- [candlecake](https://play.google.com/store/apps/details?id=com.eranamit.candlecake&referrer=utm_source%3DAndroid-Rate)

libraries/survey-dialog/build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apply plugin: 'android-library'
2+
3+
android {
4+
compileSdkVersion 19
5+
buildToolsVersion '19.1.0'
6+
defaultConfig {
7+
minSdkVersion 7
8+
targetSdkVersion 19
9+
}
10+
11+
lintOptions {
12+
abortOnError false
13+
}
14+
15+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Add project specific ProGuard rules here.
2+
# By default, the flags in this file are appended to flags specified
3+
# in /opt/android-studio/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+
#}

0 commit comments

Comments
 (0)