This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data class Repository( | |
var updated_on: String, | |
var tags: List<String>, | |
var description: String, | |
var user_id: List<Int>, | |
var status_id: Int, | |
var title: String, | |
var created_at: String, | |
var data: HashMap<*, *>, | |
var id: Int, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def gitHash = 'git rev-parse --short HEAD'.execute().text.trim() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { | |
File file=new File(mFilePath); | |
Uri uri = FileProvider.getUriForFile(this, getPackageName() + ".provider", file); | |
intent = new Intent(Intent.ACTION_VIEW); | |
intent.setData(uri); | |
intent.setFlags(Intent.FLAG_GRANT_READ_URI_PERMISSION); | |
startActivity(intent); | |
} else { | |
intent = new Intent(Intent.ACTION_VIEW); | |
intent.setDataAndType(Uri.parse(mFilePath), "application/pdf"); |
OlderNewer