This file contains hidden or 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
| package com.github.m4kvn.resource.resourceaccesstest | |
| import android.os.Bundle | |
| import androidx.appcompat.app.AppCompatActivity | |
| import androidx.core.view.updatePadding | |
| import kotlinx.android.synthetic.main.activity_main.* | |
| import java.util.concurrent.atomic.AtomicLong | |
| import java.util.concurrent.atomic.AtomicReference | |
| class MainActivity : AppCompatActivity() { |
This file contains hidden or 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
| #!/usr/bin/env python | |
| """Merge multiple JUnit XML results files into a single results file.""" | |
| # MIT License | |
| # | |
| # Copyright (c) 2012 Corey Goldberg | |
| # | |
| # Permission is hereby granted, free of charge, to any person obtaining a copy | |
| # of this software and associated documentation files (the "Software"), to deal |
This file contains hidden or 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
| plugins { | |
| id("com.android.library") | |
| kotlin("android") | |
| } | |
| android { common() } | |
| dependencies { submodule() } // SubModule用の依存関係を読み込む |
This file contains hidden or 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
| plugins { | |
| id("com.android.application") | |
| kotlin("android") | |
| } | |
| android { | |
| common() | |
| defaultConfig { | |
| applicationId = "com.m4kvn.myapplication" | |
| versionCode = 1 | |
| versionName = "1.0.0" |
This file contains hidden or 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
| // implementation用のメソッドを作っておくと便利 | |
| fun DependencyHandler.implementation(dependency: Any) { | |
| add("implementation", dependency) | |
| } | |
| fun DependencyHandler.testImplementation(dependency: Any) { | |
| add("testImplementation", dependency) | |
| } | |
| fun DependencyHandler.kapt(dependency: Any) { |
This file contains hidden or 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
| plugins { | |
| id("com.android.library") | |
| kotlin("android") | |
| } | |
| android { common() } |
This file contains hidden or 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
| plugins { | |
| id("com.android.application") | |
| kotlin("android") | |
| } | |
| android { | |
| common() | |
| defaultConfig { | |
| applicationId = "com.m4kvn.myapplication" | |
| versionCode = 1 | |
| versionName = "1.0.0" |
This file contains hidden or 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
| fun BaseExtension.common() { | |
| compileSdkVersion(Versions.compileSdk) | |
| buildToolsVersion = Versions.buildTools | |
| defaultConfig { | |
| minSdkVersion(Versions.minSdk) | |
| targetSdkVersion(Versions.targetSdk) | |
| multiDexEnabled = true | |
| } | |
| } |
This file contains hidden or 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
| com.android.build.gradle.LibraryExtension_Decorated cannot be cast to com.android.build.gradle.internal.dsl.BaseAppModuleExtension | |
| Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.) | |
| Re-download dependencies and sync project (requires network)</li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem. | |
| Stop Gradle build processes (requires restart)</li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes. |
This file contains hidden or 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
| plugins { | |
| id("com.android.application") | |
| kotlin("android") | |
| } | |
| androidCommon() | |
| android { | |
| defaultConfig { | |
| applicationId = "com.m4kvn.myapplication" |