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
replaceInManifest = {variant, fromString, toString -> | |
def flavor = variant.productFlavors.get(0) | |
def buildtype = variant.buildType | |
def manifestFile = "$buildDir/manifests/${flavor.name}/${buildtype.name}/AndroidManifest.xml" | |
def updatedContent = new File(manifestFile).getText('UTF-8').replaceAll(fromString, toString) | |
new File(manifestFile).write(updatedContent, 'UTF-8') | |
} |
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
<RecyclerView | |
android:id="@+id/recycler" | |
android:layout_height="wrap_content" | |
android:layout_width="match_parent" | |
android:visibleIfNotNull="@{viewModel.items}" | |
android:itemView="@{viewModel.itemView}" | |
android:items="@{viewModel.items}" | |
android:layoutManager="@{LayoutManagers.linear()}" /> |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<project version="4"> | |
<component name="TerminalProjectOptionsProvider"> | |
<envs> | |
<env key="JAVA_HOME" value="$APPLICATION_HOME_DIR$/jre/jdk/Contents/Home/" /> | |
</envs> | |
</component> | |
</project> |