Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
AloqaIM-Android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
AloqaIM-Android
Commits
7f86898d
Commit
7f86898d
authored
Jan 08, 2018
by
Leonardo Aramaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix broken sdk api calls
parent
be865436
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
8 deletions
+6
-8
ChatRoomsAdapter.kt
...java/chat/rocket/android/chatrooms/ui/ChatRoomsAdapter.kt
+2
-2
AppModule.kt
.../main/java/chat/rocket/android/dagger/module/AppModule.kt
+2
-2
PushModule.kt
app/src/main/java/chat/rocket/android/push/di/PushModule.kt
+1
-3
dependencies.gradle
dependencies.gradle
+1
-1
No files found.
app/src/main/java/chat/rocket/android/chatrooms/ui/ChatRoomsAdapter.kt
View file @
7f86898d
...
...
@@ -26,11 +26,11 @@ class ChatRoomsAdapter(private var dataSet: MutableList<ChatRoom>, private val c
val
chatRoom
=
dataSet
[
position
]
val
chatRoomName
=
chatRoom
.
name
holder
.
chatName
.
textContent
=
chatRoomName
!!
holder
.
chatName
.
textContent
=
chatRoomName
if
(
chatRoom
.
type
==
RoomType
.
ONE_TO_ONE
)
{
// TODO Check the best way to get the current server url.
val
canonicalUrl
=
chatRoom
.
client
.
restUrl
.
toString
()
val
canonicalUrl
=
chatRoom
.
client
.
url
holder
.
userAvatar
.
setImageURI
(
UrlHelper
.
getAvatarUrl
(
canonicalUrl
,
chatRoomName
))
holder
.
userAvatar
.
setVisibility
(
true
)
}
else
{
...
...
app/src/main/java/chat/rocket/android/dagger/module/AppModule.kt
View file @
7f86898d
...
...
@@ -29,8 +29,8 @@ class AppModule {
platformLogger
=
logger
// TODO remove
restUrl
=
HttpUrl
.
parse
(
"https://open.rocket.chat"
)
!!
websocketUrl
=
"https://open
.rocket.chat"
// TODO: From where should we get the url here?
restUrl
=
"https://unstable
.rocket.chat"
}
}
...
...
app/src/main/java/chat/rocket/android/push/di/PushModule.kt
View file @
7f86898d
...
...
@@ -11,7 +11,6 @@ import chat.rocket.core.RocketChatClient
import
chat.rocket.core.TokenRepository
import
dagger.Module
import
dagger.Provides
import
okhttp3.HttpUrl
import
okhttp3.OkHttpClient
import
okhttp3.logging.HttpLoggingInterceptor
import
javax.inject.Singleton
...
...
@@ -57,8 +56,7 @@ class PushModule(val context: FirebaseTokenService) {
fun
provideRocketChatClient
(
okHttpClient
:
OkHttpClient
,
repository
:
TokenRepository
,
logger
:
PlatformLogger
):
RocketChatClient
{
return
RocketChatClient
.
create
{
httpClient
=
okHttpClient
restUrl
=
HttpUrl
.
parse
(
"https://unstable.rocket.chat"
)
!!
websocketUrl
=
"https://unstable.rocket.chat"
restUrl
=
"https://unstable.rocket.chat"
tokenRepository
=
repository
platformLogger
=
logger
}
...
...
dependencies.gradle
View file @
7f86898d
...
...
@@ -9,7 +9,7 @@ ext {
kotlin
:
'1.2.10'
,
coroutine
:
'0.21'
,
dokka
:
'0.9.15'
,
kotshi
:
'0.3.0
-beta2
'
,
kotshi
:
'0.3.0'
,
// Main dependencies
support
:
'27.0.2'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment