mirror of
https://github.com/quik-sms/quik.git
synced 2026-11-18 20:08:53 +01:00
updated to sdk 26
This commit is contained in:
+1
-1
@@ -7,7 +7,7 @@ buildscript {
|
||||
jcenter()
|
||||
}
|
||||
dependencies {
|
||||
classpath 'com.android.tools.build:gradle:3.0.0-alpha8'
|
||||
classpath 'com.android.tools.build:gradle:3.0.0-beta1'
|
||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
|
||||
classpath "io.realm:realm-gradle-plugin:3.3.1"
|
||||
|
||||
|
||||
+2
-2
@@ -1,6 +1,6 @@
|
||||
#Fri Jul 07 18:18:55 EDT 2017
|
||||
#Sun Aug 13 16:05:33 EDT 2017
|
||||
distributionBase=GRADLE_USER_HOME
|
||||
distributionPath=wrapper/dists
|
||||
zipStoreBase=GRADLE_USER_HOME
|
||||
zipStorePath=wrapper/dists
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip
|
||||
distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-rc-1-all.zip
|
||||
|
||||
+4
-4
@@ -3,12 +3,12 @@ apply plugin: 'realm-android' // Realm needs to be before Kotlin or the build wi
|
||||
apply plugin: 'kotlin-android'
|
||||
|
||||
android {
|
||||
compileSdkVersion 25
|
||||
buildToolsVersion "25.0.2"
|
||||
compileSdkVersion 26
|
||||
buildToolsVersion "26.0.1"
|
||||
defaultConfig {
|
||||
applicationId "com.moez.QKSMS"
|
||||
minSdkVersion 21
|
||||
targetSdkVersion 25
|
||||
targetSdkVersion 26
|
||||
versionCode 1
|
||||
versionName "1.0"
|
||||
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
|
||||
@@ -34,7 +34,7 @@ dependencies {
|
||||
exclude group: 'com.android.support', module: 'support-annotations'
|
||||
})
|
||||
compile "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version"
|
||||
compile 'com.android.support:appcompat-v7:25.3.1'
|
||||
compile 'com.android.support:appcompat-v7:26.0.0'
|
||||
compile 'com.android.support.constraint:constraint-layout:1.0.2'
|
||||
compile 'com.karumi:dexter:4.1.0'
|
||||
compile 'com.hannesdorfmann.mosby:mvp:2.0.1'
|
||||
|
||||
@@ -22,7 +22,7 @@ class ConversationListFragment : QkFragment<ConversationListView, ConversationLi
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View? {
|
||||
val view = inflater.inflate(R.layout.conversation_list_fragment, container, false)
|
||||
|
||||
conversationList = view.findViewById(R.id.conversation_list) as RecyclerView
|
||||
conversationList = view.findViewById(R.id.conversation_list)
|
||||
conversationList?.layoutManager = LinearLayoutManager(context)
|
||||
|
||||
return view
|
||||
|
||||
@@ -7,7 +7,7 @@ import com.moez.QKSMS.R
|
||||
|
||||
class ConversationViewHolder(view: View) : RecyclerView.ViewHolder(view) {
|
||||
|
||||
val title = view.findViewById(R.id.conversation_title) as TextView
|
||||
val snippet = view.findViewById(R.id.conversation_snippet) as TextView
|
||||
val title: TextView = view.findViewById(R.id.conversation_title)
|
||||
val snippet: TextView = view.findViewById(R.id.conversation_snippet)
|
||||
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ class MessageListFragment : QkFragment<MessageListView, MessageListPresenter>(),
|
||||
override fun onCreateView(inflater: LayoutInflater, container: ViewGroup?, savedInstanceState: Bundle?): View {
|
||||
val view = inflater.inflate(R.layout.message_list_fragment, container, false)
|
||||
|
||||
messageList = view.findViewById(R.id.message_list) as RecyclerView
|
||||
messageList = view.findViewById(R.id.message_list)
|
||||
|
||||
val layoutManager = LinearLayoutManager(context)
|
||||
layoutManager.stackFromEnd = true
|
||||
|
||||
@@ -7,6 +7,6 @@ import com.moez.QKSMS.R
|
||||
|
||||
class MessageViewHolder(view: View) : RecyclerView.ViewHolder(view) {
|
||||
|
||||
val body = view.findViewById(R.id.message_body) as TextView
|
||||
val body: TextView = view.findViewById(R.id.message_body)
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user