Skip to content

Commit

Permalink
fix: circle ci build
Browse files Browse the repository at this point in the history
  • Loading branch information
dheerajkotwani committed Jan 21, 2020
1 parent 35e0e82 commit 01807c7
Show file tree
Hide file tree
Showing 66 changed files with 142 additions and 131 deletions.
2 changes: 1 addition & 1 deletion app/src/main/java/kotterknife/ButterKnife.kt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@file:Suppress("DEPRECATION", "RECEIVER_NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS")
@file:Suppress("DEPRECATION", "RECEIVER_NULLABILITY_MISMATCH_BASED_ON_JAVA_ANNOTATIONS", "UNUSED_ANONYMOUS_PARAMETER")

package kotterknife

Expand Down
2 changes: 1 addition & 1 deletion app/src/main/java/org/fossasia/susi/ai/MainApplication.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ package org.fossasia.susi.ai

import android.annotation.SuppressLint
import android.app.Application
import androidx.appcompat.app.AppCompatDelegate
import android.util.Log
import androidx.appcompat.app.AppCompatDelegate
import com.facebook.stetho.Stetho
import com.squareup.leakcanary.LeakCanary
import io.realm.Realm
Expand Down
17 changes: 10 additions & 7 deletions app/src/main/java/org/fossasia/susi/ai/chat/ChatActivity.kt
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@file:Suppress("UNUSED_ANONYMOUS_PARAMETER")

package org.fossasia.susi.ai.chat

import ai.kitt.snowboy.MsgEnum
Expand All @@ -21,13 +23,6 @@ import android.os.Message
import android.speech.RecognizerIntent
import android.speech.tts.TextToSpeech
import android.speech.tts.UtteranceProgressListener
import com.google.android.material.snackbar.Snackbar
import androidx.core.app.ActivityCompat
import androidx.core.view.GestureDetectorCompat
import androidx.core.view.ViewCompat
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import android.text.Editable
import android.text.InputType
import android.text.TextWatcher
Expand All @@ -40,6 +35,11 @@ import android.view.animation.OvershootInterpolator
import android.view.inputmethod.EditorInfo
import android.view.inputmethod.InputMethodManager
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.core.app.ActivityCompat
import androidx.core.view.GestureDetectorCompat
import androidx.core.view.ViewCompat
import com.google.android.material.snackbar.Snackbar
import io.realm.RealmResults
import java.util.Locale
import kotlinx.android.synthetic.main.activity_chat.*
Expand Down Expand Up @@ -88,6 +88,7 @@ class ChatActivity : AppCompatActivity(), IChatView {
}
}

@SuppressLint("RestrictedApi")
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_chat)
Expand Down Expand Up @@ -365,6 +366,7 @@ class ChatActivity : AppCompatActivity(), IChatView {
}

