Skip to content

Commit c77eebb

Browse files
chore: Release v1.1.0 (#2227)
chore: Release v1.1.0
2 parents bba2301 + f7c1b51 commit c77eebb

File tree

115 files changed

+3799
-635
lines changed

Some content is hidden

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

115 files changed

+3799
-635
lines changed

.github/release-drafter.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name-template: v$NEXT_PATCH_VERSION 🌈
2+
tag-template: v$NEXT_PATCH_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+
16+
$CHANGES
17+
18+
## Contributors
19+
20+
Thanks a lot to our contributors for making this release possible:
21+
$CONTRIBUTORS

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,12 @@ Our chat channel is on gitter here: https://gitter.im/fossasia/susi_android
4242
<tr>
4343
<td><img src="docs/_static/groupwise_skills.png" height = "480" width="270"></td>
4444
<td><img src="docs/_static/rating_and_feedback.png" height = "480" width="270"></td>
45-
<td><img src="docs/_static/settings.png" height = "480" width="270"></td>
45+
<td><img src="docs/_static/settings1.png" height = "480" width="270"></td>
46+
</tr>
47+
<tr>
48+
<td><img src="docs/_static/settings2.png" height = "480" width="270"></td>
49+
<td><img src="docs/_static/help.png" height = "480" width="270"></td>
50+
<td><img src="docs/_static/privacy.png" height = "480" width="270"></td>
4651
</tr>
4752
</table>
4853

@@ -59,7 +64,7 @@ Please find info about the set up of the Android app in your development environ
5964
- Realm [Docs](https://realm.io/docs/java/latest/)
6065
- Retrofit [Docs](http://square.github.io/retrofit/2.x/retrofit/)
6166
- ButterKnife [Docs](http://jakewharton.github.io/butterknife/javadoc/)
62-
- Espresso [Docs](https://google.github.io/android-testing-support-library/docs/espresso/)
67+
- Espresso [Docs](https://developer.android.com/training/testing/espresso)
6368
- Tajchert Waiting Dots [Docs](https://github.com/tajchert/WaitingDots)
6469
- Picasso [Docs](http://square.github.io/picasso/)
6570
- LeakCanary [Docs](https://github.com/square/leakcanary)
@@ -177,7 +182,7 @@ Go to AndroidManifest.xml and replace the ${YOUTUBE_API_KEY} with the real youtu
177182
178183
## For Testers: Testing the App
179184
If you are a tester and want to test the app, you have two ways to do that:
180-
1. **Installing APK on your device:** You can get debug [APK](https://github.com/fossasia/susi_android/blob/apk/susi-debug.apk) as well as Release [APK](https://github.com/fossasia/susi_android/blob/apk/susi-release.apk) in apk branch of the repository. After each PR merge, both the APKs are automatically updated. So, just download the APK you want and install it on your device. The APKs will always be the latest one.
185+
1. **Installing APK on your device:** You can get debug [APK](https://github.com/fossasia/susi_android/blob/apk/app-fdroid-debug.apk) as well as Release [APK](https://github.com/fossasia/susi_android/blob/apk/app-fdroid-release-unsigned.apk) in apk branch of the repository. After each PR merge, both the APKs are automatically updated. So, just download the APK you want and install it on your device. The APKs will always be the latest one.
181186
2. **Testing on [appetize.io](https://appetize.io/app/mbpprq4xj92c119j7nxdhttjm0):** If you don't want to download the APKs, you can simply go on [this](https://appetize.io/app/mbpprq4xj92c119j7nxdhttjm0) link and use the App on an online simulator. You will always find the latest version of App on that link because it is updated after each PR merge.
182187
183188
## License

app/build.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
plugins {
2-
id "com.diffplug.gradle.spotless" version "3.16.0"
2+
id "com.diffplug.gradle.spotless" version "3.23.0"
33
}
44

55
def rootConfiguration = {}
@@ -12,6 +12,7 @@ apply plugin: 'kotlin-kapt'
1212
apply plugin: 'realm-android'
1313

1414
def YOUTUBE_API_KEY = System.getenv('YOUTUBE_API_KEY') ?: "YOUR_API_KEY"
15+
//noinspection SpellCheckingInspection
1516
def MAPBOX_API_KEY = '"'+System.getenv('MAPBOX_API_KEY')+'"' ?: '"DEFAULT"'
1617

1718
android {
@@ -21,8 +22,8 @@ android {
2122
applicationId "ai.susi"
2223
minSdkVersion rootConfiguration.minSdkVersion
2324
targetSdkVersion rootConfiguration.targetSdkVersion
24-
versionCode 15
25-
versionName "1.0.14"
25+
versionCode 16
26+
versionName "1.1.0"
2627
vectorDrawables.useSupportLibrary = true
2728
// for unit test
2829
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
@@ -72,7 +73,6 @@ android {
7273
includeAndroidResources = true
7374
}
7475
}
75-
7676
}
7777

7878
spotless {
@@ -101,12 +101,12 @@ dependencies {
101101
implementation "com.android.support:cardview-v7:${rootConfiguration.supportLibraryVersion}"
102102
implementation "com.android.support:support-v4:${rootConfiguration.supportLibraryVersion}"
103103
implementation "com.android.support:customtabs:${rootConfiguration.supportLibraryVersion}"
104+
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
104105

105106
//piechart
106107
implementation "com.github.PhilJay:MPAndroidChart:${rootConfiguration.mpAndroidChartVersion}"
107108

108109
//Leak Canary
109-
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
110110
debugImplementation "com.squareup.leakcanary:leakcanary-android:${rootConfiguration.leakCanaryVersion}"
111111
releaseImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${rootConfiguration.leakCanaryVersion}"
112112
testImplementation "com.squareup.leakcanary:leakcanary-android-no-op:${rootConfiguration.leakCanaryVersion}"
@@ -150,5 +150,8 @@ dependencies {
150150
//Timber
151151
implementation "com.jakewharton.timber:timber:${rootConfiguration.timberVersion}"
152152

153+
//Shimmer
154+
implementation 'com.facebook.shimmer:shimmer:0.4.0'
155+
153156
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${rootConfiguration.kotlinVersion}"
154157
}

app/config.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
ext {
22
compileSdkVersion = 28
3-
minSdkVersion = 15
3+
minSdkVersion = 21
44
targetSdkVersion = 28
55

66
//Libraries

app/src/androidTest/java/org/fossasia/susi/ai/chat/ChatActivityTest.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ class ChatActivityTest {
7373
onView(withId(R.id.rv_chat_feed)).check(matches(isDisplayed()))
7474

7575
// checks if layout container for chat box is present
76-
onView(withId(R.id.send_message_layout)).check(matches(isDisplayed()))
76+
onView(withId(R.id.sendMessageLayout)).check(matches(isDisplayed()))
7777

7878
// checks if message box is present
79-
onView(withId(R.id.et_message)).check(matches(isDisplayed()))
79+
onView(withId(R.id.askSusiMessage)).check(matches(isDisplayed()))
8080

8181
// checks if microphone button is present
8282
onView(withId(R.id.btnSpeak)).check(matches(isDisplayed()))

app/src/androidTest/java/org/fossasia/susi/ai/login/LoginActivityTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,17 @@ class LoginActivityTest {
6565
onView(withId(R.id.password)).check(matches(isDisplayed()))
6666

6767
// checks if login button is present
68-
onView(withId(R.id.log_in)).check(matches(isDisplayed()))
68+
onView(withId(R.id.logIn)).check(matches(isDisplayed()))
6969

7070
// checks if forgot password button is present
71-
onView(withId(R.id.forgot_password)).check(matches(isDisplayed()))
71+
onView(withId(R.id.forgotPassword)).check(matches(isDisplayed()))
7272

7373
// checks if checkbox is present
7474
onView(withId(R.id.customer_server)).check(matches(isDisplayed()))
7575

7676
// checks if sign up button is present
77-
onView(withId(R.id.sign_up)).perform(scrollTo())
78-
onView(withId(R.id.sign_up)).check(matches(isDisplayed()))
77+
onView(withId(R.id.signUp)).perform(scrollTo())
78+
onView(withId(R.id.signUp)).check(matches(isDisplayed()))
7979

8080
// checks if skip button is present
8181
onView(withId(R.id.skip)).perform(scrollTo())

app/src/androidTest/java/org/fossasia/susi/ai/signup/SignUpActivityTest.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,13 @@ class SignUpActivityTest {
5454
onView(withId(R.id.password)).check(matches(isDisplayed()))
5555

5656
// checks if confirm password button is present
57-
onView(withId(R.id.confirm_password)).check(matches(isDisplayed()))
57+
onView(withId(R.id.confirmPassword)).check(matches(isDisplayed()))
5858

5959
// checks if checkbox is present
60-
onView(withId(R.id.customer_server)).check(matches(isDisplayed()))
60+
onView(withId(R.id.customServerSignUp)).check(matches(isDisplayed()))
6161

6262
// checks if sign up button is present
63-
onView(withId(R.id.sign_up)).perform(scrollTo())
64-
onView(withId(R.id.sign_up)).check(matches(isDisplayed()))
63+
onView(withId(R.id.signUp)).perform(scrollTo())
64+
onView(withId(R.id.signUp)).check(matches(isDisplayed()))
6565
}
6666
}

app/src/fdroid/java/org/fossasia/susi/ai/chat/YoutubeVid.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import android.net.Uri
77
class YoutubeVid(val context: Context) : IYoutubeVid {
88

99
override fun playYoutubeVid(videoId: String) {
10-
val url: String = "http://www.youtube.com/watch?v=" + videoId
10+
val url = "http://www.youtube.com/watch?v=$videoId"
1111
val videoClient = Intent(Intent.ACTION_VIEW, Uri.parse(url))
1212
context.startActivity(videoClient)
1313
}

app/src/main/AndroidManifest.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
android:label="@string/app_name"
2222
android:theme="@style/AppTheme"
2323
android:vmSafeMode="true">
24-
24+
<activity android:name=".chat.search.ChatSearchActivity"></activity>
2525
<activity
2626
android:name=".login.WelcomeActivity"
2727
android:theme="@style/PreferenceFixTheme.DayNight.NoActionBar">
@@ -69,7 +69,7 @@
6969

7070
<!--
7171
For Developers:
72-
Replay the fabric_api_key to your actual API KEY
72+
Replace the fabric_api_key to your actual API KEY
7373
<meta-data
7474
android:name="io.fabric.ApiKey"
7575
android:value="fabric_api_key" />
@@ -97,7 +97,6 @@
9797
android:name=".skills.feedback.FeedbackActivity"
9898
android:label="See All Reviews"
9999
android:theme="@style/PreferencesThemeLight" />
100-
101100
<activity
102101
android:name=".chat.YouTubeActivity"
103102
android:theme="@style/Theme.AppCompat.Dialog" />

app/src/main/java/org/fossasia/susi/ai/MainApplication.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,13 @@ class MainApplication : Application() {
4141

4242
if (BuildConfig.DEBUG) {
4343
Timber.plant(object : Timber.DebugTree() {
44-
//Add the line number to the tag
44+
// Add the line number to the tag
4545
override fun createStackElementTag(element: StackTraceElement): String? {
4646
return super.createStackElementTag(element) + ": " + element.lineNumber
4747
}
4848
})
4949
} else {
50-
//Release mode
50+
// Release mode
5151
Timber.plant(ReleaseLogTree())
5252
}
5353
}

0 commit comments

Comments
 (0)