-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from noties/F/adapt-ui
v5.0
- Loading branch information
Showing
374 changed files
with
37,814 additions
and
492 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
name: Build | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Build with Gradle | ||
run: ./gradlew check --stacktrace |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: Pull request checks | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
- name: Build with Gradle | ||
run: ./gradlew check --stacktrace |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<component name="ProjectRunConfigurationManager"> | ||
<configuration default="false" name="sample" type="AndroidRunConfigurationType" factoryName="Android App" activateToolWindowBeforeRun="false"> | ||
<module name="AdaptParent.sample.main" /> | ||
<option name="DEPLOY" value="true" /> | ||
<option name="DEPLOY_APK_FROM_BUNDLE" value="false" /> | ||
<option name="DEPLOY_AS_INSTANT" value="false" /> | ||
<option name="ARTIFACT_NAME" value="" /> | ||
<option name="PM_INSTALL_OPTIONS" value="" /> | ||
<option name="ALL_USERS" value="false" /> | ||
<option name="ALWAYS_INSTALL_WITH_PM" value="false" /> | ||
<option name="CLEAR_APP_STORAGE" value="false" /> | ||
<option name="DYNAMIC_FEATURES_DISABLED_LIST" value="" /> | ||
<option name="ACTIVITY_EXTRA_FLAGS" value="--es aid "20230715105856"" /> | ||
<option name="MODE" value="default_activity" /> | ||
<option name="CLEAR_LOGCAT" value="false" /> | ||
<option name="SHOW_LOGCAT_AUTOMATICALLY" value="false" /> | ||
<option name="INSPECTION_WITHOUT_ACTIVITY_RESTART" value="false" /> | ||
<option name="TARGET_SELECTION_MODE" value="DEVICE_AND_SNAPSHOT_COMBO_BOX" /> | ||
<option name="SELECTED_CLOUD_MATRIX_CONFIGURATION_ID" value="-1" /> | ||
<option name="SELECTED_CLOUD_MATRIX_PROJECT_ID" value="" /> | ||
<option name="DEBUGGER_TYPE" value="Auto" /> | ||
<Auto> | ||
<option name="USE_JAVA_AWARE_DEBUGGER" value="false" /> | ||
<option name="SHOW_STATIC_VARS" value="true" /> | ||
<option name="WORKING_DIR" value="" /> | ||
<option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" /> | ||
<option name="SHOW_OPTIMIZED_WARNING" value="true" /> | ||
</Auto> | ||
<Hybrid> | ||
<option name="USE_JAVA_AWARE_DEBUGGER" value="false" /> | ||
<option name="SHOW_STATIC_VARS" value="true" /> | ||
<option name="WORKING_DIR" value="" /> | ||
<option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" /> | ||
<option name="SHOW_OPTIMIZED_WARNING" value="true" /> | ||
</Hybrid> | ||
<Java /> | ||
<Native> | ||
<option name="USE_JAVA_AWARE_DEBUGGER" value="false" /> | ||
<option name="SHOW_STATIC_VARS" value="true" /> | ||
<option name="WORKING_DIR" value="" /> | ||
<option name="TARGET_LOGGING_CHANNELS" value="lldb process:gdb-remote packets" /> | ||
<option name="SHOW_OPTIMIZED_WARNING" value="true" /> | ||
</Native> | ||
<Profilers> | ||
<option name="ADVANCED_PROFILING_ENABLED" value="false" /> | ||
<option name="STARTUP_PROFILING_ENABLED" value="false" /> | ||
<option name="STARTUP_CPU_PROFILING_ENABLED" value="false" /> | ||
<option name="STARTUP_CPU_PROFILING_CONFIGURATION_NAME" value="Callstack Sample" /> | ||
<option name="STARTUP_NATIVE_MEMORY_PROFILING_ENABLED" value="false" /> | ||
<option name="NATIVE_MEMORY_SAMPLE_RATE_BYTES" value="2048" /> | ||
<option name="PROFILING_MODE" value="NOT_SET" /> | ||
</Profilers> | ||
<option name="DEEP_LINK" value="" /> | ||
<option name="ACTIVITY_CLASS" value="" /> | ||
<option name="SEARCH_ACTIVITY_IN_GLOBAL_SCOPE" value="false" /> | ||
<option name="SKIP_ACTIVITY_VALIDATION" value="false" /> | ||
<method v="2"> | ||
<option name="Android.Gradle.BeforeRunTask" enabled="true" /> | ||
</method> | ||
</configuration> | ||
</component> |
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
|
||
# Generate a new AdaptUISampleView with preview | ||
Create a new Kotlin file with name for the sample | ||
|
||
``` | ||
@io.noties.adapt.sample.annotation.AdaptSample( | ||
id = $ID$, | ||
title = "$TITLE$", | ||
description = "$DESCRIPTION$", | ||
tags = ["adapt-ui", $TAGS$] | ||
) | ||
class $SAMPLE_NAME$: io.noties.adapt.sample.samples.adaptui.AdaptUISampleView() { | ||
override fun io.noties.adapt.ui.ViewFactory<io.noties.adapt.ui.LayoutParams>.body() { | ||
$END$ | ||
} | ||
} | ||
@io.noties.adapt.sample.util.Preview | ||
@Suppress("ClassName", "unused") | ||
private class Preview__$SAMPLE_NAME$( | ||
context: android.content.Context, | ||
attrs: android.util.AttributeSet? | ||
) : io.noties.adapt.sample.util.PreviewSampleView(context, attrs) { | ||
override val sampleView: io.noties.adapt.sample.SampleView | ||
get() = $SAMPLE_NAME$() | ||
} | ||
``` |
Oops, something went wrong.