// Take user's speech as input and send the message
@SuppressLint("RestrictedApi")
override fun promptSpeechInput() {
if (recordingThread != null) {
chatPresenter.stopHotwordDetection()
Expand All @@ -380,6 +382,7 @@ class ChatActivity : AppCompatActivity(), IChatView {
}

// Replies user with Speech
@SuppressLint("RestrictedApi")
override fun voiceReply(reply: String, language: String) {
searchChat.visibility = View.VISIBLE
fabsetting.visibility = View.VISIBLE
Expand Down
6 changes: 3 additions & 3 deletions app/src/main/java/org/fossasia/susi/ai/chat/STTfragment.kt
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ import android.speech.RecognitionListener
import android.speech.RecognizerIntent
import android.speech.SpeechRecognizer
import android.speech.tts.TextToSpeech
import androidx.annotation.NonNull
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.Toast
import androidx.annotation.NonNull
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import java.util.Locale
import kotlinx.android.synthetic.main.activity_chat.*
import kotlinx.android.synthetic.main.fragment_sttframe.*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.fossasia.susi.ai.chat.adapters.recycleradapters

import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import android.text.Html
import android.text.TextUtils
import android.view.LayoutInflater
import android.view.ViewGroup
import androidx.recyclerview.widget.RecyclerView
import org.fossasia.susi.ai.R
import org.fossasia.susi.ai.chat.adapters.viewholders.RssViewHolder
import org.fossasia.susi.ai.rest.responses.susi.Datum
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ package org.fossasia.susi.ai.chat.adapters.recycleradapters

import android.content.Context
import android.net.Uri
import androidx.browser.customtabs.CustomTabsIntent
import androidx.recyclerview.widget.RecyclerView
import android.text.Html
import android.util.Patterns
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.browser.customtabs.CustomTabsIntent
import androidx.recyclerview.widget.RecyclerView
import org.fossasia.susi.ai.R
import org.fossasia.susi.ai.chat.adapters.viewholders.VerticalCellViewHolder
import timber.log.Timber
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.fossasia.susi.ai.chat.adapters.recycleradapters

import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic.main.activity_chat.btnSpeak
import kotlinx.android.synthetic.main.activity_chat.fabsetting
import kotlinx.android.synthetic.main.activity_chat.searchChat
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package org.fossasia.susi.ai.chat.adapters.recycleradapters

import android.content.Context
import android.net.Uri
import androidx.browser.customtabs.CustomTabsIntent
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.browser.customtabs.CustomTabsIntent
import androidx.recyclerview.widget.RecyclerView
import com.squareup.picasso.Picasso
import org.fossasia.susi.ai.R
import org.fossasia.susi.ai.chat.adapters.viewholders.SearchResultHolder
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.fossasia.susi.ai.chat.adapters.viewholders

import androidx.recyclerview.widget.RecyclerView
import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import kotterknife.bindView
import org.fossasia.susi.ai.R

Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.fossasia.susi.ai.chat.adapters.viewholders

import android.net.Uri
import androidx.browser.customtabs.CustomTabsIntent
import androidx.core.content.ContextCompat
import android.view.View
import android.widget.ImageView
import android.widget.TextView
import androidx.browser.customtabs.CustomTabsIntent
import androidx.core.content.ContextCompat
import butterknife.ButterKnife
import com.squareup.picasso.Picasso
import kotterknife.bindView
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package org.fossasia.susi.ai.chat.adapters.viewholders
import android.content.Context
import android.net.Uri
import android.os.Build
import androidx.browser.customtabs.CustomTabsIntent
import android.text.Html
import android.text.Spanned
import android.text.TextUtils
Expand All @@ -12,6 +11,7 @@ import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.browser.customtabs.CustomTabsIntent
import butterknife.ButterKnife
import com.squareup.picasso.Picasso
import io.github.ponnamkarthik.richlinkpreview.MetaData
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ package org.fossasia.susi.ai.chat.adapters.viewholders
import android.content.Context
import android.content.Intent
import android.net.Uri
import androidx.browser.customtabs.CustomTabsIntent
import androidx.recyclerview.widget.RecyclerView
import android.view.View
import android.widget.ImageView
import androidx.browser.customtabs.CustomTabsIntent
import androidx.recyclerview.widget.RecyclerView
import com.squareup.picasso.Picasso
import kotterknife.bindView
import org.fossasia.susi.ai.R
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.fossasia.susi.ai.chat.adapters.viewholders

import android.content.Context
import androidx.recyclerview.widget.RecyclerView
import android.view.View
import android.widget.ImageView
import android.widget.Toast
import androidx.recyclerview.widget.RecyclerView
import io.realm.Realm
import kotterknife.bindView
import org.fossasia.susi.ai.R
Expand Down
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
package org.fossasia.susi.ai.chat.adapters.viewholders

import androidx.recyclerview.widget.RecyclerView
import android.view.View
import android.widget.LinearLayout
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import kotterknife.bindView
import org.fossasia.susi.ai.R

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.fossasia.susi.ai.chat.adapters.viewholders

import androidx.recyclerview.widget.RecyclerView
import android.view.View
import android.widget.ImageView
import android.widget.LinearLayout
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import kotterknife.bindView
import org.fossasia.susi.ai.R

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.fossasia.susi.ai.chat.adapters.viewholders

import android.content.Context
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import android.view.View
import android.widget.LinearLayout
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import io.realm.Realm
import io.realm.RealmList
import kotterknife.bindView
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package org.fossasia.susi.ai.chat.adapters.viewholders

import androidx.recyclerview.widget.RecyclerView
import android.view.View
import androidx.recyclerview.widget.RecyclerView
import kotterknife.bindView
import org.fossasia.susi.ai.R

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.fossasia.susi.ai.chat.adapters.viewholders

import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import android.text.TextUtils
import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import butterknife.ButterKnife
import java.util.ArrayList
import kotterknife.bindView
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.fossasia.susi.ai.chat.adapters.viewholders

import androidx.recyclerview.widget.RecyclerView
import android.view.View
import android.widget.LinearLayout
import androidx.recyclerview.widget.RecyclerView
import kotterknife.bindView
import org.fossasia.susi.ai.R
import pl.tajchert.waitingdots.DotsTextView
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.fossasia.susi.ai.chat.adapters.viewholders

import androidx.recyclerview.widget.RecyclerView
import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import kotterknife.bindView
import org.fossasia.susi.ai.R

Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.fossasia.susi.ai.chat.adapters.viewholders

import androidx.core.content.ContextCompat
import android.view.View
import android.widget.ImageView
import androidx.core.content.ContextCompat
import com.squareup.picasso.Picasso
import kotterknife.bindView
import org.fossasia.susi.ai.R
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
package org.fossasia.susi.ai.chat.adapters.viewholders

import androidx.recyclerview.widget.RecyclerView
import android.view.View
import android.widget.RelativeLayout
import androidx.recyclerview.widget.RecyclerView
import kotterknife.bindView
import org.fossasia.susi.ai.R

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ package org.fossasia.susi.ai.chat.search

import android.content.Intent
import android.os.Bundle
import android.view.View
import android.widget.Toast
import androidx.appcompat.app.AppCompatActivity
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import android.view.View
import android.widget.Toast
import io.realm.Realm
import kotlinx.android.synthetic.main.activity_chat_search.search_not_found
import org.fossasia.susi.ai.R
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.fossasia.susi.ai.chat.search.adapters

import android.graphics.Color
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import org.fossasia.susi.ai.R
import org.fossasia.susi.ai.chat.search.SearchDataFormat

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package org.fossasia.susi.ai.device
import android.content.Context
import android.net.wifi.WifiManager
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import android.view.MenuItem
import androidx.appcompat.app.AppCompatActivity
import org.fossasia.susi.ai.R
import org.fossasia.susi.ai.device.connecteddevices.ConnectedDeviceFragment
import org.fossasia.susi.ai.device.deviceconnect.DeviceConnectFragment
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ package org.fossasia.susi.ai.device.connecteddevices

import android.content.Intent
import android.os.Bundle
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.fragment.app.Fragment
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import kotlinx.android.synthetic.main.fragment_connected_device.deviceStatus
import kotlinx.android.synthetic.main.fragment_connected_device.refresh_device_layout
import org.fossasia.susi.ai.R
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package org.fossasia.susi.ai.device.connecteddevices.adapters

import androidx.recyclerview.widget.RecyclerView
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.TextView
import androidx.recyclerview.widget.RecyclerView
import org.fossasia.susi.ai.R
import org.fossasia.susi.ai.device.connecteddevices.contract.IConnectedDevicePresenter
import org.fossasia.susi.ai.rest.responses.susi.Device
Expand Down
Loading

0 comments on commit 01807c7

Please sign in to comment.