Skip to content

Commit d1d55a1

Browse files
Merge pull request #2796 from fossasia/development
chore: Release v1.8.0
2 parents b38638a + e7cc9f5 commit d1d55a1

File tree

268 files changed

+47063
-968
lines changed

Some content is hidden

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

268 files changed

+47063
-968
lines changed

.github/auto_label.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
labels: [fix, chore, ui]
2+
labelMapping:
3+
feat: [feature]
4+
fix(ui): [fix, ui]
5+
feat(ui): [feat, ui]
6+
refactor: [chore, refactor]
7+
chore(refactor): [chore, refactor]
8+
chore(deps): [dependencies]
9+
chore(docs): [chore, docs]
10+
docs: [chore, docs]
11+
test: [chore, test]
12+
chore(ci): [chore, tools, ci]
13+
chore(tools): [chore, tools]
14+
chore(release): [chore, release]

.github/release-drafter.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name-template: v$NEXT_MINOR_VERSION 🌈
2+
tag-template: v$NEXT_MINOR_VERSION
3+
categories:
4+
- title: 🚀 Features
5+
label: feature
6+
- title: 🐛 Bug Fixes
7+
label: fix
8+
- title: ⚒️ Maintenance
9+
label: chore
10+
- title: Dependencies and Libraries
11+
label: dependencies
12+
change-template: '- $TITLE (#$NUMBER) - @$AUTHOR'
13+
template: |
14+
## Changes
15+
$CHANGES
16+
17+
## Contributors
18+
19+
Thanks a lot to our contributors for making this release possible:
20+
$CONTRIBUTORS

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ build
99
/docs/keystore
1010
/app/src/main/3rdparty/
1111
/app/src/main/jniLibs/
12+
/app/src/main/jni/include
1213
libopencv_*
1314
viewflow/
1415
keystore.properties

.travis.yml

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
11
language: android
22
jdk: oraclejdk8
3+
sudo: false
4+
dist: trusty
35

46
env:
57
global:
68
- ANDROID_API_LEVEL=22
79
- ANDROID_BUILD_TOOLS_VERSION=25.0.3
8-
- ANDROID_ABI=armeabi-v7a
10+
- ANDROID_ABI=armeabi-v7a arm64-v8a x86 x86_64
911
- ANDROID_TAG=google_apis
1012
- ANDROID_TARGET=android-25
1113
- ADB_INSTALL_TIMEOUT=20 # minutes (2 minutes by default)
12-
matrix:
13-
- COMPONENT=BUILD
14-
- COMPONENT=CONNECTED_TEST
15-
- COMPONENT=ASSEMBLE_RELEASE
1614

1715
android:
1816
components:
@@ -34,7 +32,7 @@ android:
3432
- '.+'
3533
# Specify at least one system image
3634
- sys-img-armeabi-v7a-android-$ANDROID_API_LEVEL
37-
35+
3836
# prevents reuploading of Cache
3937
before_cache:
4038
- rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
@@ -51,13 +49,11 @@ before_install:
5149
- mkdir "$ANDROID_HOME/licenses" || true
5250
- echo -e "\n8933bad161af4178b1185d1a37fbf41ea5269c55" > "$ANDROID_HOME/licenses/android-sdk-license"
5351
- echo -e "\n84831b9409646a918e30573bab4c9c91346d8abd" > "$ANDROID_HOME/licenses/android-sdk-preview-license"
54-
- export NDK_VERSION=r10e
55-
- curl -L http://dl.google.com/android/ndk/android-ndk-${NDK_VERSION}-linux-x86_64.bin -O
56-
- chmod u+x android-ndk-${NDK_VERSION}-linux-x86_64.bin
57-
- ./android-ndk-${NDK_VERSION}-linux-x86_64.bin > /dev/null
58-
- rm android-ndk-${NDK_VERSION}-linux-x86_64.bin
59-
- export ANDROID_NDK_HOME=`pwd`/android-ndk-${NDK_VERSION}
60-
- export PATH=${ANDROID_NDK_HOME}:${PATH}
52+
- curl https://dl.google.com/android/repository/android-ndk-r18b-linux-x86_64.zip -o android-ndk-r18b.zip
53+
- unzip -q android-ndk-r18b.zip && rm android-ndk-r18b.zip
54+
- mv android-ndk-r18b $HOME
55+
- export ANDROID_NDK=$HOME/android-ndk-r18b
56+
6157

