1
0
mirror of https://gitlab.com/agosto182/p2play synced 2024-12-21 13:54:10 +01:00

Adding lint skips for releases

This commit is contained in:
ivan agosto 2019-01-30 12:40:36 -06:00
parent e2d1ffdb15
commit 76a1d2f4b3
3 changed files with 14 additions and 4 deletions

2
.gitignore vendored
View File

@ -36,3 +36,5 @@ captures/
# iml Files
*.iml
app/app.iml
app/release/

View File

@ -7,7 +7,7 @@ apply plugin: 'kotlin-android-extensions'
android {
compileSdkVersion 27
defaultConfig {
applicationId "org.libre.agosto.p2play"
applicationId "mx.agosto182.p2play"
minSdkVersion 21
targetSdkVersion 27
versionCode 3
@ -25,6 +25,10 @@ android {
sourceCompatibility JavaVersion.VERSION_1_6
targetCompatibility JavaVersion.VERSION_1_6
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
}
dependencies {

View File

@ -3,6 +3,7 @@ package org.libre.agosto.p2play
import android.content.Intent
import android.os.AsyncTask
import android.os.Bundle
import android.os.Handler
import android.support.design.widget.Snackbar
import android.support.design.widget.NavigationView
import android.support.v4.view.GravityCompat
@ -40,9 +41,6 @@ class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte
setContentView(R.layout.activity_main)
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 ->
Snackbar.make(view, "Replace with your own action", Snackbar.LENGTH_LONG)
.setAction("Action", null).show()
@ -57,6 +55,7 @@ class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte
ManagerSingleton.context = this
nav_view.setNavigationItemSelectedListener(this)
viewManager = LinearLayoutManager(this)
// Set data for RecyclerView
@ -67,6 +66,11 @@ class MainActivity : AppCompatActivity(), NavigationView.OnNavigationItemSelecte
swipeContainer.setOnRefreshListener {
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