android / input-samples

Multiple samples showing the best practices in input on Android.
Apache License 2.0
288 stars 266 forks source link

Add GitHub Actions workflow #32

Open owahltinez opened 4 years ago

owahltinez commented 4 years ago

This enables automatic builds for new commits and PRs in the master branch. This sample is currently green, see build logs:

Configure project :Application WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html WARNING: The specified Android SDK Build Tools version (26.0.1) is ignored, as it is below the minimum supported version (28.0.3) for Android Gradle Plugin 3.3.0. Android SDK Build Tools 28.0.3 will be used. To suppress this warning, remove "buildToolsVersion '26.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Task :Application:preBuild UP-TO-DATE Task :Application:preDebugBuild Task :Application:compileDebugAidl NO-SOURCE Task :Application:compileDebugRenderscript Task :Application:checkDebugManifest Task :Application:generateDebugBuildConfig Task :Application:mainApkListPersistenceDebug Task :Application:generateDebugResValues Task :Application:generateDebugResources Task :Application:mergeDebugResources Task :Application:createDebugCompatibleScreenManifests Task :Application:processDebugManifest Task :Application:processDebugResources

Task :Application:compileDebugKotlin w: /Users/owahltinez/Sandbox/samples/input-samples/AutofillFrameworkKotlin/Application/src/main/java/com/example/android/autofillframework/app/CustomVirtualView.kt: (145, 22): Variable 'upperY' initializer is redundant w: /Users/owahltinez/Sandbox/samples/input-samples/AutofillFrameworkKotlin/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/settings/SettingsActivity.kt: (54, 58): Parameter 'compoundButton' is never used, could be renamed to w: /Users/owahltinez/Sandbox/samples/input-samples/AutofillFrameworkKotlin/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/settings/SettingsActivity.kt: (61, 58): Parameter 'compoundButton' is never used, could be renamed to w: /Users/owahltinez/Sandbox/samples/input-samples/AutofillFrameworkKotlin/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/settings/SettingsActivity.kt: (86, 59): Parameter 'which' is never used, could be renamed to w: /Users/owahltinez/Sandbox/samples/input-samples/AutofillFrameworkKotlin/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/settings/SettingsActivity.kt: (108, 59): Parameter 'which' is never used, could be renamed to w: /Users/owahltinez/Sandbox/samples/input-samples/AutofillFrameworkKotlin/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/settings/SettingsActivity.kt: (126, 59): Parameter 'which' is never used, could be renamed to _

Task :Application:prepareLintJar Task :Application:generateDebugSources Task :Application:javaPreCompileDebug Task :Application:compileDebugJavaWithJavac Task :Application:compileDebugNdk NO-SOURCE Task :Application:compileDebugSources Task :Application:mergeDebugShaders Task :Application:compileDebugShaders Task :Application:generateDebugAssets Task :Application:mergeDebugAssets Task :Application:mergeExtDexDebug Task :Application:mergeLibDexDebug Task :Application:transformClassesWithDexBuilderForDebug Task :Application:mergeProjectDexDebug Task :Application:validateSigningDebug Task :Application:signingConfigWriterDebug Task :Application:mergeDebugJniLibFolders Task :Application:transformNativeLibsWithMergeJniLibsForDebug Task :Application:transformNativeLibsWithStripDebugSymbolForDebug Task :Application:processDebugJavaRes NO-SOURCE Task :Application:transformResourcesWithMergeJavaResForDebug Task :Application:packageDebug Task :Application:assembleDebug

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 41s 28 actionable tasks: 28 executed

Task :Application:compileDebugJavaWithJavac Note: /Users/owahltinez/Sandbox/samples/input-samples/BasicMultitouch/Application/src/main/java/com/example/android/common/logger/LogFragment.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

Task :Application:compileDebugSources Task :Application:mergeDebugShaders Task :Application:compileDebugShaders Task :Application:generateDebugAssets Task :Application:mergeDebugAssets Task :Application:checkDebugDuplicateClasses Task :Application:mergeExtDexDebug Task :Application:transformClassesWithDexBuilderForDebug Task :Application:mergeDexDebug Task :Application:validateSigningDebug Task :Application:signingConfigWriterDebug Task :Application:mergeDebugJniLibFolders Task :Application:transformNativeLibsWithMergeJniLibsForDebug Task :Application:transformNativeLibsWithStripDebugSymbolForDebug Task :Application:processDebugJavaRes NO-SOURCE Task :Application:transformResourcesWithMergeJavaResForDebug Task :Application:packageDebug Task :Application:assembleDebug

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 21s 26 actionable tasks: 26 executed

