Skip to content

Commit 45cf591

Browse files
Merge pull request #3053 from fossasia/development
2 parents b84cb09 + f62234c commit 45cf591

32 files changed

+524
-1771
lines changed

.travis.yml

+91-82
Original file line numberDiff line numberDiff line change
@@ -1,96 +1,105 @@
1-
language: android
2-
jdk: oraclejdk8
3-
sudo: true
4-
dist: trusty
1+
jobs:
2+
include:
3+
- language: android
4+
jdk: oraclejdk8
5+
sudo: true
6+
dist: trusty
57

6-
env:
7-
global:
8-
- ANDROID_API_LEVEL=22
9-
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
10-
- ANDROID_ABI=armeabi-v7a arm64-v8a x86 x86_64
11-
- ANDROID_TAG=google_apis
12-
- ANDROID_TARGET=android-25
13-
- ADB_INSTALL_TIMEOUT=20 # minutes (2 minutes by default)
8+
env:
9+
- ANDROID_API_LEVEL=22
10+
- ANDROID_BUILD_TOOLS_VERSION=28.0.3
11+
- ANDROID_ABI=armeabi-v7a arm64-v8a x86 x86_64
12+
- ANDROID_TAG=google_apis
13+
- ANDROID_TARGET=android-25
14+
- ADB_INSTALL_TIMEOUT=20 # minutes (2 minutes by default)
1415

15-
android:
16-
components:
17-
- tools
18-
- platform-tools
19-
- android-$ANDROID_API_LEVEL
20-
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
21-
- android-$ANDROID_API_LEVEL
22-
# For Google APIs
23-
- addon-google_apis-google-$ANDROID_API_LEVEL
24-
# Google Play Services
25-
- extra-google-google_play_services
26-
# Support library
27-
- extra-android-support
28-
# Latest artifacts in local repository
29-
- extra-google-m2repository
30-
- extra-android-m2repository
31-
- android-sdk-license-.+
32-
- '.+'
33-
# Specify at least one system image
34-
- sys-img-armeabi-v7a-android-$ANDROID_API_LEVEL
16+
android:
17+
components:
18+
- tools
19+
- platform-tools
20+
- android-$ANDROID_API_LEVEL
21+
- build-tools-$ANDROID_BUILD_TOOLS_VERSION
22+
- android-$ANDROID_API_LEVEL
23+
# For Google APIs
24+
- addon-google_apis-google-$ANDROID_API_LEVEL
25+
# Google Play Services
26+
- extra-google-google_play_services
27+
# Support library
28+
- extra-android-support
29+
# Latest artifacts in local repository
30+
- extra-google-m2repository
31+
- extra-android-m2repository
32+
- android-sdk-license-.+
33+
- '.+'
34+
# Specify at least one system image
35+
- sys-img-armeabi-v7a-android-$ANDROID_API_LEVEL
3536

36-
# prevents reuploading of Cache
37-
before_cache:
38-
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
37+
# prevents reuploading of Cache
38+
before_cache:
39+
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
3940

40-
cache:
41-
directories:
42-
- "${TRAVIS_BUILD_DIR}/android/gradle/caches/"
43-
- "${TRAVIS_BUILD_DIR}/android/gradle/wrapper/dists/"
44-
- "$HOME/android/.gradle/caches/"
45-
- "$HOME/android/.gradle/wrapper/"
46-
- "$HOME/.android/build-cache"
47-
- "${TRAVIS_BUILD_DIR}/cache"
41+
cache:
42+
directories:
43+
- "${TRAVIS_BUILD_DIR}/android/gradle/caches/"
44+
- "${TRAVIS_BUILD_DIR}/android/gradle/wrapper/dists/"
45+
- "$HOME/android/.gradle/caches/"
46+
- "$HOME/android/.gradle/wrapper/"
47+
- "$HOME/.android/build-cache"
48+
- "${TRAVIS_BUILD_DIR}/cache"
4849

