mirror of
https://gitlab.com/agosto182/p2play
synced 2024-12-21 22:04:00 +01:00
Adding lint skips for releases
This commit is contained in:
parent
e2d1ffdb15
commit
76a1d2f4b3
2
.gitignore
vendored
2
.gitignore
vendored
@ -36,3 +36,5 @@ captures/
|
|||||||
# iml Files
|
# iml Files
|
||||||
*.iml
|
*.iml
|
||||||
app/app.iml
|
app/app.iml
|
||||||
|
|
||||||
|
app/release/
|
||||||
|
@ -7,7 +7,7 @@ apply plugin: 'kotlin-android-extensions'
|
|||||||
android {
|
android {
|
||||||
compileSdkVersion 27
|
compileSdkVersion 27
|
||||||
defaultConfig {
|
defaultConfig {
|
||||||
applicationId "org.libre.agosto.p2play"
|
applicationId "mx.agosto182.p2play"
|
||||||
minSdkVersion 21
|
minSdkVersion 21
|
||||||
targetSdkVersion 27
|
targetSdkVersion 27
|
||||||
versionCode 3
|
versionCode 3
|
||||||
@ -25,6 +25,10 @@ android {
|
|||||||
sourceCompatibility JavaVersion.VERSION_1_6
|
sourceCompatibility JavaVersion.VERSION_1_6
|
||||||
targetCompatibility JavaVersion.VERSION_1_6
|
targetCompatibility JavaVersion.VERSION_1_6
|
||||||
}
|
}
|
||||||
|
lintOptions {
|
||||||
|
checkReleaseBuilds false
|
||||||
|
abortOnError false
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
|
@ -3,6 +3,7 @@ package org.libre.agosto.p2play
|
|||||||
import android.content.Intent
|
import android.content.Intent
|
||||||
import android.os.AsyncTask
|
import android.os.AsyncTask
|
||||||
import android.os.Bundle
|
import android.os.Bundle
|
||||||
|
import android.os.Handler
|
||||||
import android.support.design.widget.Snackbar
|
import android.support.design.widget.Snackbar
|
||||||
import android.support.design.widget.NavigationView
|
import android.support.design.widget.NavigationView
|
||||||
import android.support.v4.view.GravityCompat
|
import android.support.v4.view.GravityCompat
|
||||||
@ -40,9 +41,6 @@ class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte
|
|||||||
setContentView(R.layout.activity_main)
|
setContentView(R.layout.activity_main)
|
||||||
setSupportActionBar(toolbar)
|
setSupportActionBar(toolbar)
|
||||||
|
|
||||||
// Title for nav_bar
|
|
||||||
side_emailTxt?.text = getString(R.string.nav_header_subtitle) + " " + this.packageManager.getPackageInfo(this.packageName, 0).versionName
|
|
||||||
|
|
||||||
/* fab.setOnClickListener { view ->
|
/* fab.setOnClickListener { view ->
|
||||||
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
|
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
|
||||||
.setAction("Action", null).show()
|
.setAction("Action", null).show()
|
||||||
@ -57,6 +55,7 @@ class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte
|
|||||||
ManagerSingleton.context = this
|
ManagerSingleton.context = this
|
||||||
|
|
||||||
nav_view.setNavigationItemSelectedListener(this)
|
nav_view.setNavigationItemSelectedListener(this)
|
||||||
|
|
||||||
viewManager = LinearLayoutManager(this)
|
viewManager = LinearLayoutManager(this)
|
||||||
|
|
||||||
// Set data for RecyclerView
|
// Set data for RecyclerView
|
||||||
@ -67,6 +66,11 @@ class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte
|
|||||||
swipeContainer.setOnRefreshListener {
|
swipeContainer.setOnRefreshListener {
|
||||||
this.refresh()
|
this.refresh()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Handler().postDelayed({
|
||||||
|
// Title for nav_bar
|
||||||
|
side_emailTxt?.text = getString(R.string.nav_header_subtitle) + " " + this.packageManager.getPackageInfo(this.packageName, 0).versionName
|
||||||
|
}, 2000)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Generic function for set data to RecyclerView
|
// Generic function for set data to RecyclerView
|
||||||
|
Loading…
Reference in New Issue
Block a user