Configure project :app WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html WARNING: Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

Task :app:preBuild UP-TO-DATE Task :app:preDebugBuild Task :app:compileDebugAidl NO-SOURCE Task :app:compileDebugRenderscript Task :app:checkDebugManifest Task :app:generateDebugBuildConfig Task :app:prepareLintJar Task :app:generateDebugSources Task :app:javaPreCompileDebug Task :app:mainApkListPersistenceDebug Task :app:generateDebugResValues Task :app:generateDebugResources Task :app:mergeDebugResources Task :app:createDebugCompatibleScreenManifests Task :app:processDebugManifest Task :app:processDebugResources Task :app:compileDebugJavaWithJavac Task :app:compileDebugNdk NO-SOURCE Task :app:compileDebugSources Task :app:mergeDebugShaders Task :app:compileDebugShaders Task :app:generateDebugAssets Task :app:mergeDebugAssets Task :app:mergeExtDexDebug Task :app:transformClassesWithDexBuilderForDebug Task :app:mergeDexDebug Task :app:validateSigningDebug Task :app:signingConfigWriterDebug Task :app:mergeDebugJniLibFolders Task :app:transformNativeLibsWithMergeJniLibsForDebug Task :app:transformNativeLibsWithStripDebugSymbolForDebug Task :app:processDebugJavaRes NO-SOURCE Task :app:transformResourcesWithMergeJavaResForDebug Task :app:packageDebug Task :app:assembleDebug

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 23s 26 actionable tasks: 26 executed

Configure project :app WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html WARNING: Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html

Task :app:preBuild UP-TO-DATE Task :app:preDebugBuild Task :app:compileDebugAidl NO-SOURCE Task :app:compileDebugRenderscript Task :app:checkDebugManifest Task :app:generateDebugBuildConfig Task :app:prepareLintJar Task :app:generateDebugSources Task :app:javaPreCompileDebug Task :app:mainApkListPersistenceDebug Task :app:generateDebugResValues Task :app:generateDebugResources Task :app:mergeDebugResources Task :app:createDebugCompatibleScreenManifests Task :app:processDebugManifest Task :app:processDebugResources Task :app:compileDebugJavaWithJavac Task :app:compileDebugNdk NO-SOURCE Task :app:compileDebugSources Task :app:mergeDebugShaders Task :app:compileDebugShaders Task :app:generateDebugAssets Task :app:mergeDebugAssets Task :app:mergeExtDexDebug Task :app:transformClassesWithDexBuilderForDebug Task :app:mergeDexDebug Task :app:validateSigningDebug Task :app:signingConfigWriterDebug Task :app:mergeDebugJniLibFolders Task :app:transformNativeLibsWithMergeJniLibsForDebug Task :app:transformNativeLibsWithStripDebugSymbolForDebug Task :app:processDebugJavaRes NO-SOURCE Task :app:transformResourcesWithMergeJavaResForDebug Task :app:packageDebug Task :app:assembleDebug

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 22s 26 actionable tasks: 26 executed