49-
before_install:
50-
- mkdir "$ANDROID_HOME/licenses" || true
51-
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
52-
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
53-
- curl https://dl.google.com/android/repository/android-ndk-r18b-linux-x86_64.zip -o android-ndk-r18b.zip
54-
- unzip -q android-ndk-r18b.zip && rm android-ndk-r18b.zip
55-
- mv android-ndk-r18b $HOME
56-
- export ANDROID_NDK=$HOME/android-ndk-r18b
50+
before_install:
51+
- mkdir "$ANDROID_HOME/licenses" || true
52+
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
53+
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
54+
- curl https://dl.google.com/android/repository/android-ndk-r18b-linux-x86_64.zip -o android-ndk-r18b.zip
55+
- unzip -q android-ndk-r18b.zip && rm android-ndk-r18b.zip
56+
- mv android-ndk-r18b $HOME
57+
- export ANDROID_NDK=$HOME/android-ndk-r18b
5758

5859

59-
install:
60-
- sdkmanager --list || true
61-
- echo yes | ${ANDROID_HOME}/tools/bin/sdkmanager "platforms;android-26"
62-
- echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2"
63-
- echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2"
60+
install:
61+
- sdkmanager --list || true
62+
- echo yes | ${ANDROID_HOME}/tools/bin/sdkmanager "platforms;android-26"
63+
- echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout;1.0.2"
64+
- echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2"
6465

65-
licenses:
66-
- 'android-sdk-preview-license-.+'
67-
- 'android-sdk-license-.+'
68-
- 'google-gdk-license-.+'
66+
licenses:
67+
- 'android-sdk-preview-license-.+'
68+
- 'android-sdk-license-.+'
69+
- 'google-gdk-license-.+'
6970

70-
before_script:
71-
- ./scripts/setup_opencv.sh
72-
- echo "Starting AVD"
73-
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
74-
- emulator -avd test -no-audio -no-window &
75-
- android-wait-for-emulator
76-
- adb shell input keyevent 82 &
77-
- bash scripts/prep-key.sh
71+
before_script:
72+
- ./scripts/setup_opencv.sh
73+
- echo "Starting AVD"
74+
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
75+
- emulator -avd test -no-audio -no-window &
76+
- android-wait-for-emulator
77+
- adb shell input keyevent 82 &
78+
- bash scripts/prep-key.sh
7879

79-
script:
80-
- ./gradlew spotlessCheck
81-
- ./gradlew build
82-
- ./gradlew build connectedAndroidTest jacocoTestReport --stacktrace
80+
script:
81+
- ./gradlew spotlessCheck
82+
- ./gradlew build
83+
- ./gradlew build connectedAndroidTest jacocoTestReport --stacktrace
8384