6258
install:
6359
- sdkmanager --list || true
@@ -66,23 +62,28 @@ install:
6662
- echo yes | sdkmanager "extras;m2repository;com;android;support;constraint;constraint-layout-solver;1.0.2"
6763

6864
licenses:
69-
- 'android-sdk-preview-license-.+'
70-
- 'android-sdk-license-.+'
71-
- 'google-gdk-license-.+'
65+
- 'android-sdk-preview-license-.+'
66+
- 'android-sdk-license-.+'
67+
- 'google-gdk-license-.+'
7268

7369
before_script:
7470
- ./scripts/download_open_cv.sh
75-
- ./scripts/prepare_avd.sh
71+
- echo "Starting AVD"
72+
- echo no | android create avd --force -n test -t android-22 --abi armeabi-v7a
73+
- emulator -avd test -no-audio -no-window &
74+
- android-wait-for-emulator
75+
- adb shell input keyevent 82 &
7676

7777
script:
7878
- ./gradlew spotlessCheck
7979
- ./scripts/copy_opencv.sh
80-
- ./scripts/main_script.sh
80+
- ./gradlew build
81+
- ./gradlew build connectedAndroidTest jacocoTestReport --stacktrace
8182

8283
after_success:
8384
- bash <(curl -s https://codecov.io/bash)
8485
- bash scripts/prep-key.sh
8586
- bash scripts/update-apk.sh
8687

8788
notifications:
88-
slack: fossasia:JgzycrBUs0nKnmJhsAxCB4bL
89+
slack: fossasia:JgzycrBUs0nKnmJhsAxCB4bL

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<a href='https://phimp.me'>Phimp.me</a> is an Android image editor app that aims to replace proprietary photographing and image apps on smart phones. It offers features such as taking photos, adding filters, editing images and uploading them to social networks. Phimp.me stands for **Ph**otos - **Im**ages - **P**ictures. It is developed at <a href='https://fossasia.org'>FOSSASIA</a> together with a global community.
88

99

10-
| Master | Development | Codecov | Code Quality | Chat |
11-
|------------|-----------------|-------------|-----------------|-----------------|
12-
| [![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) |
10+
| Master | Development | Codecov | Code Quality | Chat | Twitter |
11+
|------------|-----------------|-------------|-----------------|-----------------|-----------------|
12+
| [![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

1414
## Screenshots
1515

@@ -103,13 +103,14 @@ Before you begin, you should have already downloaded the Android Studio SDK and
103103

104104
- *Note:* If you receive a Gradle sync error titled, "failed to find ...", you should click on the link below the error message (if available) that says *Install missing platform(s) and sync project* and allow Android studio to fetch you what is missing.
105105

106-
6. Download this [OpenCV-android-sdk](https://github.com/opencv/opencv/releases/download/2.4.13.3/opencv-2.4.13.3-android-sdk.zip) zip file and extract it.
106+
6. Download this [OpenCV-android-sdk](https://github.com/opencv/opencv/releases/download/4.0.1/opencv-4.0.1-android-sdk.zip) zip file and extract it.
107107

108108
- Copy all the files from *"OpenCV-android-sdk/sdk/native/3rdparty"* to *"phimpme-android/app/src/main/3rdparty"* (create directory if it doesn't exist)
109109
- Copy all the files from *"OpenCV-android-sdk/sdk/native/libs"* to *"phimpme-android/app/src/main/jniLibs"* (create directory if it doesn't exist)
110+
- Copy all the files from *"OpenCV-android-sdk/sdk/native/jni/include"* to *"phimpme-android/app/src/main/jni/include"* (create directory if it doesn't exist)
110111
- Now build your project. If your build fails then try deleting these build directories *"phimpme-android/app/.externalNativeBuild"* and *"phimpme-android/app/build"*, if they exist and run the build again.
111112

112-
7. If build error still persist, try replacing ndk with ndk version 16b from [ndk-archives](https://developer.android.com/ndk/downloads/older_releases) . Once all build errors have been resolved, you should be all set to build the app and test it.
113+
7. If build error still persist, try replacing ndk with ndk version 18b from [ndk-archives](https://developer.android.com/ndk/downloads/older_releases) . Once all build errors have been resolved, you should be all set to build the app and test it.
113114

114115
8. To Build the app, go to *Build > Make Project* (or alternatively press the Make Project icon in the toolbar).
115116

app/build.gradle

Lines changed: 60 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ buildscript {
33
jcenter()
44
}
55
dependencies {
6-
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.1'
6+
classpath 'com.dicedmelon.gradle:jacoco-android:0.1.4'
77
}
88
}
99

@@ -22,19 +22,21 @@ def keystoreProperties = new Properties()
2222
keystoreProperties.load(new FileInputStream(keystorePropertiesFile))
2323

2424
android {
25-
compileSdkVersion 26
26-
buildToolsVersion "26.0.3"
25+
compileSdkVersion 28
26+
buildToolsVersion "28.0.3"
2727

2828
defaultConfig {
2929
applicationId "org.fossasia.phimpme"
3030
minSdkVersion 21
31-
targetSdkVersion 26
31+
targetSdkVersion 28
32+
versionCode 11
33+
versionName '1.8.0'
3234
multiDexEnabled true
3335
testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
3436
vectorDrawables.useSupportLibrary = true
3537
resConfigs "en"
3638
ndk {
37-
abiFilters 'armeabi-v7a', 'x86'
39+
abiFilters 'armeabi-v7a','arm64-v8a','x86','x86_64'
3840
}
3941
renderscriptTargetApi 19
4042
renderscriptSupportModeEnabled true
@@ -62,7 +64,7 @@ android {
6264
}
6365

6466
configurations {
65-
compile.exclude group: 'org.jetbrains', module: 'annotations'
67+
implementation.exclude group: 'org.jetbrains', module: 'annotations'
6668
all*.exclude group: 'com.android.volley'
6769
}
6870

@@ -112,98 +114,102 @@ spotless {
112114
}
113115

114116
dependencies {
115-
compile fileTree(include: ['*.jar'], dir: 'libs')
116-
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
117+
implementation fileTree(include: ['*.jar'], dir: 'libs')
118+
androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2', {
117119
exclude group: 'com.android.support', module: 'support-annotations'
118120
})
119121

122+
implementation 'com.mcxiaoke.volley:library:1.0.19'
123+
120124
//google and support
121-
compile "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
122-
compile "com.android.support:design:$rootProject.supportLibraryVersion"
123-
compile "com.android.support:support-vector-drawable:$rootProject.supportLibraryVersion"
124-
compile "com.android.support:palette-v7:$rootProject.supportLibraryVersion"
125-
compile "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
126-
compile "com.android.support:customtabs:$rootProject.supportLibraryVersion"
127-
compile 'com.android.support.constraint:constraint-layout:1.0.2'
125+
implementation "com.android.support:appcompat-v7:$rootProject.supportLibraryVersion"
126+
implementation "com.android.support:animated-vector-drawable:28.0.0"
127+
implementation "com.android.support:support-v4:28.0.0"
128+
implementation "com.android.support:design:$rootProject.supportLibraryVersion"
129+
implementation "com.android.support:support-vector-drawable:$rootProject.supportLibraryVersion"
130+
implementation "com.android.support:palette-v7:$rootProject.supportLibraryVersion"
131+
implementation "com.android.support:cardview-v7:$rootProject.supportLibraryVersion"
132+
implementation "com.android.support:customtabs:$rootProject.supportLibraryVersion"
133+
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
128134

129135
//exoplayer
130-
compile 'com.google.android.exoplayer:exoplayer:r1.5.7'
136+
implementation 'com.google.android.exoplayer:exoplayer:r1.5.7'
131137

132138
//utils
133-
compile 'com.github.deano2390:MaterialShowcaseView:1.2.0@aar'
134-
compile "com.jakewharton:butterknife:$rootProject.butterknifeVersion"
139+
implementation 'com.github.deano2390:MaterialShowcaseView:1.2.0@aar'
140+
implementation "com.jakewharton:butterknife:$rootProject.butterknifeVersion"
135141
annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.butterknifeVersion"
136-
compile 'com.github.bumptech.glide:glide:3.7.0'
137-
compile 'com.yalantis:ucrop:1.5.0'
138-
compile 'de.psdev.licensesdialog:licensesdialog:1.8.0'
139-
/*compile('com.crashlytics.sdk.android:crashlytics:2.9.3@aar') {
142+
implementation 'com.github.bumptech.glide:glide:3.7.0'
143+
implementation 'com.yalantis:ucrop:1.5.0'
144+
implementation 'de.psdev.licensesdialog:licensesdialog:1.8.0'
145+
/*implementation('com.crashlytics.sdk.android:crashlytics:2.9.3@aar') {
140146
transitive = true;
141147
}*/
142148

143-
compile 'com.koushikdutta.ion:ion:2.1.7'
144-
compile 'org.jetbrains:annotations-java5:15.0'
145-
compile 'com.android.support:multidex:1.0.1'
146-
compile group: 'com.box', name: 'box-android-sdk', version: '4.0.8'
149+
implementation 'com.koushikdutta.ion:ion:2.1.7'
150+
implementation 'org.jetbrains:annotations-java5:15.0'
151+
implementation 'com.android.support:multidex:1.0.3'
152+
implementation group: 'com.box', name: 'box-android-sdk', version: '4.0.8'
147153

148154
//icons
149-
compile 'com.mikepenz:iconics-core:2.8.4@aar'
150-
compile 'com.mikepenz:google-material-typeface:2.2.0.3.original@aar'
151-
compile 'com.mikepenz:community-material-typeface:1.5.54.2@aar'
152-
compile 'com.mikepenz:fontawesome-typeface:4.6.0.1@aar'
153-
compile 'com.mikepenz:ionicons-typeface:+@aar'
155+
implementation 'com.mikepenz:iconics-core:2.8.4@aar'
156+
implementation 'com.mikepenz:google-material-typeface:2.2.0.3.original@aar'
157+
implementation 'com.mikepenz:community-material-typeface:1.5.54.2@aar'
158+
implementation 'com.mikepenz:fontawesome-typeface:4.6.0.1@aar'
159+
implementation 'com.mikepenz:ionicons-typeface:+@aar'
154160

155161
//ui
156-
compile 'de.hdodenhof:circleimageview:2.0.0'
157-
compile 'uz.shift:colorpicker:0.5@aar'
158-
compile 'com.turingtechnologies.materialscrollbar:lib:10.0.3'
159-
compile 'pl.droidsonroids.gif:android-gif-drawable:1.2.7'
160-
compile 'com.github.shchurov:horizontalwheelview:0.9.5'
161-
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
162+
implementation 'de.hdodenhof:circleimageview:2.0.0'
163+
implementation 'uz.shift:colorpicker:0.5@aar'
164+
implementation 'com.turingtechnologies.materialscrollbar:lib:10.0.3'
165+
implementation 'pl.droidsonroids.gif:android-gif-drawable:1.2.7'
166+
implementation 'com.github.shchurov:horizontalwheelview:0.9.5'
167+
implementation 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
162168

163169
//twitter
164-
compile "com.twitter.sdk.android:twitter:$rootProject.twitterVersion"
165-
compile files('libs/twitter4j-core-3.0.5.jar')
166-
compile files('libs/twitter4j-media-support-3.0.5.jar')
170+
implementation "com.twitter.sdk.android:twitter:$rootProject.twitterVersion"
171+
implementation files('libs/twitter4j-core-3.0.5.jar')
172+
implementation files('libs/twitter4j-media-support-3.0.5.jar')
167173

168174
//cloud rail
169-
compile 'com.cloudrail:cloudrail-si-android:2.20.1'
175+
implementation 'com.cloudrail:cloudrail-si-android:2.20.1'
170176

171177
//next cloud
172-
compile "com.github.nextcloud:android-library:$rootProject.nextCloudVersion"
178+
implementation "com.github.nextcloud:android-library:$rootProject.nextCloudVersion"
173179

174180
//leak canary
175-
debugCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
176-
releaseCompile 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
181+
debugImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
182+
releaseImplementation 'com.squareup.leakcanary:leakcanary-android-no-op:1.5.1'
177183

178184
//flickr
179-
compile files('libs/flickrj-android-2.1.0.jar')
185+
implementation files('libs/flickrj-android-2.1.0.jar')
180186

181187
//tumblr
182-
compile('com.tumblr:jumblr:0.0.11') {
188+
implementation('com.tumblr:jumblr:0.0.11') {
183189
exclude module: 'scribe'
184190
}
185191

186192
//realm
187-
compile 'com.uphyca:stetho_realm:2.0.0'
193+
implementation 'com.uphyca:stetho_realm:2.0.0'
188194

189195
//metadataextractor
190-
compile 'com.drewnoakes:metadata-extractor:2.9.1'
196+
implementation 'com.drewnoakes:metadata-extractor:2.9.1'
191197

192198
//tests
193-
testCompile "junit:junit:$rootProject.junitVersion"
194-
androidTestCompile 'com.google.code.findbugs:jsr305:3.0.0'
199+
testImplementation "junit:junit:$rootProject.junitVersion"
200+
androidTestImplementation 'com.google.code.findbugs:jsr305:3.0.0'
195201

196202
//opencv
197-
compile project(':openCVLibrary24133')
203+
implementation project(':openCV')
198204

199205
//pdk
200-
compile project(':pdk')
206+
implementation project(':pdk')
201207

202208
//photoview
203-
compile project(':photoview')
209+
implementation project(':photoview')
204210

205211
//compressor
206-
compile 'id.zelory:compressor:2.1.0'
212+
implementation 'id.zelory:compressor:2.1.0'
207213

208214
}
209215

app/lint.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,6 @@
147147
<issue id="WorldWriteableFiles" severity="ignore" />
148148
<issue id="WrongManifestParent" severity="ignore" />
149149
<issue id="WrongViewCast" severity="ignore" />
150+
<issue id="LongLogTag" severity="ignore" />
151+
150152
</lint>

app/src/androidTest/java/org/fossasia/phimpme/leafpic/activities/HomeScreenTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@
1212
import android.app.KeyguardManager;
1313
import android.support.test.annotation.UiThreadTest;
1414
import android.support.test.espresso.ViewInteraction;
15+
import android.support.test.filters.LargeTest;
1516
import android.support.test.rule.ActivityTestRule;
1617
import android.support.test.runner.AndroidJUnit4;
17-
import android.test.suitebuilder.annotation.LargeTest;
1818
import android.view.View;
1919
import android.view.ViewGroup;
2020
import android.view.ViewParent;

app/src/androidTest/java/org/fossasia/phimpme/leafpic/activities/PhotoActivityTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
import static org.hamcrest.Matchers.allOf;
88

99
import android.support.test.espresso.ViewInteraction;
10+
import android.support.test.filters.LargeTest;
1011
import android.support.test.rule.ActivityTestRule;
1112
import android.support.test.runner.AndroidJUnit4;
12-
import android.test.suitebuilder.annotation.LargeTest;
1313
import org.fossasia.phimpme.R;
1414
import org.fossasia.phimpme.opencamera.Camera.PhotoActivity;
1515
import org.junit.Ignore;

app/src/androidTest/java/org/fossasia/phimpme/leafpic/activities/SettingsActivityTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111
import android.app.KeyguardManager;
1212
import android.support.test.annotation.UiThreadTest;
1313
import android.support.test.espresso.ViewInteraction;
14+
import android.support.test.filters.LargeTest;
1415
import android.support.test.rule.ActivityTestRule;
1516
import android.support.test.runner.AndroidJUnit4;
16-
import android.test.suitebuilder.annotation.LargeTest;
1717
import android.view.WindowManager;
1818
import org.fossasia.phimpme.R;
1919
import org.fossasia.phimpme.gallery.activities.SettingsActivity;

0 commit comments

Comments
 (0)