Task :afservice:compileDebugJavaWithJavac Gradle may disable incremental compilation as the following annotation processors are not incremental: compiler-1.0.0.jar (android.arch.persistence.room:compiler:1.0.0). Consider setting the experimental feature flag android.enableSeparateAnnotationProcessing=true in the gradle.properties file to run annotation processing in a separate task and make compilation incremental. warning: Supported source version 'RELEASE_7' from annotation processor 'org.gradle.api.internal.tasks.compile.processing.TimeTrackingProcessor' less than -source '1.8' /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/model/FilledAutofillField.java:32: warning: fieldTypeName column references a foreign key but it is not part of an index. This may trigger full table scans whenever parent table is modified so you are highly advised to create an index that covers this column. public class FilledAutofillField { ^ /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/model/AutofillHint.java:27: warning: fieldTypeName column references a foreign key but it is not part of an index. This may trigger full table scans whenever parent table is modified so you are highly advised to create an index that covers this column. public class AutofillHint { ^ /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/model/ResourceIdHeuristic.java:27: warning: fieldTypeName column references a foreign key but it is not part of an index. This may trigger full table scans whenever parent table is modified so you are highly advised to create an index that covers this column. public class ResourceIdHeuristic { ^ /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:46: warning: com.example.android.autofill.service.model.DatasetWithFilledAutofillFields has some fields [packageName] which are not returned by the query. If they are not supposed to be read from the result, you can mark them with @Ignore annotation. You can suppress this warning by annotating the method with @SuppressWarnings(RoomWarnings.CURSOR_MISMATCH). Columns returned by the query: id, datasetName. Fields in com.example.android.autofill.service.model.DatasetWithFilledAutofillFields: id, datasetName, packageName. List getDatasets(List allAutofillHints); ^ /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:46: warning: The return value includes a Pojo with a @Relation. It is usually desired to annotate this method with @Transaction to avoid possibility of inconsistent results between the Pojo and its relations. See https://developer.android.com/reference/android/arch/persistence/room/Transaction.html for details. List getDatasets(List allAutofillHints); ^ /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:50: warning: com.example.android.autofill.service.model.DatasetWithFilledAutofillFields has some fields [packageName] which are not returned by the query. If they are not supposed to be read from the result, you can mark them with @Ignore annotation. You can suppress this warning by annotating the method with @SuppressWarnings(RoomWarnings.CURSOR_MISMATCH). Columns returned by the query: id, datasetName. Fields in com.example.android.autofill.service.model.DatasetWithFilledAutofillFields: id, datasetName, packageName. List getAllDatasets(); ^ /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:50: warning: The return value includes a Pojo with a @Relation. It is usually desired to annotate this method with @Transaction to avoid possibility of inconsistent results between the Pojo and its relations. See https://developer.android.com/reference/android/arch/persistence/room/Transaction.html for details. List getAllDatasets(); ^ /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:65: warning: com.example.android.autofill.service.model.DatasetWithFilledAutofillFields has some fields [packageName] which are not returned by the query. If they are not supposed to be read from the result, you can mark them with @Ignore annotation. You can suppress this warning by annotating the method with @SuppressWarnings(RoomWarnings.CURSOR_MISMATCH). Columns returned by the query: id, datasetName. Fields in com.example.android.autofill.service.model.DatasetWithFilledAutofillFields: id, datasetName, packageName. List getDatasetsWithName( ^ /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:65: warning: The return value includes a Pojo with a @Relation. It is usually desired to annotate this method with @Transaction to avoid possibility of inconsistent results between the Pojo and its relations. See https://developer.android.com/reference/android/arch/persistence/room/Transaction.html for details. List getDatasetsWithName( ^ /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:77: warning: The return value includes a Pojo with a @Relation. It is usually desired to annotate this method with @Transaction to avoid possibility of inconsistent results between the Pojo and its relations. See https://developer.android.com/reference/android/arch/persistence/room/Transaction.html for details. List getFieldTypesWithHints(); ^ /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:89: warning: The return value includes a Pojo with a @Relation. It is usually desired to annotate this method with @Transaction to avoid possibility of inconsistent results between the Pojo and its relations. See https://developer.android.com/reference/android/arch/persistence/room/Transaction.html for details. List getFieldTypesForAutofillHints(List autofillHints); ^ /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:94: warning: com.example.android.autofill.service.model.DatasetWithFilledAutofillFields has some fields [packageName] which are not returned by the query. If they are not supposed to be read from the result, you can mark them with @Ignore annotation. You can suppress this warning by annotating the method with @SuppressWarnings(RoomWarnings.CURSOR_MISMATCH). Columns returned by the query: id, datasetName. Fields in com.example.android.autofill.service.model.DatasetWithFilledAutofillFields: id, datasetName, packageName. DatasetWithFilledAutofillFields getAutofillDatasetWithId(String datasetId); ^ /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/dao/AutofillDao.java:94: warning: The return value includes a Pojo with a @Relation. It is usually desired to annotate this method with @Transaction to avoid possibility of inconsistent results between the Pojo and its relations. See https://developer.android.com/reference/android/arch/persistence/room/Transaction.html for details. DatasetWithFilledAutofillFields getAutofillDatasetWithId(String datasetId); ^ /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/data/source/local/db/AutofillDatabase.java:52: warning: Schema export directory is not provided to the annotation processor so we cannot export the schema. You can either provide room.schemaLocation annotation processor argument OR set exportSchema to false. public abstract class AutofillDatabase extends RoomDatabase { ^ Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/afservice/build/generated/source/apt/debug/com/example/android/autofill/service/data/source/local/dao/AutofillDao_Impl.java uses unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 15 warnings

Task :afservice:compileDebugNdk NO-SOURCE Task :afservice:compileDebugSources Task :afservice:mergeDebugShaders Task :afservice:compileDebugShaders Task :afservice:generateDebugAssets Task :afservice:mergeDebugAssets Task :afservice:validateSigningDebug Task :afservice:signingConfigWriterDebug Task :afservice:transformClassesWithDexBuilderForDebug Task :afservice:transformDexArchiveWithExternalLibsDexMergerForDebug Task :afservice:transformDexArchiveWithDexMergerForDebug Task :afservice:mergeDebugJniLibFolders Task :afservice:transformNativeLibsWithMergeJniLibsForDebug Task :afservice:transformNativeLibsWithStripDebugSymbolForDebug Task :afservice:processDebugJavaRes NO-SOURCE Task :afservice:transformResourcesWithMergeJavaResForDebug Task :afservice:packageDebug Task :afservice:assembleDebug Task :Application:preBuild UP-TO-DATE Task :Application:preDebugBuild Task :Application:compileDebugAidl NO-SOURCE Task :Application:compileDebugRenderscript Task :Application:checkDebugManifest Task :Application:generateDebugBuildConfig Task :Application:prepareLintJar Task :Application:generateDebugSources Task :Application:javaPreCompileDebug Task :Application:mainApkListPersistenceDebug Task :Application:generateDebugResValues Task :Application:generateDebugResources Task :Application:mergeDebugResources Task :Application:createDebugCompatibleScreenManifests Task :Application:processDebugManifest Task :Application:processDebugResources

Note: /Users/owahltinez/Sandbox/samples/input-samples/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/commoncases/RecyclerViewActivity.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.

Task :Application:compileDebugJavaWithJavac

Task :Application:compileDebugNdk NO-SOURCE Task :Application:compileDebugSources Task :Application:mergeDebugShaders Task :Application:compileDebugShaders Task :Application:generateDebugAssets Task :Application:mergeDebugAssets Task :Application:validateSigningDebug Task :Application:signingConfigWriterDebug Task :Application:transformClassesWithDexBuilderForDebug Task :Application:transformDexArchiveWithExternalLibsDexMergerForDebug Task :Application:transformDexArchiveWithDexMergerForDebug Task :Application:mergeDebugJniLibFolders Task :Application:transformNativeLibsWithMergeJniLibsForDebug Task :Application:transformNativeLibsWithStripDebugSymbolForDebug Task :Application:processDebugJavaRes NO-SOURCE Task :Application:transformResourcesWithMergeJavaResForDebug Task :Application:packageDebug Task :Application:assembleDebug

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 52s 52 actionable tasks: 52 executed

Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.

Task :Application:compileDebugJavaWithJavac

Task :Application:compileDebugSources Task :Application:mergeDebugShaders Task :Application:compileDebugShaders Task :Application:generateDebugAssets Task :Application:mergeDebugAssets Task :Application:checkDebugDuplicateClasses Task :Application:mergeExtDexDebug Task :Application:transformClassesWithDexBuilderForDebug Task :Application:mergeDexDebug Task :Application:validateSigningDebug Task :Application:signingConfigWriterDebug Task :Application:mergeDebugJniLibFolders Task :Application:transformNativeLibsWithMergeJniLibsForDebug Task :Application:transformNativeLibsWithStripDebugSymbolForDebug Task :Application:processDebugJavaRes NO-SOURCE Task :Application:transformResourcesWithMergeJavaResForDebug Task :Application:packageDebug Task :Application:assembleDebug

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0. Use '--warning-mode all' to show the individual deprecation warnings. See https://docs.gradle.org/5.1.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD SUCCESSFUL in 25s 26 actionable tasks: 26 executed

codingjeremy commented 3 years ago

可以拉取嗎?謝謝

You can pull and submit this merge into your own repo if that is what you are asking.