84-
after_success:
85-
- bash <(curl -s https://codecov.io/bash)
86-
- bash scripts/update-apk.sh
85+
after_success:
86+
- bash <(curl -s https://codecov.io/bash)
87+
- bash scripts/update-apk.sh
8788

88-
deploy:
89-
- provider: script
90-
skip_cleanup: true
91-
script: bash scripts/upload-gh-pages.sh
92-
on:
93-
all_branches: true
89+
- language: python
90+
python: 3.7
91+
install:
92+
- pip install Sphinx
93+
- pip install git+https://github.com/bashtage/sphinx-material
94+
- pip install m2r
95+
- pip install sphinx-git
96+
script: skip
97+
deploy:
98+
- provider: script
99+
skip_cleanup: true
100+
script: bash scripts/upload-gh-pages.sh
101+
on:
102+
all_branches: true
94103

95104
notifications:
96-
slack: fossasia:JgzycrBUs0nKnmJhsAxCB4bL
105+
slack: fossasia:JgzycrBUs0nKnmJhsAxCB4bL

README.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
|------------|-----------------|-------------|-----------------|-----------------|-----------------|
1212
| [![Build Status](https://travis-ci.org/fossasia/phimpme-android.svg?branch=master)](https://travis-ci.org/fossasia/phimpme-android) | [![Build Status](https://travis-ci.org/fossasia/phimpme-android.svg?branch=development)](https://travis-ci.org/fossasia/phimpme-android) | [![codecov](https://codecov.io/gh/fossasia/phimpme-android/branch/master/graph/badge.svg)](https://codecov.io/gh/fossasia/phimpme-android) | [![Codacy Badge](https://api.codacy.com/project/badge/Grade/4584003e734343b3b8ce94bcae6e9ca4)](https://www.codacy.com/app/harshithdwivedi/phimpme-android?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=fossasia/phimpme-android&amp;utm_campaign=Badge_Grade) | [![Gitter Room](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-blue.svg)](https://gitter.im/fossasia/phimpme) | [![Twitter Follow](https://img.shields.io/twitter/follow/phimpme.svg?style=social&label=Follow&maxAge=2592000?style=flat-square)](https://twitter.com/phimpme) |
1313

14+
## Download from Play Store
15+
<img src="docs/images/phimp-me-qrcode.png">
16+
1417
## Screenshots
1518

1619
<p float="left">
@@ -83,7 +86,7 @@ We have the following branches
8386
This branch contains automatically generated apk file for testing.
8487

8588
* **gh-pages**
86-
Hosting the landing page [phimp.me](http://phimp.me)
89+
For reference gh-pages branch is hosting the Gihub-Pages link for this Repo at https://fossasia.github.io/phimpme-android/
8790

8891
## Development Setup
8992

app/build.gradle

100755100644
+18-16
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ android {
3232
applicationId "org.fossasia.phimpme"
3333
minSdkVersion 21
3434
targetSdkVersion 29
35-
versionCode 13
36-
versionName '1.10.0'
35+
versionCode 14
36+
versionName '1.11.0'
3737
multiDexEnabled true
3838
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
3939
vectorDrawables.useSupportLibrary = true
@@ -144,17 +144,17 @@ dependencies {
144144
//retrofit
145145
implementation "com.squareup.retrofit2:retrofit:$rootProject.retrofitVersion"
146146
implementation "com.squareup.retrofit2:converter-gson:$rootProject.retrofitVersion"
147-
implementation 'com.squareup.okhttp3:logging-interceptor:4.2.0'
147+
implementation 'com.squareup.okhttp3:logging-interceptor:4.4.1'
148148

149149
//google and support
150150
implementation "androidx.appcompat:appcompat:$rootProject.supportLibraryVersion"
151151
implementation "androidx.vectordrawable:vectordrawable-animated:1.1.0"
152152
implementation "androidx.legacy:legacy-support-v4:1.0.0"
153-
implementation "com.google.android.material:material:1.0.0"
153+
implementation "com.google.android.material:material:1.1.0"
154154
implementation "androidx.vectordrawable:vectordrawable:1.1.0"
155155
implementation "androidx.palette:palette:1.0.0"
156156
implementation "androidx.cardview:cardview:1.0.0"
157-
implementation "androidx.browser:browser:1.0.0"
157+
implementation "androidx.browser:browser:1.2.0"
158158
implementation "androidx.recyclerview:recyclerview:1.0.0"
159159
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
160160

@@ -164,19 +164,18 @@ dependencies {
164164
implementation "androidx.lifecycle:lifecycle-extensions:$rootProject.lifecycleVersion"
165165

166166
//utils
167-
implementation 'com.github.deano2390:MaterialShowcaseView:1.2.0@aar'
167+
implementation 'com.getkeepsafe.taptargetview:taptargetview:1.13.0'
168168
implementation "com.jakewharton:butterknife:$rootProject.butterknifeVersion"
169169
annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.butterknifeVersion"
170170
implementation "com.github.bumptech.glide:glide:$rootProject.glideVersion"
171171
implementation "com.github.bumptech.glide:gifencoder-integration:$rootProject.glideVersion"
172172
implementation 'com.yalantis:ucrop:1.5.0'
173-
implementation 'de.psdev.licensesdialog:licensesdialog:1.8.0'
174173
/*implementation('com.crashlytics.sdk.android:crashlytics:2.9.3@aar') {
175174
transitive = true;
176175
}*/
177176

178-
implementation 'com.koushikdutta.ion:ion:2.1.7'
179-
implementation 'org.jetbrains:annotations-java5:15.0'
177+
implementation 'com.koushikdutta.ion:ion:3.0.8'
178+
implementation 'org.jetbrains:annotations-java5:18.0.0'
180179
implementation 'com.android.support:multidex:1.0.3'
181180
implementation group: 'com.box', name: 'box-android-sdk', version: '5.0.0'
182181

@@ -188,10 +187,10 @@ dependencies {
188187
implementation 'com.mikepenz:ionicons-typeface:+@aar'
189188

190189
//ui
191-
implementation 'de.hdodenhof:circleimageview:2.0.0'
192-
implementation 'uz.shift:colorpicker:0.5@aar'
193-
implementation 'com.turingtechnologies.materialscrollbar:lib:10.0.3'
194-
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.7'
190+
implementation 'de.hdodenhof:circleimageview:3.1.0'
191+
implementation 'me.jfenn.ColorPickerDialog:base:0.2.1'
192+
implementation 'com.turingtechnologies.materialscrollbar:lib:10.1.4'
193+
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.19'
195194
implementation 'com.github.shchurov:horizontalwheelview:0.9.5'
196195
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
197196

@@ -201,19 +200,19 @@ dependencies {
201200
//twitter
202201
implementation "com.twitter.sdk.android:twitter:$rootProject.twitterVersion"
203202
implementation "org.twitter4j:twitter4j-core:3.0.5"
204-
implementation "org.twitter4j:twitter4j-media-support:3.0.5"
203+
implementation "org.twitter4j:twitter4j-media-support:4.0.6"
205204

206205
implementation 'com.dropbox.core:dropbox-core-sdk:3.1.1'
207206

208207
//next cloud
209208
implementation "com.github.nextcloud:android-library:$rootProject.nextCloudVersion"
210209

211210
//leak canary
212-
debugImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
211+
debugImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.6.3'
213212
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
214213

215214
//tumblr
216-
implementation('com.tumblr:jumblr:0.0.11') {
215+
implementation('com.tumblr:jumblr:0.0.13') {
217216
exclude module: 'scribe'
218217
}
219218

@@ -236,6 +235,9 @@ dependencies {
236235
//compressor
237236
implementation 'id.zelory:compressor:2.1.0'
238237

238+
//about page
239+
implementation 'com.github.medyo:android-about-page:1.2.5'
240+
239241
}
240242

241243
apply plugin: 'com.android.application'

app/src/main/AndroidManifest.xml

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242
android:name=".MyApplication"
4343
android:allowBackup="true"
4444
android:icon="@mipmap/ic_launcher"
45+
android:requestLegacyExternalStorage="true"
4546
android:label="@string/app_name"
4647
android:largeHeap="true"
4748
android:supportsRtl="true"
@@ -273,8 +274,7 @@
273274
<activity
274275
android:name=".gallery.activities.AboutActivity"
275276
android:configChanges="orientation|screenSize"
276-
android:label="@string/about"
277-
android:theme="@style/Theme.AppCompat.NoActionBar">
277+
android:label="@string/about">
278278
</activity>
279279

280280
<activity
@@ -339,7 +339,7 @@
339339
<category android:name="android.intent.category.BROWSABLE" />
340340

341341
<data android:scheme="org.fossasia.phimpme" />
342-
<data android:scheme="pdk4910600717739247160" />
342+
<data android:scheme="pdk4914573327424567067" />
343343
</intent-filter>
344344
</activity>
345345
<activity

0 commit comments

Comments
 (0)