mirror of
https://github.com/TwidereProject/Twidere-Android
synced 2024-12-25 07:52:58 +01:00
updated build script
This commit is contained in:
parent
669b178e01
commit
b1c9d0e245
10
build.gradle
10
build.gradle
@ -23,7 +23,6 @@ allprojects {
|
|||||||
projectVersionName = '3.6.21'
|
projectVersionName = '3.6.21'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
repositories {
|
repositories {
|
||||||
mavenLocal()
|
mavenLocal()
|
||||||
jcenter()
|
jcenter()
|
||||||
@ -36,6 +35,13 @@ allprojects {
|
|||||||
subprojects {
|
subprojects {
|
||||||
buildscript {
|
buildscript {
|
||||||
ext {
|
ext {
|
||||||
|
kotlinVersion = '1.1.2-5'
|
||||||
|
pluginVersions = [
|
||||||
|
AndroidSvgDrawable: '3.0.0',
|
||||||
|
Fabric : '1.22.1',
|
||||||
|
PlayPublisher : '1.1.5',
|
||||||
|
PlayServices : '3.1.0',
|
||||||
|
]
|
||||||
libVersions = [
|
libVersions = [
|
||||||
Kotlin : '1.1.2-5',
|
Kotlin : '1.1.2-5',
|
||||||
SupportLib : '26.0.0-beta2',
|
SupportLib : '26.0.0-beta2',
|
||||||
@ -45,8 +51,6 @@ subprojects {
|
|||||||
PlayServices : '11.0.1',
|
PlayServices : '11.0.1',
|
||||||
MapsUtils : '0.4.4',
|
MapsUtils : '0.4.4',
|
||||||
Crashlyrics : '2.6.8',
|
Crashlyrics : '2.6.8',
|
||||||
FabricPlugin : '1.22.1',
|
|
||||||
PlayPublisher : '1.1.5',
|
|
||||||
DropboxCoreSdk : '2.1.2',
|
DropboxCoreSdk : '2.1.2',
|
||||||
GoogleDriveApi : 'v3-rev61-1.22.0',
|
GoogleDriveApi : 'v3-rev61-1.22.0',
|
||||||
Exoplayer : 'r2.2.0',
|
Exoplayer : 'r2.2.0',
|
||||||
|
@ -20,18 +20,18 @@ buildscript {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
// START Non-FOSS component
|
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
|
||||||
classpath "io.fabric.tools:gradle:${libVersions['FabricPlugin']}"
|
classpath "org.jetbrains.kotlin:kotlin-android-extensions:${kotlinVersion}"
|
||||||
classpath "com.github.triplet.gradle:play-publisher:${libVersions['PlayPublisher']}"
|
classpath("fr.avianey.androidsvgdrawable:gradle-plugin:${pluginVersions['AndroidSvgDrawable']}") {
|
||||||
classpath 'com.google.gms:google-services:3.0.0'
|
|
||||||
// END Non-FOSS component
|
|
||||||
|
|
||||||
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${libVersions['Kotlin']}"
|
|
||||||
classpath "org.jetbrains.kotlin:kotlin-android-extensions:${libVersions['Kotlin']}"
|
|
||||||
classpath('fr.avianey.androidsvgdrawable:gradle-plugin:3.0.0') {
|
|
||||||
// should be excluded to avoid conflict
|
// should be excluded to avoid conflict
|
||||||
exclude group: 'xerces'
|
exclude group: 'xerces'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// START Non-FOSS component
|
||||||
|
classpath "io.fabric.tools:gradle:${pluginVersions['Fabric']}"
|
||||||
|
classpath "com.github.triplet.gradle:play-publisher:${pluginVersions['PlayPublisher']}"
|
||||||
|
classpath "com.google.gms:google-services:${pluginVersions['PlayServices']}"
|
||||||
|
// END Non-FOSS component
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -248,7 +248,3 @@ play {
|
|||||||
track = 'beta'
|
track = 'beta'
|
||||||
}
|
}
|
||||||
// END Non-FOSS component
|
// END Non-FOSS component
|
||||||
|
|
||||||
// START Non-FOSS component
|
|
||||||
apply plugin: 'com.google.gms.google-services'
|
|
||||||
// END Non-FOSS component
|
|
||||||
|
@ -20,7 +20,6 @@
|
|||||||
package org.mariotaku.twidere.fragment
|
package org.mariotaku.twidere.fragment
|
||||||
|
|
||||||
import android.app.Dialog
|
import android.app.Dialog
|
||||||
import android.content.DialogInterface
|
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
import android.support.v7.app.AlertDialog
|
import android.support.v7.app.AlertDialog
|
||||||
import android.text.TextUtils
|
import android.text.TextUtils
|
||||||
@ -36,18 +35,7 @@ import org.mariotaku.twidere.model.UserKey
|
|||||||
import org.mariotaku.twidere.text.validator.UserListNameValidator
|
import org.mariotaku.twidere.text.validator.UserListNameValidator
|
||||||
import org.mariotaku.twidere.util.ParseUtils
|
import org.mariotaku.twidere.util.ParseUtils
|
||||||
|
|
||||||
class CreateUserListDialogFragment : BaseDialogFragment(), DialogInterface.OnClickListener {
|
class CreateUserListDialogFragment : BaseDialogFragment() {
|
||||||
|
|
||||||
override fun onClick(dialog: DialogInterface, which: Int) {
|
|
||||||
when (which) {
|
|
||||||
DialogInterface.BUTTON_POSITIVE -> {
|
|
||||||
// Workaround for "Invalid Android class type: UNKNOWN"
|
|
||||||
dialog as Dialog
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
override fun onCreateDialog(savedInstanceState: Bundle?): Dialog {
|
||||||
val builder = AlertDialog.Builder(context)
|
val builder = AlertDialog.Builder(context)
|
||||||
@ -65,7 +53,6 @@ class CreateUserListDialogFragment : BaseDialogFragment(), DialogInterface.OnCli
|
|||||||
if (TextUtils.isEmpty(name)) return@positive
|
if (TextUtils.isEmpty(name)) return@positive
|
||||||
twitterWrapper.createUserListAsync(accountKey, name, isPublic, description)
|
twitterWrapper.createUserListAsync(accountKey, name, isPublic, description)
|
||||||
}
|
}
|
||||||
builder.setNegativeButton(android.R.string.cancel, null)
|
|
||||||
val dialog = builder.create()
|
val dialog = builder.create()
|
||||||
dialog.applyOnShow {
|
dialog.applyOnShow {
|
||||||
applyTheme()
|
applyTheme()
|
||||||
|
Loading…
Reference in New Issue
Block a user