This set of patches shows some experiments in Android Studio to add features in the DCL support. It is based on the approach of directly converting DCL PSI elements to the DCL language tree and using that as an input to the Gradle analysis implementation. Therefore, it does not need to run the Gradle parser on the source text at all.
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
fun main() { | |
val n = readln().toInt() | |
val input = readln().split(" ").map { it.toInt() } | |
val result = solve(input) | |
if (result == null) { | |
println("NO") | |
} else { | |
println("YES") | |
println(result.joinToString(" ")) |
- https://gist.github.com/h0tk3y/a0effe4ceb3b7f9f8500ea00249c6a79#file-01-agp-minimal-changes-patch
- Exclude collection-typed properties like
val assetPacks: MutableSet<String>
(not yet supported in DCL) - Exclude functions that use type parameters, such as
DefaultConfigT
(workaround) - Add
@SoftwareType
in theLibraryPlugin
and reference it inAndroidEcoPlugin
- Implement custom getters for the
@SoftwareType
properties to access existing model instances
- Exclude collection-typed properties like
- https://gist.github.com/h0tk3y/a0effe4ceb3b7f9f8500ea00249c6a79#file-02-remove-unnecessary-annotations-patch
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
[Your Name] | |
[Your Address] | |
[City, State, Zip] | |
[Your Email] | |
[Your Phone Number] | |
[Date] | |
Hiring Manager’s Name | |
Recordati | |
[Company Address] |
Supported APIs in settings.gradle.something
:
Settings
:val rootProject: ProjectDescriptor
include(projectPath: String)
(thevararg
overload is not supported)pluginManagement(pluginManagementSpec: PluginManagementSpec.() -> Unit)
- (+
val pluginManagement
)
- (+
dependencyResolutionManagement(dependencyResolutionConfiguration: DependencyResolutionManagement.() -> Unit)
- (+
val dependencyResolutionManagement
)
- (+
enableFeaturePreview(name: String)
[Your Name]
Professor and Laboratory Head
Tolyatti State University
[Address]
Tolyatti, Russia
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
ა - ани [ɑ] | |
ბ - бани [b] | |
გ - гани [ɡ] | |
დ - дони [d] | |
ე - эни [ɛ] | |
ვ - вини [v] | |
ზ - зени [z] | |
თ - тхани [tʰ] | |
ი - ини [ɪ] | |
კ - кани [kʼ] |
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
04-14 00:17:29.116 30458 30458 E AndroidRuntime: FATAL EXCEPTION: main | |
04-14 00:17:29.116 30458 30458 E AndroidRuntime: Process: com.vk.equals, PID: 30458 | |
04-14 00:17:29.116 30458 30458 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.vk.equals/com.vk.equals.MainActivity}: android.view.InflateException: Binary XML file line #38 in com.vkontakte.android:layout/bottom_navigation_container: parent=LinearLayout:com.vkontakte.android:id/bottom_navigation_sliding_container, view=com.vkontakte.android.ui.bottomnavigation.BottomNavigationView:com.vkontakte.android:id/bottom_navigation | |
04-14 00:17:29.116 30458 30458 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:4169) | |
04-14 00:17:29.116 30458 30458 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:4315) | |
04-14 00:17:29.116 30458 30458 E AndroidRuntime: at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:101) | |
04-14 |
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
class PropertiesExtension implements AnnotatedMethodReaderExtension, CodeGeneratorContributor { | |
@Override | |
public InstrumentationCodeGenerator contributeCodeGenerator() { | |
return new CodeGeneratorContributor() { | |
@Override | |
public InstrumentationCodeGenerator contributeCodeGenerator() { | |
// look for the extra data in the requests – find the ones that need accessor |
NewerOlder