From b144042b9ed99f74ef75c7b0ad6517287c2e23b0 Mon Sep 17 00:00:00 2001 From: Trevor Johns Date: Thu, 15 Feb 2018 14:16:49 -0800 Subject: [PATCH] Sync prebuilts with oc-mr1-dev. developers/samples/android: 614f070360afa88109475ae864a270370a2e3e16 developers/build: cd94b83113871d35826e7b0460e67c3d9af08205 Test: N/A Bug: 73506507 Change-Id: I49a3e8dd3c3b3b94d20f57ec9d44d3ec6095929f --- .../Application/build.gradle | 22 +- .../gradle/ActionBarCompat-Basic/LICENSE | 444 ------------ .../gradle/ActionBarCompat-Basic/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../ActionBarCompat-ListPopupMenu/LICENSE | 444 ------------ .../ActionBarCompat-ListPopupMenu/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../gradle/ActionBarCompat-Styled/LICENSE | 444 ------------ .../gradle/ActionBarCompat-Styled/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 20 +- prebuilts/gradle/ActiveNotifications/LICENSE | 444 ------------ .../gradle/ActiveNotifications/README.md | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../gradle/ActivityInstrumentation/LICENSE | 444 ------------ .../gradle/ActivityInstrumentation/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../ActivitySceneTransitionBasic/LICENSE | 444 ------------ .../ActivitySceneTransitionBasic/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../gradle/AdvancedImmersiveMode/LICENSE | 444 ------------ .../gradle/AdvancedImmersiveMode/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../AgendaData/Application/build.gradle | 26 +- prebuilts/gradle/AgendaData/LICENSE | 444 ------------ prebuilts/gradle/AgendaData/README.md | 4 +- .../gradle/AgendaData/Wearable/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- prebuilts/gradle/AlwaysOn/LICENSE | 444 ------------ prebuilts/gradle/AlwaysOn/NOTICE | 2 +- prebuilts/gradle/AlwaysOn/README.md | 4 +- .../gradle/AlwaysOn/Wearable/build.gradle | 21 +- .../wearable/wear/alwayson/MainActivity.java | 392 ++++++----- .../src/main/res/layout/activity_main.xml | 25 +- prebuilts/gradle/AlwaysOn/build.gradle | 6 + .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../gradle/AppRestrictionEnforcer/LICENSE | 444 ------------ .../gradle/AppRestrictionEnforcer/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/AppRestrictionSchema/LICENSE | 444 ------------ .../gradle/AppRestrictionSchema/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../AppRestrictions/Application/build.gradle | 22 +- prebuilts/gradle/AppRestrictions/LICENSE | 444 ------------ prebuilts/gradle/AppRestrictions/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- prebuilts/gradle/AppShortcuts/LICENSE | 444 ------------ prebuilts/gradle/AppShortcuts/NOTICE | 2 +- prebuilts/gradle/AppShortcuts/README.md | 4 +- prebuilts/gradle/AppShortcuts/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/AppUsageStatistics/LICENSE | 444 ------------ prebuilts/gradle/AppUsageStatistics/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../AsymmetricFingerprintDialog/LICENSE | 444 ------------ .../AsymmetricFingerprintDialog/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/AutoBackupForApps/LICENSE | 444 ------------ prebuilts/gradle/AutoBackupForApps/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 31 +- .../Application/src/main/AndroidManifest.xml | 63 +- .../app}/CommonUtil.java | 2 +- .../app/CreditCardActivity.java | 3 +- .../app/CreditCardAntiPatternActivity.java | 4 +- .../app/CreditCardCompoundViewActivity.java | 4 +- .../app/CreditCardDatePickerActivity.java | 6 +- .../CreditCardExpirationDateCompoundView.java | 6 +- .../CreditCardExpirationDatePickerView.java | 9 +- .../app/CreditCardSpinnersActivity.java | 4 +- .../app/CustomVirtualView.java | 26 +- .../app/EmailComposeActivity.java | 4 +- .../app/InfoButton.java | 4 +- .../app/MainActivity.java | 6 +- .../app/MultiplePartitionsActivity.java | 5 +- .../app/NavigationItem.java | 4 +- .../app/ScrollableCustomVirtualView.java | 2 +- .../StandardAutoCompleteSignInActivity.java | 10 +- .../app/StandardSignInActivity.java | 4 +- .../app/VirtualSignInActivity.java | 4 +- .../app/WebViewSignInActivity.java | 8 +- .../app/WelcomeActivity.java | 4 +- .../src/main/res/layout/activity_main.xml | 22 +- .../main/res/layout/credit_card_activity.xml | 2 +- .../credit_card_anti_pattern_activity.xml | 2 +- .../credit_card_compound_view_activity.xml | 4 +- .../credit_card_date_picker_activity.xml | 4 +- .../layout/credit_card_spinners_activity.xml | 2 +- .../res/layout/email_compose_activity.xml | 2 +- .../src/main/res/layout/login_activity.xml | 2 +- .../login_with_autocomplete_activity.xml | 2 +- .../layout/multiple_partitions_activity.xml | 4 +- .../src/main/res/layout/navigation_item.xml | 2 +- .../res/layout/virtual_login_activity.xml | 4 +- .../src/main/res/values/strings.xml | 39 +- .../src/main/res/values/styles.xml | 27 - prebuilts/gradle/AutofillFramework/LICENSE | 444 ------------ prebuilts/gradle/AutofillFramework/NOTICE | 2 +- prebuilts/gradle/AutofillFramework/README.md | 2 +- .../AutofillFramework/afservice/build.gradle | 35 + .../afservice/proguard-rules.pro | 21 + .../afservice/src/main/AndroidManifest.xml | 41 ++ .../autofill/service}/AuthActivity.java | 15 +- .../service}/AutofillFieldMetadata.java | 9 +- .../AutofillFieldMetadataCollection.java | 2 +- .../autofill/service}/AutofillHelper.java | 7 +- .../service}/AutofillHintProperties.java | 4 +- .../autofill/service}/AutofillHints.java | 10 +- .../android/autofill/service/CommonUtil.java | 154 +++++ .../autofill/service}/FakeFieldGenerator.java | 4 +- .../autofill/service}/MyAutofillService.java | 19 +- .../autofill/service}/SecurityHelper.java | 8 +- .../autofill/service}/StructureParser.java | 13 +- .../android/autofill/service}/W3cHints.java | 2 +- .../datasource/AutofillDataSource.java | 4 +- .../DigitalAssetLinksDataSource.java | 2 +- .../PackageVerificationDataSource.java | 2 +- .../SharedPrefsAutofillRepository.java | 8 +- ...haredPrefsDigitalAssetLinksRepository.java | 6 +- ...redPrefsPackageVerificationRepository.java | 10 +- .../service}/model/FilledAutofillField.java | 13 +- .../model/FilledAutofillFieldCollection.java | 14 +- .../service}/settings/MyPreferences.java | 4 +- .../service}/settings/SettingsActivity.java | 26 +- .../res/drawable-v24}/ic_add_black_24dp.xml | 0 .../ic_delete_forever_black_24dp.xml | 0 .../res/drawable-v24}/ic_lock_black_24dp.xml | 0 .../res/drawable-v24/ic_person_black_24dp.xml | 20 + .../multidataset_service_auth_activity.xml | 8 +- .../layout/multidataset_service_list_item.xml | 0 ...multidataset_service_settings_activity.xml | 0 ...taset_service_settings_add_data_dialog.xml | 0 ...service_settings_authentication_dialog.xml | 0 .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3323 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2036 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4201 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 6861 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 9672 bytes .../afservice/src/main/res/values/colors.xml | 6 + .../afservice/src/main/res/values/dimens.xml | 10 + .../afservice/src/main/res/values/strings.xml | 78 +++ .../afservice/src/main/res/values/styles.xml | 36 + .../src/main/res/xml/multidataset_service.xml | 2 +- .../gradle/AutofillFramework/build.gradle | 23 +- .../gradle/wrapper/gradle-wrapper.properties | 4 +- .../AutofillFramework/kotlinApp/README.md | 8 +- .../AutofillFramework/kotlinApp/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../gradle/AutofillFramework/settings.gradle | 1 + .../Application/build.gradle | 22 +- prebuilts/gradle/BasicAccessibility/LICENSE | 444 ------------ prebuilts/gradle/BasicAccessibility/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/BasicAndroidKeyStore/LICENSE | 444 ------------ .../gradle/BasicAndroidKeyStore/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 20 +- prebuilts/gradle/BasicContactables/LICENSE | 444 ------------ prebuilts/gradle/BasicContactables/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/BasicGestureDetect/LICENSE | 444 ------------ prebuilts/gradle/BasicGestureDetect/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/BasicImmersiveMode/LICENSE | 444 ------------ prebuilts/gradle/BasicImmersiveMode/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/BasicManagedProfile/LICENSE | 444 ------------ .../gradle/BasicManagedProfile/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/BasicMediaDecoder/LICENSE | 444 ------------ prebuilts/gradle/BasicMediaDecoder/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../BasicMediaRouter/Application/build.gradle | 22 +- prebuilts/gradle/BasicMediaRouter/LICENSE | 444 ------------ prebuilts/gradle/BasicMediaRouter/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../BasicMultitouch/Application/build.gradle | 22 +- prebuilts/gradle/BasicMultitouch/LICENSE | 444 ------------ prebuilts/gradle/BasicMultitouch/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../BasicNetworking/Application/build.gradle | 22 +- prebuilts/gradle/BasicNetworking/LICENSE | 444 ------------ prebuilts/gradle/BasicNetworking/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/BasicNotifications/LICENSE | 444 ------------ prebuilts/gradle/BasicNotifications/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/BasicRenderScript/LICENSE | 444 ------------ prebuilts/gradle/BasicRenderScript/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../BasicSyncAdapter/Application/build.gradle | 22 +- prebuilts/gradle/BasicSyncAdapter/LICENSE | 444 ------------ prebuilts/gradle/BasicSyncAdapter/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../BasicTransition/Application/build.gradle | 22 +- prebuilts/gradle/BasicTransition/LICENSE | 444 ------------ prebuilts/gradle/BasicTransition/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../BatchStepSensor/Application/build.gradle | 22 +- prebuilts/gradle/BatchStepSensor/LICENSE | 444 ------------ prebuilts/gradle/BatchStepSensor/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../BeamLargeFiles/Application/build.gradle | 22 +- prebuilts/gradle/BeamLargeFiles/LICENSE | 444 ------------ prebuilts/gradle/BeamLargeFiles/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../gradle/BluetoothAdvertisements/LICENSE | 444 ------------ .../gradle/BluetoothAdvertisements/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../BluetoothChat/Application/build.gradle | 22 +- prebuilts/gradle/BluetoothChat/LICENSE | 444 ------------ prebuilts/gradle/BluetoothChat/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../BluetoothLeGatt/Application/build.gradle | 22 +- prebuilts/gradle/BluetoothLeGatt/LICENSE | 444 ------------ prebuilts/gradle/BluetoothLeGatt/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/BorderlessButtons/LICENSE | 444 ------------ prebuilts/gradle/BorderlessButtons/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Camera2Basic/Application/build.gradle | 23 +- prebuilts/gradle/Camera2Basic/LICENSE | 444 ------------ prebuilts/gradle/Camera2Basic/README.md | 2 +- .../kotlinApp/.google/packaging.yaml | 23 + .../gradle/Camera2Basic/kotlinApp/README.md | 3 +- .../Camera2Raw/Application/build.gradle | 22 +- .../camera2raw/Camera2RawFragment.java | 2 +- prebuilts/gradle/Camera2Raw/LICENSE | 444 ------------ prebuilts/gradle/Camera2Raw/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Camera2Video/Application/build.gradle | 22 +- prebuilts/gradle/Camera2Video/LICENSE | 444 ------------ prebuilts/gradle/Camera2Video/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../kotlinApp/.google/packaging.yaml | 19 + .../kotlinApp/Application/build.gradle | 25 + .../Application/src/main/AndroidManifest.xml | 40 ++ .../camera2video/AutoFitTextureView.kt | 68 ++ .../camera2video/Camera2VideoFragment.kt | 627 +++++++++++++++++ .../android/camera2video/CameraActivity.kt | 32 + .../camera2video/CompareSizesByArea.kt | 30 + .../camera2video/ConfirmationDialog.kt | 40 ++ .../example/android/camera2video/Constants.kt | 24 + .../android/camera2video/ErrorDialog.kt | 42 ++ .../main/res/drawable-hdpi/ic_action_info.png | Bin 0 -> 1025 bytes .../main/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 4370 bytes .../src/main/res/drawable-hdpi/tile.9.png | Bin 0 -> 196 bytes .../main/res/drawable-mdpi/ic_action_info.png | Bin 0 -> 665 bytes .../main/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 2739 bytes .../res/drawable-xhdpi/ic_action_info.png | Bin 0 -> 1355 bytes .../main/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 6096 bytes .../res/drawable-xxhdpi/ic_action_info.png | Bin 0 -> 2265 bytes .../main/res/drawable-xxhdpi/ic_launcher.png | Bin 0 -> 10731 bytes .../layout-land/fragment_camera2_video.xml | 59 ++ .../src/main/res/layout/activity_camera.xml | 23 + .../res/layout/fragment_camera2_video.xml | 55 ++ .../res/values-v21/base-template-styles.xml | 4 +- .../src/main/res/values/base-strings.xml | 25 + .../src/main/res/values/colors.xml | 20 + .../src/main/res/values/dimens.xml | 19 + .../src/main/res/values/strings.xml | 23 + .../src/main/res/values/styles.xml | 23 + .../gradle/Camera2Video/kotlinApp/CONTRIB.md | 35 + .../gradle/Camera2Video/kotlinApp/README.md | 92 +++ .../Camera2Video/kotlinApp/build.gradle | 22 + .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 49896 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + .../gradle/Camera2Video/kotlinApp/gradlew | 164 +++++ .../gradle/Camera2Video/kotlinApp/gradlew.bat | 90 +++ .../kotlinApp}/packaging.yaml | 13 +- .../kotlinApp/screenshots/1-launch.png | Bin 0 -> 2329041 bytes .../kotlinApp/screenshots/2-record.png | Bin 0 -> 2368599 bytes .../kotlinApp/screenshots/3-save.png | Bin 0 -> 2183768 bytes .../kotlinApp/screenshots/icon-web.png | Bin 0 -> 66500 bytes .../Camera2Video/kotlinApp/settings.gradle | 1 + .../CardEmulation/Application/build.gradle | 22 +- prebuilts/gradle/CardEmulation/LICENSE | 444 ------------ prebuilts/gradle/CardEmulation/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../CardReader/Application/build.gradle | 22 +- prebuilts/gradle/CardReader/LICENSE | 444 ------------ prebuilts/gradle/CardReader/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../gradle/CardView/Application/build.gradle | 14 +- prebuilts/gradle/CardView/LICENSE | 444 ------------ prebuilts/gradle/CardView/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../{ => kotlinApp/.google}/packaging.yaml | 11 +- .../kotlinApp/Application/build.gradle | 36 + .../Application/src/main/AndroidManifest.xml | 36 + .../android/cardview/CardViewActivity.kt | 37 + .../android/cardview/CardViewFragment.kt | 82 +++ .../main/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 4500 bytes .../src/main/res/drawable-hdpi/tile.9.png | Bin 0 -> 196 bytes .../main/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 2857 bytes .../main/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 6459 bytes .../main/res/drawable-xxhdpi/ic_launcher.png | Bin 0 -> 11412 bytes .../main/res/layout/activity_card_view.xml | 28 + .../main/res/layout/fragment_card_view.xml | 91 +++ .../src/main/res/values/colors.xml | 20 + .../src/main/res/values/dimens.xml | 27 + .../src/main/res/values/strings.xml | 39 ++ .../src/main/res/values/styles.xml | 20 + .../example/android/cardview/SampleTests.kt | 69 ++ .../gradle/CardView/kotlinApp/CONTRIB.md | 35 + prebuilts/gradle/CardView/kotlinApp/README.md | 50 ++ .../gradle/CardView/kotlinApp/build.gradle | 32 + .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 49896 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + prebuilts/gradle/CardView/kotlinApp/gradlew | 164 +++++ .../gradle/CardView/kotlinApp/gradlew.bat | 90 +++ .../gradle/CardView/kotlinApp/settings.gradle | 1 + .../ClippingBasic/Application/build.gradle | 22 +- prebuilts/gradle/ClippingBasic/LICENSE | 444 ------------ prebuilts/gradle/ClippingBasic/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../gradle/CommitContentSampleApp/LICENSE | 444 ------------ .../gradle/CommitContentSampleApp/NOTICE | 2 +- .../gradle/CommitContentSampleApp/README.md | 4 +- .../CommitContentSampleApp/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../gradle/CommitContentSampleIME/LICENSE | 444 ------------ .../gradle/CommitContentSampleIME/NOTICE | 2 +- .../gradle/CommitContentSampleIME/README.md | 4 +- .../CommitContentSampleIME/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/ConfirmCredential/LICENSE | 444 ------------ prebuilts/gradle/ConfirmCredential/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../gradle/ContentProviderPaging/LICENSE | 444 ------------ prebuilts/gradle/ContentProviderPaging/NOTICE | 2 +- .../gradle/ContentProviderPaging/README.md | 4 +- .../gradle/ContentProviderPaging/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../kotlinApp/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../CustomChoiceList/Application/build.gradle | 22 +- prebuilts/gradle/CustomChoiceList/LICENSE | 444 ------------ prebuilts/gradle/CustomChoiceList/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/CustomNotifications/LICENSE | 444 ------------ .../gradle/CustomNotifications/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../CustomTransition/Application/build.gradle | 22 +- prebuilts/gradle/CustomTransition/LICENSE | 444 ------------ prebuilts/gradle/CustomTransition/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../gradle/DataLayer/Application/build.gradle | 29 +- .../wearable/datalayer/MainActivity.java | 215 +++--- prebuilts/gradle/DataLayer/LICENSE | 444 ------------ prebuilts/gradle/DataLayer/README.md | 2 +- .../gradle/DataLayer/Wearable/build.gradle | 25 +- .../wearable/datalayer/MainActivity.java | 203 +++--- .../gradle/wrapper/gradle-wrapper.properties | 4 +- .../Application/build.gradle | 24 +- prebuilts/gradle/DelayedConfirmation/LICENSE | 444 ------------ .../gradle/DelayedConfirmation/README.md | 4 +- .../DelayedConfirmation/Wearable/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../DeviceOwner/Application/build.gradle | 22 +- prebuilts/gradle/DeviceOwner/LICENSE | 444 ------------ prebuilts/gradle/DeviceOwner/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../DirectBoot/Application/build.gradle | 20 +- prebuilts/gradle/DirectBoot/LICENSE | 444 ------------ prebuilts/gradle/DirectBoot/README.md | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../DirectShare/Application/build.gradle | 22 +- prebuilts/gradle/DirectShare/LICENSE | 444 ------------ prebuilts/gradle/DirectShare/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/DirectorySelection/LICENSE | 444 ------------ prebuilts/gradle/DirectorySelection/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 20 +- prebuilts/gradle/DisplayingBitmaps/LICENSE | 444 ------------ prebuilts/gradle/DisplayingBitmaps/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/DocumentCentricApps/LICENSE | 444 ------------ .../gradle/DocumentCentricApps/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../DocumentCentricRelinquishIdentity/LICENSE | 444 ------------ .../README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../gradle/DoneBar/Application/build.gradle | 22 +- prebuilts/gradle/DoneBar/LICENSE | 444 ------------ prebuilts/gradle/DoneBar/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- prebuilts/gradle/DownloadableFonts/LICENSE | 444 ------------ prebuilts/gradle/DownloadableFonts/NOTICE | 2 +- prebuilts/gradle/DownloadableFonts/README.md | 4 +- .../gradle/DownloadableFonts/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../DownloadableFonts/kotlinApp/build.gradle | 2 +- .../DragSource/build.gradle | 2 +- .../DropTarget/build.gradle | 2 +- .../gradle/DragAndDropAcrossApps/LICENSE | 444 ------------ prebuilts/gradle/DragAndDropAcrossApps/NOTICE | 2 +- .../gradle/DragAndDropAcrossApps/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../DrawableTinting/Application/build.gradle | 22 +- prebuilts/gradle/DrawableTinting/LICENSE | 444 ------------ prebuilts/gradle/DrawableTinting/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../ElevationBasic/Application/build.gradle | 22 +- prebuilts/gradle/ElevationBasic/LICENSE | 444 ------------ prebuilts/gradle/ElevationBasic/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../ElevationDrag/Application/build.gradle | 22 +- prebuilts/gradle/ElevationDrag/LICENSE | 444 ------------ prebuilts/gradle/ElevationDrag/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../gradle/ElizaChat/Application/build.gradle | 20 +- prebuilts/gradle/ElizaChat/LICENSE | 444 ------------ prebuilts/gradle/ElizaChat/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- prebuilts/gradle/EmojiCompat/LICENSE | 444 ------------ prebuilts/gradle/EmojiCompat/NOTICE | 2 +- prebuilts/gradle/EmojiCompat/README.md | 4 +- prebuilts/gradle/EmojiCompat/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../gradle/EmojiCompat/kotlinApp/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../FindMyPhone/Application/build.gradle | 24 +- prebuilts/gradle/FindMyPhone/LICENSE | 444 ------------ prebuilts/gradle/FindMyPhone/README.md | 4 +- .../gradle/FindMyPhone/Wearable/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 23 +- prebuilts/gradle/FingerprintDialog/LICENSE | 444 ------------ prebuilts/gradle/FingerprintDialog/README.md | 2 +- .../kotlinApp/.google/packaging.yaml | 23 + .../FingerprintDialog/kotlinApp/README.md | 3 +- prebuilts/gradle/Flashlight/LICENSE | 444 ------------ prebuilts/gradle/Flashlight/NOTICE | 2 +- prebuilts/gradle/Flashlight/README.md | 4 +- .../gradle/Flashlight/Wearable/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../gradle/FloatingActionButtonBasic/LICENSE | 444 ------------ .../FloatingActionButtonBasic/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Geofencing/Application/build.gradle | 26 +- prebuilts/gradle/Geofencing/LICENSE | 444 ------------ prebuilts/gradle/Geofencing/README.md | 4 +- .../gradle/Geofencing/Wearable/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- prebuilts/gradle/GridViewPager/LICENSE | 444 ------------ prebuilts/gradle/GridViewPager/NOTICE | 2 +- prebuilts/gradle/GridViewPager/README.md | 4 +- .../GridViewPager/Wearable/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../HdrViewfinder/Application/build.gradle | 22 +- prebuilts/gradle/HdrViewfinder/LICENSE | 444 ------------ prebuilts/gradle/HdrViewfinder/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../HorizontalPaging/Application/build.gradle | 22 +- prebuilts/gradle/HorizontalPaging/LICENSE | 444 ------------ prebuilts/gradle/HorizontalPaging/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../ImmersiveMode/Application/build.gradle | 22 +- prebuilts/gradle/ImmersiveMode/LICENSE | 444 ------------ prebuilts/gradle/ImmersiveMode/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Interpolator/Application/build.gradle | 22 +- prebuilts/gradle/Interpolator/LICENSE | 444 ------------ prebuilts/gradle/Interpolator/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../JobScheduler/Application/build.gradle | 23 +- prebuilts/gradle/JobScheduler/LICENSE | 444 ------------ prebuilts/gradle/JobScheduler/README.md | 2 +- .../kotlinApp/.google/packaging.yaml | 13 + prebuilts/gradle/JumpingJack/LICENSE | 444 ------------ prebuilts/gradle/JumpingJack/NOTICE | 2 +- prebuilts/gradle/JumpingJack/README.md | 4 +- .../gradle/JumpingJack/Wearable/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../LNotifications/Application/build.gradle | 20 +- prebuilts/gradle/LNotifications/LICENSE | 444 ------------ prebuilts/gradle/LNotifications/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../client/MediaBrowserAdapter.java | 297 -------- .../client/MediaBrowserHelper.java | 260 +++++++ .../mediasession/service/MusicService.java | 2 + .../android/mediasession/ui/MainActivity.java | 140 ++-- .../android/mediasession/ui/MediaSeekBar.java | 3 +- prebuilts/gradle/MediaBrowserService/LICENSE | 444 ------------ prebuilts/gradle/MediaBrowserService/NOTICE | 2 +- .../gradle/MediaBrowserService/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../MediaEffects/Application/build.gradle | 22 +- prebuilts/gradle/MediaEffects/LICENSE | 444 ------------ prebuilts/gradle/MediaEffects/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../MediaRecorder/Application/build.gradle | 22 +- prebuilts/gradle/MediaRecorder/LICENSE | 444 ------------ prebuilts/gradle/MediaRecorder/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../MediaRouter/Application/build.gradle | 22 +- prebuilts/gradle/MediaRouter/LICENSE | 444 ------------ prebuilts/gradle/MediaRouter/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../MessagingService/Application/build.gradle | 20 +- prebuilts/gradle/MessagingService/LICENSE | 444 ------------ prebuilts/gradle/MessagingService/NOTICE | 2 +- prebuilts/gradle/MessagingService/README.md | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../gradle/MidiScope/Application/build.gradle | 22 +- prebuilts/gradle/MidiScope/LICENSE | 444 ------------ prebuilts/gradle/MidiScope/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../gradle/MidiSynth/Application/build.gradle | 22 +- prebuilts/gradle/MidiSynth/LICENSE | 444 ------------ prebuilts/gradle/MidiSynth/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 2 +- .../gradle/MultiWindowPlayground/LICENSE | 444 ------------ prebuilts/gradle/MultiWindowPlayground/NOTICE | 2 +- .../gradle/MultiWindowPlayground/README.md | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../kotlinApp/Application/build.gradle | 25 + .../Application/src/main/AndroidManifest.xml | 86 +++ .../multiwindowplayground/MainActivity.kt | 118 ++++ .../activities/AdjacentActivity.kt | 37 + .../activities/BasicActivity.kt | 37 + .../CustomConfigurationChangeActivity.kt | 38 + .../activities/LaunchBoundsActivity.kt | 37 + .../activities/LoggingActivity.kt | 158 +++++ .../activities/MinimumSizeActivity.kt | 36 + .../activities/UnresizableActivity.kt | 38 + .../multiwindowplayground/logger/Log.kt | 59 ++ .../logger/LogFragment.kt | 90 +++ .../multiwindowplayground/logger/LogNode.kt | 41 ++ .../multiwindowplayground/logger/LogView.kt | 90 +++ .../logger/LogWrapper.kt | 52 ++ .../logger/MessageOnlyLogFilter.kt | 32 + .../src/main/res/layout/activity_logging.xml | 51 ++ .../src/main/res/layout/activity_main.xml | 123 ++++ .../src/main/res/layout/logging.xml | 22 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 2633 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 1741 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 3241 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 5345 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 7787 bytes .../src/main/res/values-w820dp/dimens.xml | 20 + .../src/main/res/values/colors.xml | 32 + .../src/main/res/values/dimens.xml | 24 + .../src/main/res/values/strings.xml | 69 ++ .../src/main/res/values/styles.xml | 37 + .../MultiWindowPlayground/kotlinApp/README.md | 94 +++ .../kotlinApp/build.gradle | 22 + .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 49896 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + .../MultiWindowPlayground/kotlinApp/gradlew | 164 +++++ .../kotlinApp/gradlew.bat | 90 +++ .../kotlinApp/screenshots/icon-web.png | Bin 0 -> 29390 bytes .../kotlinApp/screenshots/main.png | Bin 0 -> 257056 bytes .../kotlinApp/settings.gradle | 1 + .../NavigationDrawer/Application/build.gradle | 14 +- prebuilts/gradle/NavigationDrawer/LICENSE | 444 ------------ prebuilts/gradle/NavigationDrawer/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../kotlinApp/.google/packaging.yaml | 15 + .../kotlinApp/Application/build.gradle | 35 + .../Application/src/main/AndroidManifest.xml | 41 ++ .../android/navigationdrawer/MainActivity.kt | 76 ++ .../NavigationDrawerActivity.kt | 194 ++++++ .../android/navigationdrawer/PlanetAdapter.kt | 58 ++ .../navigationdrawer/PlanetFragment.kt | 58 ++ .../android/navigationdrawer/Sample.kt | 21 + .../main/res/drawable-hdpi/action_search.png | Bin 0 -> 1764 bytes .../res/drawable-hdpi/drawer_shadow.9.png | Bin 0 -> 171 bytes .../src/main/res/drawable-hdpi/ic_drawer.png | Bin 0 -> 2842 bytes .../main/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 3860 bytes .../src/main/res/drawable-hdpi/tile.9.png | Bin 0 -> 196 bytes .../main/res/drawable-mdpi/action_search.png | Bin 0 -> 1394 bytes .../res/drawable-mdpi/drawer_shadow.9.png | Bin 0 -> 158 bytes .../src/main/res/drawable-mdpi/ic_drawer.png | Bin 0 -> 2837 bytes .../main/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 2378 bytes .../main/res/drawable-xhdpi/action_search.png | Bin 0 -> 2127 bytes .../res/drawable-xhdpi/drawer_shadow.9.png | Bin 0 -> 182 bytes .../src/main/res/drawable-xhdpi/ic_drawer.png | Bin 0 -> 1056 bytes .../main/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 5525 bytes .../main/res/drawable-xxhdpi/ic_launcher.png | Bin 0 -> 11040 bytes .../src/main/res/drawable/earth.jpg | Bin 0 -> 98592 bytes .../src/main/res/drawable/jupiter.jpg | Bin 0 -> 32610 bytes .../src/main/res/drawable/mars.jpg | Bin 0 -> 144054 bytes .../src/main/res/drawable/mercury.jpg | Bin 0 -> 81442 bytes .../src/main/res/drawable/neptune.jpg | Bin 0 -> 32548 bytes .../src/main/res/drawable/saturn.jpg | Bin 0 -> 21019 bytes .../src/main/res/drawable/uranus.jpg | Bin 0 -> 13956 bytes .../src/main/res/drawable/venus.jpg | Bin 0 -> 12409 bytes .../src/main/res/layout/activity_main.xml | 42 ++ .../res/layout/activity_navigation_drawer.xml | 52 ++ .../src/main/res/layout/drawer_list_item.xml | 28 + .../src/main/res/layout/fragment_planet.xml | 26 + .../main/res/layout/sample_dashboard_item.xml | 50 ++ .../src/main/res/menu/navigation_drawer.xml | 25 + .../src/main/res/values-v20/styles.xml | 20 + .../res/values-v21/base-template-styles.xml | 20 + .../main/res/values/activitycards-colors.xml | 22 + .../main/res/values/activitycards-dimens.xml | 21 + .../main/res/values/activitycards-strings.xml | 24 + .../src/main/res/values/colors.xml | 20 + .../src/main/res/values/dimens.xml | 22 + .../src/main/res/values/strings.xml | 43 ++ .../src/main/res/values/template-dimens.xml | 33 + .../src/main/res/values/template-styles.xml | 77 +++ .../NavigationDrawer/kotlinApp/CONTRIB.md | 35 + .../NavigationDrawer/kotlinApp/README.md | 50 ++ .../NavigationDrawer/kotlinApp/build.gradle | 29 + .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 49896 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + .../gradle/NavigationDrawer/kotlinApp/gradlew | 164 +++++ .../NavigationDrawer/kotlinApp/gradlew.bat | 90 +++ .../kotlinApp/settings.gradle | 1 + .../NetworkConnect/Application/build.gradle | 22 +- prebuilts/gradle/NetworkConnect/LICENSE | 444 ------------ prebuilts/gradle/NetworkConnect/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../NfcProvisioning/Application/build.gradle | 22 +- prebuilts/gradle/NfcProvisioning/LICENSE | 444 ------------ prebuilts/gradle/NfcProvisioning/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/NotificationChannels/LICENSE | 444 ------------ .../gradle/NotificationChannels/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../kotlinApp/Application/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Notifications/Application/build.gradle | 24 +- prebuilts/gradle/Notifications/LICENSE | 444 ------------ prebuilts/gradle/Notifications/README.md | 4 +- .../Notifications/Wearable/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../PdfRendererBasic/Application/build.gradle | 22 +- prebuilts/gradle/PdfRendererBasic/LICENSE | 444 ------------ prebuilts/gradle/PdfRendererBasic/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../kotlinApp/.google/packaging.yaml | 17 + .../kotlinApp/Application/build.gradle | 35 + .../PdfRendererBasicFragmentTests.kt | 125 ++++ .../Application/src/main/AndroidManifest.xml | 36 + .../Application/src/main/assets/sample.pdf | Bin 0 -> 453132 bytes .../android/pdfrendererbasic/MainActivity.kt | 58 ++ .../PdfRendererBasicFragment.kt | 237 +++++++ .../src/main/res/drawable-hdpi/tile.9.png | Bin 0 -> 196 bytes .../src/main/res/drawable/ic_info.xml | 25 + .../main/res/layout/activity_main_real.xml | 23 + .../layout/fragment_pdf_renderer_basic.xml | 58 ++ .../Application/src/main/res/menu/main.xml | 26 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3487 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2151 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4373 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 6981 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 10193 bytes .../src/main/res/values/strings.xml | 33 + .../src/main/res/values/styles.xml | 23 + .../Application/tests/AndroidManifest.xml | 41 ++ .../kotlinApp/CONTRIBUTING.md | 35 + .../gradle/PdfRendererBasic/kotlinApp/LICENSE | 647 ++++++++++++++++++ .../PdfRendererBasic/kotlinApp/README.md | 75 ++ .../PdfRendererBasic/kotlinApp/build.gradle | 32 + .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 49896 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + .../gradle/PdfRendererBasic/kotlinApp/gradlew | 164 +++++ .../PdfRendererBasic/kotlinApp/gradlew.bat | 90 +++ .../kotlinApp/screenshots/icon-web.png | Bin 0 -> 36910 bytes .../kotlinApp/screenshots/main.png | Bin 0 -> 410844 bytes .../kotlinApp/settings.gradle | 1 + .../Application/build.gradle | 22 +- prebuilts/gradle/PermissionRequest/LICENSE | 444 ------------ prebuilts/gradle/PermissionRequest/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- prebuilts/gradle/PictureInPicture/LICENSE | 444 ------------ prebuilts/gradle/PictureInPicture/NOTICE | 2 +- prebuilts/gradle/PictureInPicture/README.md | 2 +- .../gradle/Quiz/Application/build.gradle | 24 +- prebuilts/gradle/Quiz/LICENSE | 444 ------------ prebuilts/gradle/Quiz/README.md | 4 +- prebuilts/gradle/Quiz/Wearable/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../RecipeAssistant/Application/build.gradle | 20 +- prebuilts/gradle/RecipeAssistant/LICENSE | 444 ------------ prebuilts/gradle/RecipeAssistant/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../RecyclerView/Application/build.gradle | 22 +- prebuilts/gradle/RecyclerView/LICENSE | 444 ------------ prebuilts/gradle/RecyclerView/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../kotlinApp/.google/packaging.yaml | 20 + .../gradle/RecyclerView/kotlinApp/README.md | 78 +++ .../RecyclerView/kotlinApp/app/build.gradle | 34 + .../kotlinApp/app/proguard-rules.pro | 21 + .../app/src/main/AndroidManifest.xml | 20 + .../common/activities/SampleActivityBase.kt | 52 ++ .../com/example/android/common/logger/Log.kt | 133 ++++ .../android/common/logger/LogFragment.kt | 91 +++ .../example/android/common/logger/LogNode.kt | 39 ++ .../example/android/common/logger/LogView.kt | 105 +++ .../android/common/logger/LogWrapper.kt | 60 ++ .../common/logger/MessageOnlyLogFilter.kt | 34 + .../android/recyclerview/CustomAdapter.kt | 74 ++ .../android/recyclerview/MainActivity.kt | 107 +++ .../recyclerview/RecyclerViewFragment.kt | 139 ++++ .../app/src/main/res/drawable-hdpi/tile.9.png | Bin 0 -> 196 bytes .../src/main/res/drawable-xxhdpi/tile.9.png | Bin 0 -> 196 bytes .../main/res/layout-w720dp/activity_main.xml | 73 ++ .../app/src/main/res/layout/activity_main.xml | 65 ++ .../main/res/layout/recycler_view_frag.xml | 42 ++ .../app/src/main/res/layout/text_row_item.xml | 30 + .../kotlinApp/app/src/main/res/menu/main.xml | 23 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3879 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2411 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 5376 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 9572 bytes .../res/values-sw600dp/template-dimens.xml | 0 .../res/values-sw600dp/template-styles.xml | 0 .../main/res/values-v11/template-styles.xml | 0 .../src/main/res/values-v21/base-colors.xml | 2 + .../res/values-v21/base-template-styles.xml | 26 + .../app}/src/main/res/values/base-strings.xml | 7 +- .../app/src/main/res/values/dimens.xml | 20 + .../main/res/values/fragmentview_strings.xml | 19 + .../app/src/main/res/values/strings.xml | 22 + .../src/main/res/values/template-dimens.xml | 0 .../src/main/res/values/template-styles.xml | 0 .../RecyclerView/kotlinApp/build.gradle | 27 + .../RecyclerView/kotlinApp/gradle.properties | 17 + .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 53636 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + .../gradle/RecyclerView/kotlinApp/gradlew | 160 +++++ .../gradle/RecyclerView/kotlinApp/gradlew.bat | 90 +++ .../RecyclerView/kotlinApp/settings.gradle | 1 + .../Application/build.gradle | 22 +- .../gradle/RenderScriptIntrinsic/LICENSE | 444 ------------ .../gradle/RenderScriptIntrinsic/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../RepeatingAlarm/Application/build.gradle | 22 +- prebuilts/gradle/RepeatingAlarm/LICENSE | 444 ------------ prebuilts/gradle/RepeatingAlarm/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/RevealEffectBasic/LICENSE | 444 ------------ prebuilts/gradle/RevealEffectBasic/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- prebuilts/gradle/RuntimePermissions/LICENSE | 444 ------------ prebuilts/gradle/RuntimePermissions/NOTICE | 2 +- prebuilts/gradle/RuntimePermissions/README.md | 4 +- .../gradle/RuntimePermissions/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../kotlinApp/.google/packaging.yaml | 25 + .../RuntimePermissions/kotlinApp/README.md | 84 +++ .../RuntimePermissions/kotlinApp/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 42 +- .../basicpermissions/MainActivity.java | 32 +- .../camera/CameraPreview.java | 84 +-- .../camera/CameraPreviewActivity.java | 35 +- .../src/main/res/layout/activity_camera.xml | 11 +- .../layout/activity_camera_unavailable.xml | 33 +- .../src/main/res/layout/activity_main.xml | 7 +- .../src/main/res/values-sw600dp/dimens.xml | 24 + .../src/main/res/values-sw600dp/styles.xml | 24 + .../src/main/res/values-v11/styles.xml | 22 + .../src/main/res/values-v21/styles.xml | 20 + .../src/main/res/values/dimens.xml | 32 + .../src/main/res/values/strings.xml | 30 + .../src/main/res/values/styles.xml | 42 ++ .../gradle/RuntimePermissionsBasic/LICENSE | 444 ------------ .../gradle/RuntimePermissionsBasic/NOTICE | 16 + .../gradle/RuntimePermissionsBasic/README.md | 4 +- .../RuntimePermissionsBasic/build.gradle | 10 + .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../kotlinApp/Application/build.gradle | 44 ++ .../Application/src/main/AndroidManifest.xml | 48 ++ .../android/basicpermissions/MainActivity.kt | 128 ++++ .../basicpermissions/camera/CameraPreview.kt | 101 +++ .../camera/CameraPreviewActivity.kt | 95 +++ .../util/AppCompatActivityExt.kt | 31 + .../basicpermissions/util/CameraExt.kt | 38 + .../android/basicpermissions/util/ViewExt.kt | 51 ++ .../src/main/res/drawable-hdpi/tile.9.png | Bin 0 -> 196 bytes .../src/main/res/layout/activity_camera.xml | 21 + .../layout/activity_camera_unavailable.xml | 30 + .../src/main/res/layout/activity_main.xml | 40 ++ .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 3470 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 2206 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 4395 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 6994 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 9911 bytes .../src/main/res/values-sw600dp/dimens.xml | 24 + .../src/main/res/values-sw600dp/styles.xml | 24 + .../src/main/res/values-v11/styles.xml | 22 + .../src/main/res/values-v21/styles.xml | 20 + .../src/main/res/values/dimens.xml | 32 + .../src/main/res/values/strings.xml | 36 + .../src/main/res/values/styles.xml | 42 ++ .../kotlinApp/build.gradle | 13 + .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 49896 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + .../RuntimePermissionsBasic/kotlinApp/gradlew | 164 +++++ .../kotlinApp/gradlew.bat | 90 +++ .../kotlinApp/screenshots/big_icon.png | Bin 0 -> 36396 bytes .../kotlinApp/screenshots/screenshot-1.png | Bin 0 -> 101522 bytes .../kotlinApp/settings.gradle | 1 + .../Application/build.gradle | 21 +- .../gradle/RuntimePermissionsWear/LICENSE | 444 ------------ .../gradle/RuntimePermissionsWear/README.md | 4 +- .../Shared/build.gradle | 13 +- .../Wearable/build.gradle | 21 +- .../runtimepermissions/MainWearActivity.java | 120 ++-- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 20 +- .../gradle/ScopedDirectoryAccess/LICENSE | 444 ------------ .../gradle/ScopedDirectoryAccess/README.md | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../ScreenCapture/Application/build.gradle | 22 +- prebuilts/gradle/ScreenCapture/LICENSE | 444 ------------ prebuilts/gradle/ScreenCapture/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/ShareActionProvider/LICENSE | 444 ------------ .../gradle/ShareActionProvider/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- prebuilts/gradle/SkeletonWearableApp/LICENSE | 444 ------------ prebuilts/gradle/SkeletonWearableApp/NOTICE | 2 +- .../gradle/SkeletonWearableApp/README.md | 4 +- .../SkeletonWearableApp/Wearable/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../SlidingTabsBasic/Application/build.gradle | 22 +- prebuilts/gradle/SlidingTabsBasic/LICENSE | 444 ------------ prebuilts/gradle/SlidingTabsBasic/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- prebuilts/gradle/SlidingTabsColors/LICENSE | 444 ------------ prebuilts/gradle/SlidingTabsColors/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../SpeedTracker/Application/build.gradle | 23 +- prebuilts/gradle/SpeedTracker/LICENSE | 444 ------------ prebuilts/gradle/SpeedTracker/README.md | 4 +- .../gradle/SpeedTracker/Shared/build.gradle | 13 +- .../gradle/SpeedTracker/Wearable/build.gradle | 23 +- .../speedtracker/WearableMainActivity.java | 47 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../StorageClient/Application/build.gradle | 22 +- prebuilts/gradle/StorageClient/LICENSE | 444 ------------ prebuilts/gradle/StorageClient/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../StorageProvider/Application/build.gradle | 20 +- prebuilts/gradle/StorageProvider/LICENSE | 444 ------------ prebuilts/gradle/StorageProvider/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../gradle/SwipeRefreshLayoutBasic/LICENSE | 444 ------------ .../gradle/SwipeRefreshLayoutBasic/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../gradle/SwipeRefreshListFragment/LICENSE | 444 ------------ .../gradle/SwipeRefreshListFragment/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 22 +- .../gradle/SwipeRefreshMultipleViews/LICENSE | 444 ------------ .../SwipeRefreshMultipleViews/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../Application/build.gradle | 17 +- .../gradle/SynchronizedNotifications/LICENSE | 444 ------------ .../SynchronizedNotifications/README.md | 4 +- .../Shared/build.gradle | 13 +- .../Wearable/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../TextLinkify/Application/build.gradle | 22 +- prebuilts/gradle/TextLinkify/LICENSE | 444 ------------ prebuilts/gradle/TextLinkify/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../TextSwitcher/Application/build.gradle | 22 +- prebuilts/gradle/TextSwitcher/LICENSE | 444 ------------ prebuilts/gradle/TextSwitcher/README.md | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- prebuilts/gradle/Timer/LICENSE | 444 ------------ prebuilts/gradle/Timer/NOTICE | 2 +- prebuilts/gradle/Timer/README.md | 4 +- prebuilts/gradle/Timer/Wearable/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../gradle/WatchFace/Application/build.gradle | 29 +- prebuilts/gradle/WatchFace/LICENSE | 444 ------------ prebuilts/gradle/WatchFace/README.md | 2 +- .../gradle/WatchFace/Wearable/build.gradle | 26 +- .../AnalogComplicationWatchFaceService.java | 13 +- prebuilts/gradle/WatchViewStub/LICENSE | 444 ------------ prebuilts/gradle/WatchViewStub/NOTICE | 2 +- prebuilts/gradle/WatchViewStub/README.md | 4 +- .../WatchViewStub/Wearable/build.gradle | 19 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../.google/packaging.yaml | 6 +- prebuilts/gradle/WearAccessibilityApp/NOTICE | 2 +- .../gradle/WearAccessibilityApp/README.md | 22 +- .../Wearable/build.gradle | 30 +- .../AccessibilityActivity.java | 14 +- .../wear/wearaccessibilityapp/AppItem.java | 7 +- .../CircledImageViewPreference.java | 2 + .../ControlsActivity.java | 15 +- .../wearaccessibilityapp/DialogsActivity.java | 14 +- .../FullScreenActivity.java | 15 +- .../wearaccessibilityapp/ImagesActivity.java | 14 +- .../wearaccessibilityapp/InLineActivity.java | 15 +- .../ListOfGraphicsActivity.java | 15 +- .../wearaccessibilityapp/ListsActivity.java | 14 +- .../wear/wearaccessibilityapp/ListsItem.java | 4 +- .../LongListActivity.java | 24 +- .../wearaccessibilityapp/MainActivity.java | 26 +- .../MessagingMainActivity.java | 12 +- .../wearaccessibilityapp/MockDatabase.java | 69 +- .../NotificationsActivity.java | 104 ++- .../OpenOnPhoneAnimationActivity.java | 15 +- .../PhotoCarouselActivity.java | 15 +- .../ProgressActivity.java | 14 +- .../RadioListActivity.java | 14 +- ....java => ScalingScrollLayoutCallback.java} | 16 +- .../ZoomImageActivity.java | 14 +- .../res/drawable/oobe_swipe_left_long.xml | 4 +- .../src/main/res/drawable/oobe_tap.xml | 4 +- .../main/res/layout/activity_long_list.xml | 12 +- .../src/main/res/layout/activity_main.xml | 2 +- .../main/res/layout/circled_image_layout.xml | 2 +- .../screenshots/controls_screen.png | Bin 0 -> 19394 bytes .../screenshots/main_screen.png | Bin 0 -> 18788 bytes .../screenshots/progress_screen.png | Bin 0 -> 17470 bytes .../LICENSE | 444 ------------ .../WearComplicationProvidersTestSuite/NOTICE | 2 +- .../README.md | 4 +- .../Wearable/build.gradle | 21 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- prebuilts/gradle/WearDrawers/LICENSE | 444 ------------ prebuilts/gradle/WearDrawers/NOTICE | 2 +- prebuilts/gradle/WearDrawers/README.md | 4 +- .../gradle/WearDrawers/Wearable/build.gradle | 21 +- .../wear/weardrawers/MainActivity.java | 65 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../WearHighBandwidthNetworking/LICENSE | 444 ------------ .../gradle/WearHighBandwidthNetworking/NOTICE | 2 +- .../WearHighBandwidthNetworking/README.md | 4 +- .../Wearable/build.gradle | 21 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../WearMessagingApp/.google/packaging.yaml | 23 + .../gradle/WearMessagingApp/CONTRIBUTING.md | 35 + prebuilts/gradle/WearMessagingApp/LICENSE | 203 ++++++ prebuilts/gradle/WearMessagingApp/NOTICE | 16 + prebuilts/gradle/WearMessagingApp/README.md | 109 +++ .../WearMessagingApp/Wearable/build.gradle | 83 +++ .../Wearable/google-services.json | 32 + .../Wearable/src/main/AndroidManifest.xml | 80 +++ .../Wearable/src/main/ic_launcher-web.png | Bin 0 -> 23542 bytes .../messaging/GoogleSignedInActivity.java | 167 +++++ .../wear/messaging/SignInActivity.java | 214 ++++++ .../wear/messaging/chat/ChatActivity.java | 309 +++++++++ .../wear/messaging/chat/ChatAdapter.java | 203 ++++++ .../chat/MockIncomingMessageReceiver.java | 177 +++++ .../chat/ReplyToMessageIntentService.java | 100 +++ .../messaging/chatlist/ChatListActivity.java | 185 +++++ .../messaging/chatlist/ChatListAdapter.java | 267 ++++++++ .../contacts/ContactsListActivity.java | 181 +++++ .../contacts/ContactsListAdapter.java | 277 ++++++++ .../wear/messaging/mock/MockDatabase.java | 272 ++++++++ .../messaging/mock/MockObjectGenerator.java | 67 ++ .../wearable/wear/messaging/model/Chat.java | 235 +++++++ .../wear/messaging/model/Message.java | 182 +++++ .../wear/messaging/model/Profile.java | 242 +++++++ .../wear/messaging/util/Constants.java | 50 ++ .../messaging/util/DividerItemDecoration.java | 51 ++ .../wear/messaging/util/MenuTinter.java | 48 ++ .../messaging/util/PrescrollToBottom.java | 47 ++ .../wear/messaging/util/SchedulerHelper.java | 59 ++ .../util/SharedPreferencesHelper.java | 210 ++++++ .../main/res/drawable-hdpi/ic_launcher.png | Bin 0 -> 2498 bytes .../main/res/drawable-mdpi/ic_launcher.png | Bin 0 -> 1561 bytes .../main/res/drawable-xhdpi/ic_launcher.png | Bin 0 -> 3533 bytes .../main/res/drawable-xxhdpi/ic_launcher.png | Bin 0 -> 8059 bytes .../src/main/res/drawable/android_logo.png | Bin 0 -> 3095 bytes .../Wearable/src/main/res/drawable/ben.png | Bin 0 -> 49312 bytes .../src/main/res/drawable/circle_add.xml | 20 + .../src/main/res/drawable/default_profile.png | Bin 0 -> 4389 bytes .../src/main/res/drawable/divider.xml | 21 + .../main/res/drawable/ic_add_black_24dp.xml | 25 + .../main/res/drawable/ic_check_white_24dp.xml | 24 + .../main/res/drawable/ic_check_white_36dp.xml | 24 + .../main/res/drawable/ic_close_white_24dp.xml | 24 + .../main/res/drawable/ic_close_white_36dp.xml | 24 + .../main/res/drawable/ic_face_white_24dp.xml | 24 + .../main/res/drawable/ic_group_white_48dp.xml | 24 + .../res/drawable/ic_keyboard_black_24dp.xml | 24 + .../main/res/drawable/ic_mic_black_24dp.xml | 24 + .../main/res/drawable/ic_person_blue_48dp.xml | 24 + .../main/res/drawable/ic_reply_white_18dp.xml | 24 + .../Wearable/src/main/res/drawable/jane.png | Bin 0 -> 57180 bytes .../src/main/res/drawable/jennifer.png | Bin 0 -> 45387 bytes .../Wearable/src/main/res/drawable/jeremy.png | Bin 0 -> 34251 bytes .../Wearable/src/main/res/drawable/lisa.png | Bin 0 -> 56121 bytes .../Wearable/src/main/res/drawable/paul.png | Bin 0 -> 48810 bytes .../src/main/res/drawable/ripple_rect_40.xml | 21 + .../src/main/res/drawable/ripple_select.xml | 35 + .../Wearable/src/main/res/drawable/splash.xml | 26 + .../src/main/res/layout/action_new_chat.xml | 49 ++ .../src/main/res/layout/activity_chat.xml | 59 ++ .../main/res/layout/activity_chat_list.xml | 35 + .../res/layout/activity_contacts_list.xml | 40 ++ .../src/main/res/layout/activity_signin.xml | 42 ++ .../src/main/res/layout/chat_list_item.xml | 73 ++ .../src/main/res/layout/chat_message.xml | 85 +++ .../main/res/layout/contacts_list_item.xml | 52 ++ .../main/res/layout/drawer_chat_action.xml | 44 ++ .../res/layout/drawer_check_confirmation.xml | 43 ++ .../src/main/res/layout/list_title.xml | 32 + .../Wearable/src/main/res/menu/chat.xml | 27 + .../src/main/res/menu/contacts_list.xml | 27 + .../src/main/res/mipmap-hdpi/ic_launcher.png | Bin 0 -> 2498 bytes .../src/main/res/mipmap-mdpi/ic_launcher.png | Bin 0 -> 1561 bytes .../src/main/res/mipmap-xhdpi/ic_launcher.png | Bin 0 -> 3533 bytes .../main/res/mipmap-xxhdpi/ic_launcher.png | Bin 0 -> 5585 bytes .../main/res/mipmap-xxxhdpi/ic_launcher.png | Bin 0 -> 8059 bytes .../Wearable/src/main/res/values/colors.xml | 41 ++ .../Wearable/src/main/res/values/dimens.xml | 41 ++ .../Wearable/src/main/res/values/strings.xml | 52 ++ .../Wearable/src/main/res/values/styles.xml | 41 ++ .../gradle/WearMessagingApp/build.gradle | 30 + .../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 49896 bytes .../gradle/wrapper/gradle-wrapper.properties | 6 + prebuilts/gradle/WearMessagingApp/gradlew | 164 +++++ prebuilts/gradle/WearMessagingApp/gradlew.bat | 90 +++ .../WearMessagingApp/screenshots/chat.png | Bin 0 -> 58619 bytes .../screenshots/chat_list.png | Bin 0 -> 59040 bytes .../WearMessagingApp/screenshots/contacts.png | Bin 0 -> 55396 bytes .../gradle/WearMessagingApp/settings.gradle | 2 + .../Application/build.gradle | 21 +- prebuilts/gradle/WearNotifications/LICENSE | 444 ------------ prebuilts/gradle/WearNotifications/README.md | 2 +- .../WearNotifications/Shared/build.gradle | 13 +- .../WearNotifications/Wearable/build.gradle | 25 +- .../StandaloneMainActivity.java | 46 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- prebuilts/gradle/WearSpeakerSample/LICENSE | 444 ------------ prebuilts/gradle/WearSpeakerSample/README.md | 4 +- .../gradle/WearSpeakerSample/build.gradle | 4 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- .../WearSpeakerSample/wear/build.gradle | 20 +- .../wearable/speaker/MainActivity.java | 84 ++- .../drawable/{circle.xml => color_circle.xml} | 0 .../src/main/res/drawable/grey_circle.xml | 21 + .../src/main/res/layout/main_activity.xml | 14 +- .../Application/build.gradle | 28 +- prebuilts/gradle/WearVerifyRemoteApp/LICENSE | 444 ------------ .../gradle/WearVerifyRemoteApp/README.md | 2 +- .../WearVerifyRemoteApp/Wearable/build.gradle | 24 +- .../Application/build.gradle | 29 +- .../service/UtilityService.java | 3 +- .../gradle/XYZTouristAttractions/LICENSE | 444 ------------ .../gradle/XYZTouristAttractions/README.md | 4 +- .../XYZTouristAttractions/Shared/build.gradle | 21 +- .../Wearable/build.gradle | 23 +- .../gradle/wrapper/gradle-wrapper.properties | 2 +- 1085 files changed, 20153 insertions(+), 61646 deletions(-) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill/app}/CommonUtil.java (99%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/CreditCardActivity.java (96%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/CreditCardAntiPatternActivity.java (96%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/CreditCardCompoundViewActivity.java (96%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/CreditCardDatePickerActivity.java (94%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/CreditCardExpirationDateCompoundView.java (96%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/CreditCardExpirationDatePickerView.java (95%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/CreditCardSpinnersActivity.java (98%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/CustomVirtualView.java (96%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/EmailComposeActivity.java (93%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/InfoButton.java (94%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/MainActivity.java (97%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/MultiplePartitionsActivity.java (97%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/NavigationItem.java (96%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/ScrollableCustomVirtualView.java (98%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/StandardAutoCompleteSignInActivity.java (94%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/StandardSignInActivity.java (96%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/VirtualSignInActivity.java (97%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/WebViewSignInActivity.java (88%) rename prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/{autofillframework => autofill}/app/WelcomeActivity.java (94%) create mode 100644 prebuilts/gradle/AutofillFramework/afservice/build.gradle create mode 100644 prebuilts/gradle/AutofillFramework/afservice/proguard-rules.pro create mode 100644 prebuilts/gradle/AutofillFramework/afservice/src/main/AndroidManifest.xml rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/AuthActivity.java (89%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/AutofillFieldMetadata.java (85%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/AutofillFieldMetadataCollection.java (97%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/AutofillHelper.java (94%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/AutofillHintProperties.java (94%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/AutofillHints.java (99%) create mode 100644 prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/CommonUtil.java rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/FakeFieldGenerator.java (81%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/MyAutofillService.java (87%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/SecurityHelper.java (96%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/StructureParser.java (90%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/W3cHints.java (98%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/datasource/AutofillDataSource.java (88%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/datasource/DigitalAssetLinksDataSource.java (93%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/datasource/PackageVerificationDataSource.java (95%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/datasource/SharedPrefsAutofillRepository.java (95%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/datasource/SharedPrefsDigitalAssetLinksRepository.java (90%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/datasource/SharedPrefsPackageVerificationRepository.java (89%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/model/FilledAutofillField.java (90%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/model/FilledAutofillFieldCollection.java (94%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/settings/MyPreferences.java (94%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/java/com/example/android/autofillframework/multidatasetservice => afservice/src/main/java/com/example/android/autofill/service}/settings/SettingsActivity.java (90%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/res/drawable => afservice/src/main/res/drawable-v24}/ic_add_black_24dp.xml (100%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/res/drawable => afservice/src/main/res/drawable-v24}/ic_delete_forever_black_24dp.xml (100%) rename prebuilts/gradle/AutofillFramework/{Application/src/main/res/drawable => afservice/src/main/res/drawable-v24}/ic_lock_black_24dp.xml (100%) create mode 100644 prebuilts/gradle/AutofillFramework/afservice/src/main/res/drawable-v24/ic_person_black_24dp.xml rename prebuilts/gradle/AutofillFramework/{Application => afservice}/src/main/res/layout/multidataset_service_auth_activity.xml (95%) rename prebuilts/gradle/AutofillFramework/{Application => afservice}/src/main/res/layout/multidataset_service_list_item.xml (100%) rename prebuilts/gradle/AutofillFramework/{Application => afservice}/src/main/res/layout/multidataset_service_settings_activity.xml (100%) rename prebuilts/gradle/AutofillFramework/{Application => afservice}/src/main/res/layout/multidataset_service_settings_add_data_dialog.xml (100%) rename prebuilts/gradle/AutofillFramework/{Application => afservice}/src/main/res/layout/multidataset_service_settings_authentication_dialog.xml (100%) create mode 100755 prebuilts/gradle/AutofillFramework/afservice/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100755 prebuilts/gradle/AutofillFramework/afservice/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100755 prebuilts/gradle/AutofillFramework/afservice/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100755 prebuilts/gradle/AutofillFramework/afservice/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100755 prebuilts/gradle/AutofillFramework/afservice/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/AutofillFramework/afservice/src/main/res/values/colors.xml create mode 100644 prebuilts/gradle/AutofillFramework/afservice/src/main/res/values/dimens.xml create mode 100644 prebuilts/gradle/AutofillFramework/afservice/src/main/res/values/strings.xml create mode 100644 prebuilts/gradle/AutofillFramework/afservice/src/main/res/values/styles.xml rename prebuilts/gradle/AutofillFramework/{Application => afservice}/src/main/res/xml/multidataset_service.xml (89%) create mode 100644 prebuilts/gradle/Camera2Basic/kotlinApp/.google/packaging.yaml create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/.google/packaging.yaml create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/build.gradle create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/AndroidManifest.xml create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/AutoFitTextureView.kt create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/Camera2VideoFragment.kt create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/CameraActivity.kt create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/CompareSizesByArea.kt create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/ConfirmationDialog.kt create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/Constants.kt create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/ErrorDialog.kt create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/drawable-hdpi/ic_action_info.png create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/drawable-hdpi/ic_launcher.png create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/drawable-hdpi/tile.9.png create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/drawable-mdpi/ic_action_info.png create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/drawable-mdpi/ic_launcher.png create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/drawable-xhdpi/ic_action_info.png create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/drawable-xhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/drawable-xxhdpi/ic_action_info.png create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/drawable-xxhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/layout-land/fragment_camera2_video.xml create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/layout/activity_camera.xml create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/layout/fragment_camera2_video.xml rename prebuilts/gradle/{RuntimePermissionsBasic => Camera2Video/kotlinApp}/Application/src/main/res/values-v21/base-template-styles.xml (88%) create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/values/base-strings.xml create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/values/colors.xml create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/values/dimens.xml create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/values/strings.xml create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/res/values/styles.xml create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/CONTRIB.md create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/README.md create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/build.gradle create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/gradle/wrapper/gradle-wrapper.jar create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/gradle/wrapper/gradle-wrapper.properties create mode 100755 prebuilts/gradle/Camera2Video/kotlinApp/gradlew create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/gradlew.bat rename prebuilts/gradle/{RecyclerView => Camera2Video/kotlinApp}/packaging.yaml (55%) create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/screenshots/1-launch.png create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/screenshots/2-record.png create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/screenshots/3-save.png create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/screenshots/icon-web.png create mode 100644 prebuilts/gradle/Camera2Video/kotlinApp/settings.gradle rename prebuilts/gradle/CardView/{ => kotlinApp/.google}/packaging.yaml (53%) create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/build.gradle create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/AndroidManifest.xml create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/java/com/example/android/cardview/CardViewActivity.kt create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/java/com/example/android/cardview/CardViewFragment.kt create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/res/drawable-hdpi/ic_launcher.png create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/res/drawable-hdpi/tile.9.png create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/res/drawable-mdpi/ic_launcher.png create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/res/drawable-xhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/res/drawable-xxhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/res/layout/activity_card_view.xml create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/res/layout/fragment_card_view.xml create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/res/values/colors.xml create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/res/values/dimens.xml create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/res/values/strings.xml create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/src/main/res/values/styles.xml create mode 100644 prebuilts/gradle/CardView/kotlinApp/Application/tests/src/com/example/android/cardview/SampleTests.kt create mode 100644 prebuilts/gradle/CardView/kotlinApp/CONTRIB.md create mode 100644 prebuilts/gradle/CardView/kotlinApp/README.md create mode 100644 prebuilts/gradle/CardView/kotlinApp/build.gradle create mode 100644 prebuilts/gradle/CardView/kotlinApp/gradle/wrapper/gradle-wrapper.jar create mode 100644 prebuilts/gradle/CardView/kotlinApp/gradle/wrapper/gradle-wrapper.properties create mode 100755 prebuilts/gradle/CardView/kotlinApp/gradlew create mode 100644 prebuilts/gradle/CardView/kotlinApp/gradlew.bat create mode 100644 prebuilts/gradle/CardView/kotlinApp/settings.gradle create mode 100644 prebuilts/gradle/FingerprintDialog/kotlinApp/.google/packaging.yaml create mode 100644 prebuilts/gradle/JobScheduler/kotlinApp/.google/packaging.yaml delete mode 100644 prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediasession/client/MediaBrowserAdapter.java create mode 100644 prebuilts/gradle/MediaBrowserService/Application/src/main/java/com/example/android/mediasession/client/MediaBrowserHelper.java create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/build.gradle create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/AndroidManifest.xml create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/MainActivity.kt create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/activities/AdjacentActivity.kt create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/activities/BasicActivity.kt create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/activities/CustomConfigurationChangeActivity.kt create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/activities/LaunchBoundsActivity.kt create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/activities/LoggingActivity.kt create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/activities/MinimumSizeActivity.kt create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/activities/UnresizableActivity.kt create mode 100755 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/logger/Log.kt create mode 100755 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/logger/LogFragment.kt create mode 100755 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/logger/LogNode.kt create mode 100755 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/logger/LogView.kt create mode 100755 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/logger/LogWrapper.kt create mode 100755 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/java/com/android/multiwindowplayground/logger/MessageOnlyLogFilter.kt create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/res/layout/activity_logging.xml create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/res/layout/activity_main.xml create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/res/layout/logging.xml create mode 100755 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100755 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100755 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100755 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100755 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/res/values-w820dp/dimens.xml create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/res/values/colors.xml create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/res/values/dimens.xml create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/res/values/strings.xml create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/Application/src/main/res/values/styles.xml create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/README.md create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/build.gradle create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/gradle/wrapper/gradle-wrapper.jar create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/gradle/wrapper/gradle-wrapper.properties create mode 100755 prebuilts/gradle/MultiWindowPlayground/kotlinApp/gradlew create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/gradlew.bat create mode 100755 prebuilts/gradle/MultiWindowPlayground/kotlinApp/screenshots/icon-web.png create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/screenshots/main.png create mode 100644 prebuilts/gradle/MultiWindowPlayground/kotlinApp/settings.gradle create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/.google/packaging.yaml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/build.gradle create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/AndroidManifest.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/java/com/example/android/navigationdrawer/MainActivity.kt create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/java/com/example/android/navigationdrawer/NavigationDrawerActivity.kt create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/java/com/example/android/navigationdrawer/PlanetAdapter.kt create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/java/com/example/android/navigationdrawer/PlanetFragment.kt create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/java/com/example/android/navigationdrawer/Sample.kt create mode 100755 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-hdpi/action_search.png create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-hdpi/drawer_shadow.9.png create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-hdpi/ic_drawer.png create mode 100755 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-hdpi/ic_launcher.png create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-hdpi/tile.9.png create mode 100755 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-mdpi/action_search.png create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-mdpi/drawer_shadow.9.png create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-mdpi/ic_drawer.png create mode 100755 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-mdpi/ic_launcher.png create mode 100755 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-xhdpi/action_search.png create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-xhdpi/drawer_shadow.9.png create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-xhdpi/ic_drawer.png create mode 100755 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-xhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable-xxhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable/earth.jpg create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable/jupiter.jpg create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable/mars.jpg create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable/mercury.jpg create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable/neptune.jpg create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable/saturn.jpg create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable/uranus.jpg create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/drawable/venus.jpg create mode 100755 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/layout/activity_main.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/layout/activity_navigation_drawer.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/layout/drawer_list_item.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/layout/fragment_planet.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/layout/sample_dashboard_item.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/menu/navigation_drawer.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/values-v20/styles.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/values-v21/base-template-styles.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/values/activitycards-colors.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/values/activitycards-dimens.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/values/activitycards-strings.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/values/colors.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/values/dimens.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/values/strings.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/values/template-dimens.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/Application/src/main/res/values/template-styles.xml create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/CONTRIB.md create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/README.md create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/build.gradle create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/gradle/wrapper/gradle-wrapper.jar create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/gradle/wrapper/gradle-wrapper.properties create mode 100755 prebuilts/gradle/NavigationDrawer/kotlinApp/gradlew create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/gradlew.bat create mode 100644 prebuilts/gradle/NavigationDrawer/kotlinApp/settings.gradle create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/.google/packaging.yaml create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/build.gradle create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/androidTest/java/com/example/android/pdfrendererbasic/PdfRendererBasicFragmentTests.kt create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/AndroidManifest.xml create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/assets/sample.pdf create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/java/com/example/android/pdfrendererbasic/MainActivity.kt create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/java/com/example/android/pdfrendererbasic/PdfRendererBasicFragment.kt create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/res/drawable-hdpi/tile.9.png create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/res/drawable/ic_info.xml create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/res/layout/activity_main_real.xml create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/res/layout/fragment_pdf_renderer_basic.xml create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/res/menu/main.xml create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/res/values/strings.xml create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/src/main/res/values/styles.xml create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/Application/tests/AndroidManifest.xml create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/CONTRIBUTING.md create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/LICENSE create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/README.md create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/build.gradle create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/gradle/wrapper/gradle-wrapper.jar create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/gradle/wrapper/gradle-wrapper.properties create mode 100755 prebuilts/gradle/PdfRendererBasic/kotlinApp/gradlew create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/gradlew.bat create mode 100755 prebuilts/gradle/PdfRendererBasic/kotlinApp/screenshots/icon-web.png create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/screenshots/main.png create mode 100644 prebuilts/gradle/PdfRendererBasic/kotlinApp/settings.gradle create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/.google/packaging.yaml create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/README.md create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/build.gradle create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/proguard-rules.pro create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/AndroidManifest.xml create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/java/com/example/android/common/activities/SampleActivityBase.kt create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/java/com/example/android/common/logger/Log.kt create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/java/com/example/android/common/logger/LogFragment.kt create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/java/com/example/android/common/logger/LogNode.kt create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/java/com/example/android/common/logger/LogView.kt create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/java/com/example/android/common/logger/LogWrapper.kt create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/java/com/example/android/common/logger/MessageOnlyLogFilter.kt create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/java/com/example/android/recyclerview/CustomAdapter.kt create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/java/com/example/android/recyclerview/MainActivity.kt create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/java/com/example/android/recyclerview/RecyclerViewFragment.kt create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/drawable-hdpi/tile.9.png create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/drawable-xxhdpi/tile.9.png create mode 100755 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/layout-w720dp/activity_main.xml create mode 100755 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/layout/activity_main.xml create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/layout/recycler_view_frag.xml create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/layout/text_row_item.xml create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/menu/main.xml create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/mipmap-xxhdpi/ic_launcher.png rename prebuilts/gradle/{RuntimePermissionsBasic/Application => RecyclerView/kotlinApp/app}/src/main/res/values-sw600dp/template-dimens.xml (100%) rename prebuilts/gradle/{RuntimePermissionsBasic/Application => RecyclerView/kotlinApp/app}/src/main/res/values-sw600dp/template-styles.xml (100%) rename prebuilts/gradle/{RuntimePermissionsBasic/Application => RecyclerView/kotlinApp/app}/src/main/res/values-v11/template-styles.xml (100%) rename prebuilts/gradle/{RuntimePermissionsBasic/Application => RecyclerView/kotlinApp/app}/src/main/res/values-v21/base-colors.xml (86%) create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/values-v21/base-template-styles.xml rename prebuilts/gradle/{RuntimePermissionsBasic/Application => RecyclerView/kotlinApp/app}/src/main/res/values/base-strings.xml (68%) create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/values/dimens.xml create mode 100755 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/values/fragmentview_strings.xml create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/app/src/main/res/values/strings.xml rename prebuilts/gradle/{RuntimePermissionsBasic/Application => RecyclerView/kotlinApp/app}/src/main/res/values/template-dimens.xml (100%) rename prebuilts/gradle/{RuntimePermissionsBasic/Application => RecyclerView/kotlinApp/app}/src/main/res/values/template-styles.xml (100%) create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/build.gradle create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/gradle.properties create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/gradle/wrapper/gradle-wrapper.jar create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/gradle/wrapper/gradle-wrapper.properties create mode 100755 prebuilts/gradle/RecyclerView/kotlinApp/gradlew create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/gradlew.bat create mode 100644 prebuilts/gradle/RecyclerView/kotlinApp/settings.gradle create mode 100644 prebuilts/gradle/RuntimePermissions/kotlinApp/.google/packaging.yaml create mode 100644 prebuilts/gradle/RuntimePermissions/kotlinApp/README.md create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/Application/src/main/res/values-sw600dp/dimens.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/Application/src/main/res/values-sw600dp/styles.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/Application/src/main/res/values-v11/styles.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/Application/src/main/res/values-v21/styles.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/Application/src/main/res/values/dimens.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/Application/src/main/res/values/styles.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/NOTICE create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/build.gradle create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/AndroidManifest.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/MainActivity.kt create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/camera/CameraPreview.kt create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/camera/CameraPreviewActivity.kt create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/util/AppCompatActivityExt.kt create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/util/CameraExt.kt create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/java/com/example/android/basicpermissions/util/ViewExt.kt create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/drawable-hdpi/tile.9.png create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/layout/activity_camera.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/layout/activity_camera_unavailable.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/layout/activity_main.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/values-sw600dp/dimens.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/values-sw600dp/styles.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/values-v11/styles.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/values-v21/styles.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/values/dimens.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/values/strings.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/Application/src/main/res/values/styles.xml create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/build.gradle create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/gradle/wrapper/gradle-wrapper.jar create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/gradle/wrapper/gradle-wrapper.properties create mode 100755 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/gradlew create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/gradlew.bat create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/screenshots/big_icon.png create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/screenshots/screenshot-1.png create mode 100644 prebuilts/gradle/RuntimePermissionsBasic/kotlinApp/settings.gradle rename prebuilts/gradle/WearAccessibilityApp/Wearable/src/main/java/com/example/android/wearable/wear/wearaccessibilityapp/{MyLauncherChildLayoutManager.java => ScalingScrollLayoutCallback.java} (76%) create mode 100644 prebuilts/gradle/WearAccessibilityApp/screenshots/controls_screen.png create mode 100644 prebuilts/gradle/WearAccessibilityApp/screenshots/main_screen.png create mode 100644 prebuilts/gradle/WearAccessibilityApp/screenshots/progress_screen.png create mode 100644 prebuilts/gradle/WearMessagingApp/.google/packaging.yaml create mode 100644 prebuilts/gradle/WearMessagingApp/CONTRIBUTING.md create mode 100644 prebuilts/gradle/WearMessagingApp/LICENSE create mode 100644 prebuilts/gradle/WearMessagingApp/NOTICE create mode 100644 prebuilts/gradle/WearMessagingApp/README.md create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/build.gradle create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/google-services.json create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/AndroidManifest.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/ic_launcher-web.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/GoogleSignedInActivity.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/SignInActivity.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/ChatActivity.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/ChatAdapter.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/MockIncomingMessageReceiver.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chat/ReplyToMessageIntentService.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chatlist/ChatListActivity.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/chatlist/ChatListAdapter.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/contacts/ContactsListActivity.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/contacts/ContactsListAdapter.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/MockDatabase.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/mock/MockObjectGenerator.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/model/Chat.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/model/Message.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/model/Profile.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/Constants.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/DividerItemDecoration.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/MenuTinter.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/PrescrollToBottom.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/SchedulerHelper.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/java/com/example/android/wearable/wear/messaging/util/SharedPreferencesHelper.java create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable-hdpi/ic_launcher.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable-mdpi/ic_launcher.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable-xhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable-xxhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/android_logo.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ben.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/circle_add.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/default_profile.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/divider.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ic_add_black_24dp.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ic_check_white_24dp.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ic_check_white_36dp.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ic_close_white_24dp.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ic_close_white_36dp.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ic_face_white_24dp.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ic_group_white_48dp.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ic_keyboard_black_24dp.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ic_mic_black_24dp.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ic_person_blue_48dp.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ic_reply_white_18dp.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/jane.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/jennifer.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/jeremy.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/lisa.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/paul.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ripple_rect_40.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/ripple_select.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/drawable/splash.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/layout/action_new_chat.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/layout/activity_chat.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/layout/activity_chat_list.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/layout/activity_contacts_list.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/layout/activity_signin.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/layout/chat_list_item.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/layout/chat_message.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/layout/contacts_list_item.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/layout/drawer_chat_action.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/layout/drawer_check_confirmation.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/layout/list_title.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/menu/chat.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/menu/contacts_list.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/mipmap-hdpi/ic_launcher.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/mipmap-mdpi/ic_launcher.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/mipmap-xhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/mipmap-xxhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/mipmap-xxxhdpi/ic_launcher.png create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/values/colors.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/values/dimens.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/values/strings.xml create mode 100644 prebuilts/gradle/WearMessagingApp/Wearable/src/main/res/values/styles.xml create mode 100644 prebuilts/gradle/WearMessagingApp/build.gradle create mode 100644 prebuilts/gradle/WearMessagingApp/gradle/wrapper/gradle-wrapper.jar create mode 100644 prebuilts/gradle/WearMessagingApp/gradle/wrapper/gradle-wrapper.properties create mode 100755 prebuilts/gradle/WearMessagingApp/gradlew create mode 100644 prebuilts/gradle/WearMessagingApp/gradlew.bat create mode 100644 prebuilts/gradle/WearMessagingApp/screenshots/chat.png create mode 100644 prebuilts/gradle/WearMessagingApp/screenshots/chat_list.png create mode 100644 prebuilts/gradle/WearMessagingApp/screenshots/contacts.png create mode 100644 prebuilts/gradle/WearMessagingApp/settings.gradle rename prebuilts/gradle/WearSpeakerSample/wear/src/main/res/drawable/{circle.xml => color_circle.xml} (100%) create mode 100644 prebuilts/gradle/WearSpeakerSample/wear/src/main/res/drawable/grey_circle.xml diff --git a/prebuilts/gradle/ActionBarCompat-Basic/Application/build.gradle b/prebuilts/gradle/ActionBarCompat-Basic/Application/build.gradle index 43f40416..f292a70d 100644 --- a/prebuilts/gradle/ActionBarCompat-Basic/Application/build.gradle +++ b/prebuilts/gradle/ActionBarCompat-Basic/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:gridlayout-v7:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:gridlayout-v7:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 7 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/ActionBarCompat-Basic/LICENSE b/prebuilts/gradle/ActionBarCompat-Basic/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/ActionBarCompat-Basic/LICENSE +++ b/prebuilts/gradle/ActionBarCompat-Basic/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/ActionBarCompat-Basic/README.md b/prebuilts/gradle/ActionBarCompat-Basic/README.md index e95b853e..6651c45d 100644 --- a/prebuilts/gradle/ActionBarCompat-Basic/README.md +++ b/prebuilts/gradle/ActionBarCompat-Basic/README.md @@ -35,8 +35,8 @@ would otherwise be created during when `[onCreateOptionsMenu()][3]` is called. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/ActionBarCompat-Basic/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/ActionBarCompat-Basic/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/ActionBarCompat-Basic/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/ActionBarCompat-Basic/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/ActionBarCompat-ListPopupMenu/Application/build.gradle b/prebuilts/gradle/ActionBarCompat-ListPopupMenu/Application/build.gradle index 43f40416..f292a70d 100644 --- a/prebuilts/gradle/ActionBarCompat-ListPopupMenu/Application/build.gradle +++ b/prebuilts/gradle/ActionBarCompat-ListPopupMenu/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:gridlayout-v7:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:gridlayout-v7:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 7 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/ActionBarCompat-ListPopupMenu/LICENSE b/prebuilts/gradle/ActionBarCompat-ListPopupMenu/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/ActionBarCompat-ListPopupMenu/LICENSE +++ b/prebuilts/gradle/ActionBarCompat-ListPopupMenu/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/ActionBarCompat-ListPopupMenu/README.md b/prebuilts/gradle/ActionBarCompat-ListPopupMenu/README.md index 5699a0e2..c4c1ae02 100644 --- a/prebuilts/gradle/ActionBarCompat-ListPopupMenu/README.md +++ b/prebuilts/gradle/ActionBarCompat-ListPopupMenu/README.md @@ -17,8 +17,8 @@ The sample uses [ListFragment][2] from the v4 support library to display the lis Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/ActionBarCompat-ListPopupMenu/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/ActionBarCompat-ListPopupMenu/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/ActionBarCompat-ListPopupMenu/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/ActionBarCompat-ListPopupMenu/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/ActionBarCompat-Styled/Application/build.gradle b/prebuilts/gradle/ActionBarCompat-Styled/Application/build.gradle index 43f40416..f292a70d 100644 --- a/prebuilts/gradle/ActionBarCompat-Styled/Application/build.gradle +++ b/prebuilts/gradle/ActionBarCompat-Styled/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:gridlayout-v7:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:gridlayout-v7:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 7 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/ActionBarCompat-Styled/LICENSE b/prebuilts/gradle/ActionBarCompat-Styled/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/ActionBarCompat-Styled/LICENSE +++ b/prebuilts/gradle/ActionBarCompat-Styled/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/ActionBarCompat-Styled/README.md b/prebuilts/gradle/ActionBarCompat-Styled/README.md index b4623ff1..4de0f1ef 100644 --- a/prebuilts/gradle/ActionBarCompat-Styled/README.md +++ b/prebuilts/gradle/ActionBarCompat-Styled/README.md @@ -23,8 +23,8 @@ Assets have been generated using the ['Android Action Bar Style Generator'][2]. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/ActionBarCompat-Styled/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/ActionBarCompat-Styled/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/ActionBarCompat-Styled/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/ActionBarCompat-Styled/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/ActiveNotifications/Application/build.gradle b/prebuilts/gradle/ActiveNotifications/Application/build.gradle index bf2889fa..a736caaf 100644 --- a/prebuilts/gradle/ActiveNotifications/Application/build.gradle +++ b/prebuilts/gradle/ActiveNotifications/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,10 +33,9 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 24 + compileSdkVersion 24 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 24 diff --git a/prebuilts/gradle/ActiveNotifications/LICENSE b/prebuilts/gradle/ActiveNotifications/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/ActiveNotifications/LICENSE +++ b/prebuilts/gradle/ActiveNotifications/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/ActiveNotifications/README.md b/prebuilts/gradle/ActiveNotifications/README.md index 4278eaef..3d5aaab9 100644 --- a/prebuilts/gradle/ActiveNotifications/README.md +++ b/prebuilts/gradle/ActiveNotifications/README.md @@ -32,7 +32,7 @@ Pre-requisites -------------- - Android SDK 24 -- Android Build Tools v26.0.1 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/ActiveNotifications/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/ActiveNotifications/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/ActiveNotifications/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/ActiveNotifications/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/ActivityInstrumentation/Application/build.gradle b/prebuilts/gradle/ActivityInstrumentation/Application/build.gradle index 43f40416..f292a70d 100644 --- a/prebuilts/gradle/ActivityInstrumentation/Application/build.gradle +++ b/prebuilts/gradle/ActivityInstrumentation/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:gridlayout-v7:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:gridlayout-v7:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 7 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/ActivityInstrumentation/LICENSE b/prebuilts/gradle/ActivityInstrumentation/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/ActivityInstrumentation/LICENSE +++ b/prebuilts/gradle/ActivityInstrumentation/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/ActivityInstrumentation/README.md b/prebuilts/gradle/ActivityInstrumentation/README.md index 9d8145dd..8082c2b6 100644 --- a/prebuilts/gradle/ActivityInstrumentation/README.md +++ b/prebuilts/gradle/ActivityInstrumentation/README.md @@ -8,8 +8,8 @@ internal state of an Activity. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Getting Started diff --git a/prebuilts/gradle/ActivityInstrumentation/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/ActivityInstrumentation/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/ActivityInstrumentation/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/ActivityInstrumentation/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/ActivitySceneTransitionBasic/Application/build.gradle b/prebuilts/gradle/ActivitySceneTransitionBasic/Application/build.gradle index 5d3e9262..ec5d2180 100644 --- a/prebuilts/gradle/ActivitySceneTransitionBasic/Application/build.gradle +++ b/prebuilts/gradle/ActivitySceneTransitionBasic/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" compile 'com.squareup.picasso:picasso:2.4.0' } @@ -35,14 +34,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 21 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/ActivitySceneTransitionBasic/LICENSE b/prebuilts/gradle/ActivitySceneTransitionBasic/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/ActivitySceneTransitionBasic/LICENSE +++ b/prebuilts/gradle/ActivitySceneTransitionBasic/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/ActivitySceneTransitionBasic/README.md b/prebuilts/gradle/ActivitySceneTransitionBasic/README.md index 1163fd2d..8a098814 100644 --- a/prebuilts/gradle/ActivitySceneTransitionBasic/README.md +++ b/prebuilts/gradle/ActivitySceneTransitionBasic/README.md @@ -19,8 +19,8 @@ See [Defining Custom Animations][1] for all the details on how to do this. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/ActivitySceneTransitionBasic/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/ActivitySceneTransitionBasic/gradle/wrapper/gradle-wrapper.properties index aa3b089c..cf959fc2 100644 --- a/prebuilts/gradle/ActivitySceneTransitionBasic/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/ActivitySceneTransitionBasic/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/AdvancedImmersiveMode/Application/build.gradle b/prebuilts/gradle/AdvancedImmersiveMode/Application/build.gradle index 1728dc8a..7a89aa14 100644 --- a/prebuilts/gradle/AdvancedImmersiveMode/Application/build.gradle +++ b/prebuilts/gradle/AdvancedImmersiveMode/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 19 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/AdvancedImmersiveMode/LICENSE b/prebuilts/gradle/AdvancedImmersiveMode/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/AdvancedImmersiveMode/LICENSE +++ b/prebuilts/gradle/AdvancedImmersiveMode/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/AdvancedImmersiveMode/README.md b/prebuilts/gradle/AdvancedImmersiveMode/README.md index 714061a1..1a2707f5 100644 --- a/prebuilts/gradle/AdvancedImmersiveMode/README.md +++ b/prebuilts/gradle/AdvancedImmersiveMode/README.md @@ -26,8 +26,8 @@ appear. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/AdvancedImmersiveMode/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/AdvancedImmersiveMode/gradle/wrapper/gradle-wrapper.properties index 2d6fb978..064a15cc 100644 --- a/prebuilts/gradle/AdvancedImmersiveMode/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/AdvancedImmersiveMode/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/AgendaData/Application/build.gradle b/prebuilts/gradle/AgendaData/Application/build.gradle index 46183d52..44ae53b2 100644 --- a/prebuilts/gradle/AgendaData/Application/build.gradle +++ b/prebuilts/gradle/AgendaData/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,19 +14,17 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" - compile 'com.android.support:design:24.0.0' - compile 'com.google.android.gms:play-services-wearable:11.4.0' - compile 'com.android.support:support-v13:26.1.0' + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" + compile 'com.android.support:design:25.4.0' + compile 'com.google.android.gms:play-services-wearable:11.8.0' + compile 'com.android.support:support-v13:27.0.2' wearApp project(':Wearable') } @@ -38,10 +37,9 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 18 diff --git a/prebuilts/gradle/AgendaData/LICENSE b/prebuilts/gradle/AgendaData/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/AgendaData/LICENSE +++ b/prebuilts/gradle/AgendaData/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/AgendaData/README.md b/prebuilts/gradle/AgendaData/README.md index e837deb6..4c2e5567 100644 --- a/prebuilts/gradle/AgendaData/README.md +++ b/prebuilts/gradle/AgendaData/README.md @@ -22,8 +22,8 @@ success or failure. The sample shows implementations for both the success as wel Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/AgendaData/Wearable/build.gradle b/prebuilts/gradle/AgendaData/Wearable/build.gradle index deb0179f..e8691582 100644 --- a/prebuilts/gradle/AgendaData/Wearable/build.gradle +++ b/prebuilts/gradle/AgendaData/Wearable/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,9 +14,7 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } @@ -24,12 +23,12 @@ dependencies { - compile 'com.google.android.gms:play-services-wearable:11.4.0' - compile 'com.android.support:support-v13:26.1.0' + compile 'com.google.android.gms:play-services-wearable:11.8.0' + compile 'com.android.support:support-v13:27.0.2' - provided 'com.google.android.wearable:wearable:2.0.5' + provided 'com.google.android.wearable:wearable:2.2.0' - compile 'com.google.android.support:wearable:2.0.5' + compile 'com.google.android.support:wearable:2.2.0' } @@ -43,9 +42,9 @@ List dirs = [ android { - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { versionCode 1 diff --git a/prebuilts/gradle/AgendaData/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/AgendaData/gradle/wrapper/gradle-wrapper.properties index 7a7c4663..f5d30b76 100644 --- a/prebuilts/gradle/AgendaData/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/AgendaData/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/AlwaysOn/LICENSE b/prebuilts/gradle/AlwaysOn/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/AlwaysOn/LICENSE +++ b/prebuilts/gradle/AlwaysOn/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/AlwaysOn/NOTICE b/prebuilts/gradle/AlwaysOn/NOTICE index 8f8105ae..22aef380 100644 --- a/prebuilts/gradle/AlwaysOn/NOTICE +++ b/prebuilts/gradle/AlwaysOn/NOTICE @@ -1,7 +1,7 @@ This sample uses the following software: -Copyright 2017 The Android Open Source Project +Copyright 2018 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/prebuilts/gradle/AlwaysOn/README.md b/prebuilts/gradle/AlwaysOn/README.md index d6c76f12..71408747 100644 --- a/prebuilts/gradle/AlwaysOn/README.md +++ b/prebuilts/gradle/AlwaysOn/README.md @@ -24,8 +24,8 @@ As always, you will still want to apply the [performance guidelines][3] outlined Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/AlwaysOn/Wearable/build.gradle b/prebuilts/gradle/AlwaysOn/Wearable/build.gradle index 7f082510..6dcee975 100644 --- a/prebuilts/gradle/AlwaysOn/Wearable/build.gradle +++ b/prebuilts/gradle/AlwaysOn/Wearable/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,24 +14,22 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile 'com.android.support:wear:26.0.0' + compile 'com.android.support:wear:27.0.2' - compile 'com.google.android.gms:play-services-wearable:11.4.0' - compile 'com.android.support:support-v13:26.1.0' + compile 'com.google.android.gms:play-services-wearable:11.8.0' + compile 'com.android.support:support-v13:27.0.2' - provided 'com.google.android.wearable:wearable:2.0.5' + provided 'com.google.android.wearable:wearable:2.2.0' - compile 'com.google.android.support:wearable:2.0.5' + compile 'com.google.android.support:wearable:2.2.0' } @@ -44,9 +43,9 @@ List dirs = [ android { - compileSdkVersion 26 + compileSdkVersion 26 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { versionCode 1 diff --git a/prebuilts/gradle/AlwaysOn/Wearable/src/main/java/com/example/android/wearable/wear/alwayson/MainActivity.java b/prebuilts/gradle/AlwaysOn/Wearable/src/main/java/com/example/android/wearable/wear/alwayson/MainActivity.java index 6afd8144..76e14f0c 100644 --- a/prebuilts/gradle/AlwaysOn/Wearable/src/main/java/com/example/android/wearable/wear/alwayson/MainActivity.java +++ b/prebuilts/gradle/AlwaysOn/Wearable/src/main/java/com/example/android/wearable/wear/alwayson/MainActivity.java @@ -15,16 +15,20 @@ */ package com.example.android.wearable.wear.alwayson; +import android.app.Activity; import android.app.AlarmManager; import android.app.PendingIntent; +import android.content.BroadcastReceiver; import android.content.Context; import android.content.Intent; +import android.content.IntentFilter; import android.graphics.Color; import android.os.Bundle; import android.os.Handler; import android.os.Message; -import android.support.wearable.activity.WearableActivity; +import android.support.wear.ambient.AmbientMode; import android.util.Log; +import android.view.View; import android.widget.TextView; import java.lang.ref.WeakReference; @@ -34,36 +38,41 @@ import java.util.Locale; import java.util.concurrent.TimeUnit; /** - * Demonstrates support for Ambient screens by extending WearableActivity and overriding - * onEnterAmbient, onUpdateAmbient, and onExitAmbient. + * Demonstrates support for Ambient Mode by attaching ambient mode support to the activity, + * and listening for ambient mode updates (onEnterAmbient, onUpdateAmbient, and onExitAmbient) via a + * named AmbientCallback subclass. * - * There are two modes (Active and Ambient). To trigger future updates (data/screen), we use a - * custom Handler for the "Active" mode and an Alarm for the "Ambient" mode. + *

Also demonstrates how to update the display more frequently than every 60 seconds, which is + * the default frequency, using an AlarmManager. The Alarm code is only necessary for the custom + * refresh frequency; it can be ignored for basic ambient mode support where you can simply rely on + * calls to onUpdateAmbient() by the system. * - * Why don't we use just one? Handlers are generally less battery intensive and can be triggered - * every second. However, they can not wake up the processor (common in Ambient mode). + *

There are two modes: ambient and active. To trigger future display updates, we + * use a custom Handler for active mode and an Alarm for ambient mode. * - * Alarms can wake up the processor (what we need for Ambient), but they struggle with quick updates - * (less than one second) and are much less efficient compared to Handlers. + *

Why not use just one or the other? Handlers are generally less battery intensive and can be + * triggered every second. However, they can not wake up the processor (common in ambient mode). * - * Therefore, we use Handlers for "Active" mode (can trigger every second and are better on the - * battery), and we use Alarms for "Ambient" mode (only need to update once every 20 seconds and + *

Alarms can wake up the processor (what we need for ambient move), but they are less efficient + * compared to Handlers when it comes to quick update frequencies. + * + *

Therefore, we use Handler for active mode (can trigger every second and are better on the + * battery), and we use an Alarm for ambient mode (only need to update once every 10 seconds and * they can wake up a sleeping processor). * - * Again, the Activity waits 20 seconds between doing any processing (getting data, updating screen - * etc.) while in ambient mode to conserving battery life (processor allowed to sleep). If you can - * hold off on updates for a full minute, you can throw away all the Alarm code and just use + *

The activity waits 10 seconds between doing any processing (getting data, updating display + * etc.) while in ambient mode to conserving battery life (processor allowed to sleep). If your app + * can wait 60 seconds for display updates, you can disregard the Alarm code and simply use * onUpdateAmbient() to save even more battery life. * - * As always, you will still want to apply the performance guidelines outlined in the Watch Faces - * documention to your app. - * - * Finally, in ambient mode, this Activity follows the same best practices outlined in the - * Watch Faces API documentation, e.g., keep most pixels black, avoid large blocks of white pixels, - * use only black and white, and disable anti-aliasing. + *

As always, you will still want to apply the performance guidelines outlined in the Watch Faces + * documentation to your app. * + *

Finally, in ambient mode, this activity follows the same best practices outlined in the Watch + * Faces API documentation: keeping most pixels black, avoiding large blocks of white pixels, using + * only black and white, disabling anti-aliasing, etc. */ -public class MainActivity extends WearableActivity { +public class MainActivity extends Activity implements AmbientMode.AmbientCallbackProvider { private static final String TAG = "MainActivity"; @@ -72,38 +81,59 @@ public class MainActivity extends WearableActivity { /** Milliseconds between updates based on state. */ private static final long ACTIVE_INTERVAL_MS = TimeUnit.SECONDS.toMillis(1); - private static final long AMBIENT_INTERVAL_MS = TimeUnit.SECONDS.toMillis(20); - /** Tracks latest ambient details, such as burnin offsets, etc. */ - private Bundle mAmbientDetails; + private static final long AMBIENT_INTERVAL_MS = TimeUnit.SECONDS.toMillis(10); + + /** Action for updating the display in ambient mode, per our custom refresh cycle. */ + private static final String AMBIENT_UPDATE_ACTION = + "com.example.android.wearable.wear.alwayson.action.AMBIENT_UPDATE"; + + /** Number of pixels to offset the content rendered in the display to prevent screen burn-in. */ + private static final int BURN_IN_OFFSET_PX = 10; + + /** + * Ambient mode controller attached to this display. Used by Activity to see if it is in + * ambient mode. + */ + private AmbientMode.AmbientController mAmbientController; + + /** If the display is low-bit in ambient mode. i.e. it requires anti-aliased fonts. */ + boolean mIsLowBitAmbient; + + /** + * If the display requires burn-in protection in ambient mode, rendered pixels need to be + * intermittently offset to avoid screen burn-in. + */ + boolean mDoBurnInProtection; + private View mContentView; private TextView mTimeTextView; private TextView mTimeStampTextView; private TextView mStateTextView; private TextView mUpdateRateTextView; private TextView mDrawCountTextView; - private final SimpleDateFormat sDateFormat = - new SimpleDateFormat("HH:mm:ss", Locale.US); + private final SimpleDateFormat sDateFormat = new SimpleDateFormat("HH:mm:ss", Locale.US); private volatile int mDrawCount = 0; - /** * Since the handler (used in active mode) can't wake up the processor when the device is in * ambient mode and undocked, we use an Alarm to cover ambient mode updates when we need them - * more frequently than every minute. Remember, if getting updates once a minute in ambient - * mode is enough, you can do away with the Alarm code and just rely on the onUpdateAmbient() + * more frequently than every minute. Remember, if getting updates once a minute in ambient mode + * is enough, you can do away with the Alarm code and just rely on the onUpdateAmbient() * callback. */ - private AlarmManager mAmbientStateAlarmManager; - private PendingIntent mAmbientStatePendingIntent; + private AlarmManager mAmbientUpdateAlarmManager; + + private PendingIntent mAmbientUpdatePendingIntent; + private BroadcastReceiver mAmbientUpdateBroadcastReceiver; /** * This custom handler is used for updates in "Active" mode. We use a separate static class to * help us avoid memory leaks. */ - private final Handler mActiveModeUpdateHandler = new UpdateHandler(this); + private final Handler mActiveModeUpdateHandler = new ActiveModeUpdateHandler(this); @Override public void onCreate(Bundle savedInstanceState) { @@ -112,127 +142,72 @@ public class MainActivity extends WearableActivity { setContentView(R.layout.activity_main); - setAmbientEnabled(); - - mAmbientStateAlarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); - Intent ambientStateIntent = new Intent(getApplicationContext(), MainActivity.class); - - mAmbientStatePendingIntent = PendingIntent.getActivity( - getApplicationContext(), - 0 /* requestCode */, - ambientStateIntent, - PendingIntent.FLAG_UPDATE_CURRENT); - - mTimeTextView = (TextView) findViewById(R.id.time); - mTimeStampTextView = (TextView) findViewById(R.id.time_stamp); - mStateTextView = (TextView) findViewById(R.id.state); - mUpdateRateTextView = (TextView) findViewById(R.id.update_rate); - mDrawCountTextView = (TextView) findViewById(R.id.draw_count); - - refreshDisplayAndSetNextUpdate(); + mAmbientController = AmbientMode.attachAmbientSupport(this); - } - - /** - * This is mostly triggered by the Alarms we set in Ambient mode and informs us we need to - * update the screen (and process any data). - */ - @Override - public void onNewIntent(Intent intent) { - Log.d(TAG, "onNewIntent(): " + intent); - super.onNewIntent(intent); + mAmbientUpdateAlarmManager = (AlarmManager) getSystemService(Context.ALARM_SERVICE); - setIntent(intent); - - refreshDisplayAndSetNextUpdate(); - } - - @Override - public void onDestroy() { - Log.d(TAG, "onDestroy()"); - - mActiveModeUpdateHandler.removeMessages(MSG_UPDATE_SCREEN); - mAmbientStateAlarmManager.cancel(mAmbientStatePendingIntent); - - super.onDestroy(); - } - - /** - * Prepares UI for Ambient view. - */ - @Override - public void onEnterAmbient(Bundle ambientDetails) { - Log.d(TAG, "onEnterAmbient()"); - super.onEnterAmbient(ambientDetails); - - /** - * In this sample, we aren't using the ambient details bundle (EXTRA_BURN_IN_PROTECTION or - * EXTRA_LOWBIT_AMBIENT), but if you need them, you can pull them from the local variable - * set here. + /* + * Create a PendingIntent which we'll give to the AlarmManager to send ambient mode updates + * on an interval which we've define. */ - mAmbientDetails = ambientDetails; - - /** Clears Handler queue (only needed for updates in active mode). */ - mActiveModeUpdateHandler.removeMessages(MSG_UPDATE_SCREEN); - - /** - * Following best practices outlined in WatchFaces API (keeping most pixels black, - * avoiding large blocks of white pixels, using only black and white, - * and disabling anti-aliasing anti-aliasing, etc.) + Intent ambientUpdateIntent = new Intent(AMBIENT_UPDATE_ACTION); + + /* + * Retrieves a PendingIntent that will perform a broadcast. You could also use getActivity() + * to retrieve a PendingIntent that will start a new activity, but be aware that actually + * triggers onNewIntent() which causes lifecycle changes (onPause() and onResume()) which + * might trigger code to be re-executed more often than you want. + * + * If you do end up using getActivity(), also make sure you have set activity launchMode to + * singleInstance in the manifest. + * + * Otherwise, it is easy for the AlarmManager launch Intent to open a new activity + * every time the Alarm is triggered rather than reusing this Activity. */ - mStateTextView.setTextColor(Color.WHITE); - mUpdateRateTextView.setTextColor(Color.WHITE); - mDrawCountTextView.setTextColor(Color.WHITE); - - mTimeTextView.getPaint().setAntiAlias(false); - mTimeStampTextView.getPaint().setAntiAlias(false); - mStateTextView.getPaint().setAntiAlias(false); - mUpdateRateTextView.getPaint().setAntiAlias(false); - mDrawCountTextView.getPaint().setAntiAlias(false); + mAmbientUpdatePendingIntent = + PendingIntent.getBroadcast( + this, 0, ambientUpdateIntent, PendingIntent.FLAG_UPDATE_CURRENT); - refreshDisplayAndSetNextUpdate(); + /* + * An anonymous broadcast receiver which will receive ambient update requests and trigger + * display refresh. + */ + mAmbientUpdateBroadcastReceiver = + new BroadcastReceiver() { + @Override + public void onReceive(Context context, Intent intent) { + refreshDisplayAndSetNextUpdate(); + } + }; + + mContentView = findViewById(R.id.content_view); + mTimeTextView = findViewById(R.id.time); + mTimeStampTextView = findViewById(R.id.time_stamp); + mStateTextView = findViewById(R.id.state); + mUpdateRateTextView = findViewById(R.id.update_rate); + mDrawCountTextView = findViewById(R.id.draw_count); } - /** - * Updates UI in Ambient view (once a minute). Because we need to update UI sooner than that - * (every ~20 seconds), we also use an Alarm. However, since the processor is awake for this - * callback, we might as well call refreshDisplayAndSetNextUpdate() to update screen and reset - * the Alarm. - * - * If you are happy with just updating the screen once a minute in Ambient Mode (which will be - * the case a majority of the time), then you can just use this method and remove all - * references/code regarding Alarms. - */ @Override - public void onUpdateAmbient() { - Log.d(TAG, "onUpdateAmbient()"); - super.onUpdateAmbient(); + public void onResume() { + Log.d(TAG, "onResume()"); + super.onResume(); + + IntentFilter filter = new IntentFilter(AMBIENT_UPDATE_ACTION); + registerReceiver(mAmbientUpdateBroadcastReceiver, filter); refreshDisplayAndSetNextUpdate(); } - /** - * Prepares UI for Active view (non-Ambient). - */ @Override - public void onExitAmbient() { - Log.d(TAG, "onExitAmbient()"); - super.onExitAmbient(); - - /** Clears out Alarms since they are only used in ambient mode. */ - mAmbientStateAlarmManager.cancel(mAmbientStatePendingIntent); + public void onPause() { + Log.d(TAG, "onPause()"); + super.onPause(); - mStateTextView.setTextColor(Color.GREEN); - mUpdateRateTextView.setTextColor(Color.GREEN); - mDrawCountTextView.setTextColor(Color.GREEN); + unregisterReceiver(mAmbientUpdateBroadcastReceiver); - mTimeTextView.getPaint().setAntiAlias(true); - mTimeStampTextView.getPaint().setAntiAlias(true); - mStateTextView.getPaint().setAntiAlias(true); - mUpdateRateTextView.getPaint().setAntiAlias(true); - mDrawCountTextView.getPaint().setAntiAlias(true); - - refreshDisplayAndSetNextUpdate(); + mActiveModeUpdateHandler.removeMessages(MSG_UPDATE_SCREEN); + mAmbientUpdateAlarmManager.cancel(mAmbientUpdatePendingIntent); } /** @@ -245,23 +220,15 @@ public class MainActivity extends WearableActivity { long timeMs = System.currentTimeMillis(); - if (isAmbient()) { - /** Calculate next trigger time (based on state). */ + if (mAmbientController.isAmbient()) { + /* Calculate next trigger time (based on state). */ long delayMs = AMBIENT_INTERVAL_MS - (timeMs % AMBIENT_INTERVAL_MS); long triggerTimeMs = timeMs + delayMs; - /** - * Note: Make sure you have set activity launchMode to singleInstance in the manifest. - * Otherwise, it is easy for the AlarmManager launch intent to open a new activity - * every time the Alarm is triggered rather than reusing this Activity. - */ - mAmbientStateAlarmManager.setExact( - AlarmManager.RTC_WAKEUP, - triggerTimeMs, - mAmbientStatePendingIntent); - + mAmbientUpdateAlarmManager.setExact( + AlarmManager.RTC_WAKEUP, triggerTimeMs, mAmbientUpdatePendingIntent); } else { - /** Calculate next trigger time (based on state). */ + /* Calculate next trigger time (based on state). */ long delayMs = ACTIVE_INTERVAL_MS - (timeMs % ACTIVE_INTERVAL_MS); mActiveModeUpdateHandler.removeMessages(MSG_UPDATE_SCREEN); @@ -269,16 +236,20 @@ public class MainActivity extends WearableActivity { } } - /** - * Updates display based on Ambient state. If you need to pull data, you should do it here. - */ + /** Updates display based on Ambient state. If you need to pull data, you should do it here. */ private void loadDataAndUpdateScreen() { mDrawCount += 1; long currentTimeMs = System.currentTimeMillis(); - Log.d(TAG, "loadDataAndUpdateScreen(): " + currentTimeMs + "(" + isAmbient() + ")"); + Log.d( + TAG, + "loadDataAndUpdateScreen(): " + + currentTimeMs + + "(" + + mAmbientController.isAmbient() + + ")"); - if (isAmbient()) { + if (mAmbientController.isAmbient()) { mTimeTextView.setText(sDateFormat.format(new Date())); mTimeStampTextView.setText(getString(R.string.timestamp_label, currentTimeMs)); @@ -290,6 +261,7 @@ public class MainActivity extends WearableActivity { mDrawCountTextView.setText(getString(R.string.draw_count_label, mDrawCount)); } else { + mTimeTextView.setText(sDateFormat.format(new Date())); mTimeStampTextView.setText(getString(R.string.timestamp_label, currentTimeMs)); @@ -301,14 +273,108 @@ public class MainActivity extends WearableActivity { } } - /** - * Handler separated into static class to avoid memory leaks. - */ - private static class UpdateHandler extends Handler { + @Override + public AmbientMode.AmbientCallback getAmbientCallback() { + return new MyAmbientCallback(); + } + + private class MyAmbientCallback extends AmbientMode.AmbientCallback { + /** Prepares the UI for ambient mode. */ + @Override + public void onEnterAmbient(Bundle ambientDetails) { + super.onEnterAmbient(ambientDetails); + + mIsLowBitAmbient = ambientDetails.getBoolean(AmbientMode.EXTRA_LOWBIT_AMBIENT, false); + mDoBurnInProtection = + ambientDetails.getBoolean(AmbientMode.EXTRA_BURN_IN_PROTECTION, false); + + /* Clears Handler queue (only needed for updates in active mode). */ + mActiveModeUpdateHandler.removeMessages(MSG_UPDATE_SCREEN); + + /* + * Following best practices outlined in WatchFaces API (keeping most pixels black, + * avoiding large blocks of white pixels, using only black and white, and disabling + * anti-aliasing, etc.) + */ + mStateTextView.setTextColor(Color.WHITE); + mUpdateRateTextView.setTextColor(Color.WHITE); + mDrawCountTextView.setTextColor(Color.WHITE); + + if (mIsLowBitAmbient) { + mTimeTextView.getPaint().setAntiAlias(false); + mTimeStampTextView.getPaint().setAntiAlias(false); + mStateTextView.getPaint().setAntiAlias(false); + mUpdateRateTextView.getPaint().setAntiAlias(false); + mDrawCountTextView.getPaint().setAntiAlias(false); + } + + refreshDisplayAndSetNextUpdate(); + } + + /** + * Updates the display in ambient mode on the standard interval. Since we're using a custom + * refresh cycle, this method does NOT update the data in the display. Rather, this method + * simply updates the positioning of the data in the screen to avoid burn-in, if the display + * requires it. + */ + @Override + public void onUpdateAmbient() { + super.onUpdateAmbient(); + + /* + * If the screen requires burn-in protection, views must be shifted around periodically + * in ambient mode. To ensure that content isn't shifted off the screen, avoid placing + * content within 10 pixels of the edge of the screen. + * + * Since we're potentially applying negative padding, we have ensured + * that the containing view is sufficiently padded (see res/layout/activity_main.xml). + * + * Activities should also avoid solid white areas to prevent pixel burn-in. Both of + * these requirements only apply in ambient mode, and only when this property is set + * to true. + */ + if (mDoBurnInProtection) { + int x = (int) (Math.random() * 2 * BURN_IN_OFFSET_PX - BURN_IN_OFFSET_PX); + int y = (int) (Math.random() * 2 * BURN_IN_OFFSET_PX - BURN_IN_OFFSET_PX); + mContentView.setPadding(x, y, 0, 0); + } + } + + /** Restores the UI to active (non-ambient) mode. */ + @Override + public void onExitAmbient() { + super.onExitAmbient(); + + /* Clears out Alarms since they are only used in ambient mode. */ + mAmbientUpdateAlarmManager.cancel(mAmbientUpdatePendingIntent); + + mStateTextView.setTextColor(Color.GREEN); + mUpdateRateTextView.setTextColor(Color.GREEN); + mDrawCountTextView.setTextColor(Color.GREEN); + + if (mIsLowBitAmbient) { + mTimeTextView.getPaint().setAntiAlias(true); + mTimeStampTextView.getPaint().setAntiAlias(true); + mStateTextView.getPaint().setAntiAlias(true); + mUpdateRateTextView.getPaint().setAntiAlias(true); + mDrawCountTextView.getPaint().setAntiAlias(true); + } + + /* Reset any random offset applied for burn-in protection. */ + if (mDoBurnInProtection) { + mContentView.setPadding(0, 0, 0, 0); + } + + refreshDisplayAndSetNextUpdate(); + } + } + + /** Handler separated into static class to avoid memory leaks. */ + private static class ActiveModeUpdateHandler extends Handler { private final WeakReference mMainActivityWeakReference; - public UpdateHandler(MainActivity reference) { - mMainActivityWeakReference = new WeakReference(reference); + ActiveModeUpdateHandler(MainActivity reference) { + mMainActivityWeakReference = new WeakReference<>(reference); } @Override @@ -324,4 +390,4 @@ public class MainActivity extends WearableActivity { } } } -} \ No newline at end of file +} diff --git a/prebuilts/gradle/AlwaysOn/Wearable/src/main/res/layout/activity_main.xml b/prebuilts/gradle/AlwaysOn/Wearable/src/main/res/layout/activity_main.xml index 90570c32..662bbe8f 100644 --- a/prebuilts/gradle/AlwaysOn/Wearable/src/main/res/layout/activity_main.xml +++ b/prebuilts/gradle/AlwaysOn/Wearable/src/main/res/layout/activity_main.xml @@ -13,25 +13,34 @@ See the License for the specific language governing permissions and limitations under the License. --> + + @@ -39,28 +48,32 @@ android:id="@+id/time_stamp" android:layout_width="match_parent" android:layout_height="wrap_content" + android:gravity="center" android:text="Hello, timestamp!"/> - + \ No newline at end of file diff --git a/prebuilts/gradle/AlwaysOn/build.gradle b/prebuilts/gradle/AlwaysOn/build.gradle index 1dac6def..b03b722f 100644 --- a/prebuilts/gradle/AlwaysOn/build.gradle +++ b/prebuilts/gradle/AlwaysOn/build.gradle @@ -9,3 +9,9 @@ + +buildscript { + repositories { + google() + } +} \ No newline at end of file diff --git a/prebuilts/gradle/AlwaysOn/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/AlwaysOn/gradle/wrapper/gradle-wrapper.properties index c2cde241..2ceef031 100644 --- a/prebuilts/gradle/AlwaysOn/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/AlwaysOn/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/AppRestrictionEnforcer/Application/build.gradle b/prebuilts/gradle/AppRestrictionEnforcer/Application/build.gradle index e5ed7ff9..3cdc07d1 100644 --- a/prebuilts/gradle/AppRestrictionEnforcer/Application/build.gradle +++ b/prebuilts/gradle/AppRestrictionEnforcer/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 21 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/AppRestrictionEnforcer/LICENSE b/prebuilts/gradle/AppRestrictionEnforcer/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/AppRestrictionEnforcer/LICENSE +++ b/prebuilts/gradle/AppRestrictionEnforcer/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/AppRestrictionEnforcer/README.md b/prebuilts/gradle/AppRestrictionEnforcer/README.md index b80dbb13..c379650c 100644 --- a/prebuilts/gradle/AppRestrictionEnforcer/README.md +++ b/prebuilts/gradle/AppRestrictionEnforcer/README.md @@ -27,8 +27,8 @@ See the [AppRestrictionSchema sample][2] for further details. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/AppRestrictionEnforcer/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/AppRestrictionEnforcer/gradle/wrapper/gradle-wrapper.properties index 22aa0ef4..7b9b6541 100644 --- a/prebuilts/gradle/AppRestrictionEnforcer/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/AppRestrictionEnforcer/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/AppRestrictionSchema/Application/build.gradle b/prebuilts/gradle/AppRestrictionSchema/Application/build.gradle index e5ed7ff9..3cdc07d1 100644 --- a/prebuilts/gradle/AppRestrictionSchema/Application/build.gradle +++ b/prebuilts/gradle/AppRestrictionSchema/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 21 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/AppRestrictionSchema/LICENSE b/prebuilts/gradle/AppRestrictionSchema/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/AppRestrictionSchema/LICENSE +++ b/prebuilts/gradle/AppRestrictionSchema/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/AppRestrictionSchema/README.md b/prebuilts/gradle/AppRestrictionSchema/README.md index f3d56ff1..b95f8680 100644 --- a/prebuilts/gradle/AppRestrictionSchema/README.md +++ b/prebuilts/gradle/AppRestrictionSchema/README.md @@ -54,8 +54,8 @@ checked by calling [RestrictionsManager.getApplicationRestrictions()][2]. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/AppRestrictionSchema/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/AppRestrictionSchema/gradle/wrapper/gradle-wrapper.properties index 819aeb4a..ade4ceeb 100644 --- a/prebuilts/gradle/AppRestrictionSchema/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/AppRestrictionSchema/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/AppRestrictions/Application/build.gradle b/prebuilts/gradle/AppRestrictions/Application/build.gradle index 43e4f90b..aa618ba7 100644 --- a/prebuilts/gradle/AppRestrictions/Application/build.gradle +++ b/prebuilts/gradle/AppRestrictions/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 18 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/AppRestrictions/LICENSE b/prebuilts/gradle/AppRestrictions/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/AppRestrictions/LICENSE +++ b/prebuilts/gradle/AppRestrictions/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/AppRestrictions/README.md b/prebuilts/gradle/AppRestrictions/README.md index c28d9a98..bd1445e0 100644 --- a/prebuilts/gradle/AppRestrictions/README.md +++ b/prebuilts/gradle/AppRestrictions/README.md @@ -27,8 +27,8 @@ profile through the [UserManager][2]. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/AppRestrictions/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/AppRestrictions/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/AppRestrictions/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/AppRestrictions/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/AppShortcuts/LICENSE b/prebuilts/gradle/AppShortcuts/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/AppShortcuts/LICENSE +++ b/prebuilts/gradle/AppShortcuts/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/AppShortcuts/NOTICE b/prebuilts/gradle/AppShortcuts/NOTICE index 8f8105ae..22aef380 100644 --- a/prebuilts/gradle/AppShortcuts/NOTICE +++ b/prebuilts/gradle/AppShortcuts/NOTICE @@ -1,7 +1,7 @@ This sample uses the following software: -Copyright 2017 The Android Open Source Project +Copyright 2018 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/prebuilts/gradle/AppShortcuts/README.md b/prebuilts/gradle/AppShortcuts/README.md index 7a6a5bcd..64c8aa33 100644 --- a/prebuilts/gradle/AppShortcuts/README.md +++ b/prebuilts/gradle/AppShortcuts/README.md @@ -39,8 +39,8 @@ For more information on creating shortcuts, see the [Shortcuts to App Actions][1 Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/AppShortcuts/build.gradle b/prebuilts/gradle/AppShortcuts/build.gradle index a8de426c..ba9e937e 100644 --- a/prebuilts/gradle/AppShortcuts/build.gradle +++ b/prebuilts/gradle/AppShortcuts/build.gradle @@ -4,7 +4,7 @@ buildscript { jcenter() } dependencies { - classpath 'com.android.tools.build:gradle:2.2.3' + classpath 'com.android.tools.build:gradle:3.0.0' } } diff --git a/prebuilts/gradle/AppShortcuts/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/AppShortcuts/gradle/wrapper/gradle-wrapper.properties index a3a3b57b..ce4e724f 100644 --- a/prebuilts/gradle/AppShortcuts/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/AppShortcuts/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/AppUsageStatistics/Application/build.gradle b/prebuilts/gradle/AppUsageStatistics/Application/build.gradle index 2903e5ec..ad18f5a3 100644 --- a/prebuilts/gradle/AppUsageStatistics/Application/build.gradle +++ b/prebuilts/gradle/AppUsageStatistics/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" compile 'com.android.support:recyclerview-v7:+' compile 'com.android.support:appcompat-v7:21.+' } @@ -36,14 +35,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 21 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/AppUsageStatistics/LICENSE b/prebuilts/gradle/AppUsageStatistics/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/AppUsageStatistics/LICENSE +++ b/prebuilts/gradle/AppUsageStatistics/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/AppUsageStatistics/README.md b/prebuilts/gradle/AppUsageStatistics/README.md index 19ef9356..25af7d1b 100644 --- a/prebuilts/gradle/AppUsageStatistics/README.md +++ b/prebuilts/gradle/AppUsageStatistics/README.md @@ -49,8 +49,8 @@ and the end of the range of the stats to include in the results. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/AppUsageStatistics/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/AppUsageStatistics/gradle/wrapper/gradle-wrapper.properties index 4a39e6d5..bc826164 100644 --- a/prebuilts/gradle/AppUsageStatistics/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/AppUsageStatistics/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/AsymmetricFingerprintDialog/Application/build.gradle b/prebuilts/gradle/AsymmetricFingerprintDialog/Application/build.gradle index 8e2e1d58..98a84543 100644 --- a/prebuilts/gradle/AsymmetricFingerprintDialog/Application/build.gradle +++ b/prebuilts/gradle/AsymmetricFingerprintDialog/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" compile 'com.squareup.dagger:dagger:1.2.2' compile 'com.squareup.dagger:dagger-compiler:1.2.2' compile 'junit:junit:4.12' @@ -38,14 +37,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 23 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/AsymmetricFingerprintDialog/LICENSE b/prebuilts/gradle/AsymmetricFingerprintDialog/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/AsymmetricFingerprintDialog/LICENSE +++ b/prebuilts/gradle/AsymmetricFingerprintDialog/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/AsymmetricFingerprintDialog/README.md b/prebuilts/gradle/AsymmetricFingerprintDialog/README.md index 77c53cdc..5d297e4d 100644 --- a/prebuilts/gradle/AsymmetricFingerprintDialog/README.md +++ b/prebuilts/gradle/AsymmetricFingerprintDialog/README.md @@ -38,8 +38,8 @@ client, by verifying the piece of data signed by the Signature. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/AsymmetricFingerprintDialog/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/AsymmetricFingerprintDialog/gradle/wrapper/gradle-wrapper.properties index 74d071fa..8806b786 100644 --- a/prebuilts/gradle/AsymmetricFingerprintDialog/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/AsymmetricFingerprintDialog/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/AutoBackupForApps/Application/build.gradle b/prebuilts/gradle/AutoBackupForApps/Application/build.gradle index 2ad233b8..f75d8881 100644 --- a/prebuilts/gradle/AutoBackupForApps/Application/build.gradle +++ b/prebuilts/gradle/AutoBackupForApps/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 23 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/AutoBackupForApps/LICENSE b/prebuilts/gradle/AutoBackupForApps/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/AutoBackupForApps/LICENSE +++ b/prebuilts/gradle/AutoBackupForApps/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/AutoBackupForApps/README.md b/prebuilts/gradle/AutoBackupForApps/README.md index 6203aa78..f2fc408b 100644 --- a/prebuilts/gradle/AutoBackupForApps/README.md +++ b/prebuilts/gradle/AutoBackupForApps/README.md @@ -26,8 +26,8 @@ server. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/AutoBackupForApps/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/AutoBackupForApps/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/AutoBackupForApps/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/AutoBackupForApps/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/AutofillFramework/Application/build.gradle b/prebuilts/gradle/AutofillFramework/Application/build.gradle index 1dc66ebb..04778235 100644 --- a/prebuilts/gradle/AutofillFramework/Application/build.gradle +++ b/prebuilts/gradle/AutofillFramework/Application/build.gradle @@ -1,16 +1,5 @@ apply plugin: 'com.android.application' -dependencies { - compile "com.android.support:support-v4:26.0.1" - compile "com.android.support:support-v13:26.0.1" - compile "com.android.support:cardview-v7:26.0.1" - compile "com.android.support:appcompat-v7:26.0.1" - compile 'com.android.support:design:26.0.1' - compile 'com.android.support.constraint:constraint-layout:1.0.2' - compile group: 'com.google.code.gson', name: 'gson', version: '2.8.1' - compile group: 'com.google.guava', name: 'guava', version: '22.0-android' -} - // The sample build uses multiple directories to // keep boilerplate and common code separate from // the main sample code. @@ -19,14 +8,11 @@ List dirs = [ android { compileSdkVersion 26 - buildToolsVersion "26.0.1" + buildToolsVersion '26.0.2' defaultConfig { minSdkVersion 26 targetSdkVersion 26 - jackOptions { - enabled true - } } compileOptions { @@ -44,4 +30,19 @@ android { androidTest.setRoot('tests') androidTest.java.srcDirs = ['tests/src'] } + + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} + +dependencies { + implementation "com.android.support:support-v4:26.1.0" + implementation "com.android.support:support-v13:26.1.0" + implementation "com.android.support:cardview-v7:26.1.0" + implementation "com.android.support:appcompat-v7:26.1.0" + implementation 'com.android.support:design:26.1.0' + implementation 'com.android.support.constraint:constraint-layout:1.0.2' + implementation group: 'com.google.guava', name: 'guava', version: '22.0-android' } diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/AndroidManifest.xml b/prebuilts/gradle/AutofillFramework/Application/src/main/AndroidManifest.xml index 0af57162..4f4a3568 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/AndroidManifest.xml +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/AndroidManifest.xml @@ -14,7 +14,7 @@ limitations under the License. --> @@ -27,7 +27,7 @@ android:supportsRtl="true" android:theme="@style/Theme.AppCompat.Light"> @@ -36,75 +36,40 @@ - + - - - - - - - - - - - - - - - - - - - diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/CommonUtil.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CommonUtil.java similarity index 99% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/CommonUtil.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CommonUtil.java index b7de476d..d68a3712 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/CommonUtil.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CommonUtil.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework; +package com.example.android.autofill.app; import android.app.assist.AssistStructure; import android.app.assist.AssistStructure.ViewNode; diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardActivity.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardActivity.java similarity index 96% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardActivity.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardActivity.java index 83e8614a..8322eb55 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardActivity.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.Intent; @@ -24,7 +24,6 @@ import android.view.View; import android.view.autofill.AutofillManager; import android.widget.EditText; -import com.example.android.autofillframework.R; public class CreditCardActivity extends AppCompatActivity { diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardAntiPatternActivity.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardAntiPatternActivity.java similarity index 96% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardAntiPatternActivity.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardAntiPatternActivity.java index a7c14290..a1cb5999 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardAntiPatternActivity.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardAntiPatternActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.Intent; @@ -24,8 +24,6 @@ import android.view.View; import android.view.autofill.AutofillManager; import android.widget.EditText; -import com.example.android.autofillframework.R; - public class CreditCardAntiPatternActivity extends AppCompatActivity { private EditText mCcExpDateView; diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardCompoundViewActivity.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardCompoundViewActivity.java similarity index 96% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardCompoundViewActivity.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardCompoundViewActivity.java index 05f57d03..7a936b91 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardCompoundViewActivity.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardCompoundViewActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.Intent; @@ -24,8 +24,6 @@ import android.view.View; import android.view.autofill.AutofillManager; import android.widget.EditText; -import com.example.android.autofillframework.R; - public class CreditCardCompoundViewActivity extends AppCompatActivity { private CreditCardExpirationDateCompoundView mCcExpDateView; diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardDatePickerActivity.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardDatePickerActivity.java similarity index 94% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardDatePickerActivity.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardDatePickerActivity.java index 940f5e48..6b575f8a 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardDatePickerActivity.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardDatePickerActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.Intent; @@ -25,9 +25,7 @@ import android.view.View; import android.view.autofill.AutofillManager; import android.widget.EditText; -import com.example.android.autofillframework.R; - -import static com.example.android.autofillframework.CommonUtil.TAG; +import static com.example.android.autofill.app.CommonUtil.TAG; public class CreditCardDatePickerActivity extends AppCompatActivity { diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardExpirationDateCompoundView.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardExpirationDateCompoundView.java similarity index 96% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardExpirationDateCompoundView.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardExpirationDateCompoundView.java index afa105e0..151815ca 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardExpirationDateCompoundView.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardExpirationDateCompoundView.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.support.annotation.NonNull; @@ -29,11 +29,9 @@ import android.widget.ArrayAdapter; import android.widget.FrameLayout; import android.widget.Spinner; -import com.example.android.autofillframework.R; - import java.util.Calendar; -import static com.example.android.autofillframework.CommonUtil.TAG; +import static com.example.android.autofill.app.CommonUtil.TAG; /** * A custom view that represents a {@link View#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE} using diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardExpirationDatePickerView.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardExpirationDatePickerView.java similarity index 95% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardExpirationDatePickerView.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardExpirationDatePickerView.java index e8385fbc..f9df96f7 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardExpirationDatePickerView.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardExpirationDatePickerView.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.app.DatePickerDialog; import android.app.Dialog; @@ -30,15 +30,12 @@ import android.util.Log; import android.view.View; import android.view.autofill.AutofillValue; import android.widget.DatePicker; -import android.widget.EditText; - -import com.example.android.autofillframework.R; import java.util.Calendar; import java.util.Date; -import static com.example.android.autofillframework.CommonUtil.DEBUG; -import static com.example.android.autofillframework.CommonUtil.TAG; +import static com.example.android.autofill.app.CommonUtil.DEBUG; +import static com.example.android.autofill.app.CommonUtil.TAG; /** * A custom view that represents a {@link View#AUTOFILL_HINT_CREDIT_CARD_EXPIRATION_DATE} using diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardSpinnersActivity.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardSpinnersActivity.java similarity index 98% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardSpinnersActivity.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardSpinnersActivity.java index af1bed5b..1fff8b19 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CreditCardSpinnersActivity.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CreditCardSpinnersActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.Intent; @@ -25,8 +25,6 @@ import android.widget.ArrayAdapter; import android.widget.EditText; import android.widget.Spinner; -import com.example.android.autofillframework.R; - import java.util.Calendar; public class CreditCardSpinnersActivity extends AppCompatActivity { diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CustomVirtualView.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CustomVirtualView.java similarity index 96% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CustomVirtualView.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CustomVirtualView.java index f6fb3a52..24cbd7ed 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/CustomVirtualView.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/CustomVirtualView.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.res.TypedArray; @@ -38,8 +38,6 @@ import android.widget.EditText; import android.widget.TextView; import android.widget.Toast; -import com.example.android.autofillframework.CommonUtil; -import com.example.android.autofillframework.R; import com.google.common.base.Preconditions; import java.text.DateFormat; @@ -47,7 +45,7 @@ import java.util.ArrayList; import java.util.Arrays; import java.util.Date; -import static com.example.android.autofillframework.CommonUtil.bundleToString; +import static com.example.android.autofill.app.CommonUtil.bundleToString; /** * A custom View with a virtual structure for fields supporting {@link View#getAutofillHints()} @@ -56,6 +54,16 @@ public class CustomVirtualView extends View { protected static final boolean DEBUG = true; protected static final boolean VERBOSE = false; + + /** + * When set, it notifies AutofillManager of focus change as the view scrolls, so the + * autofill UI is continually drawn. + * + *

This is janky and incompatible with the way the autofill UI works on native views, but + * it's a cool experiment! + */ + private static final boolean DRAW_AUTOFILL_UI_AFTER_SCROLL = false; + private static final String TAG = "CustomView"; private static final int DEFAULT_TEXT_HEIGHT_DP = 34; private static final int VERTICAL_GAP = 10; @@ -240,6 +248,10 @@ public class CustomVirtualView extends View { if (VERBOSE) Log.v(TAG, "setBounds(" + x + ", " + y + "): " + line.mBounds); canvas.drawText(writeText, x, y, mTextPaint); y += mLineLength; + + if (DRAW_AUTOFILL_UI_AFTER_SCROLL) { + line.notifyFocusChanged(); + } } } @@ -440,7 +452,11 @@ public class CustomVirtualView extends View { private void changeFocus(boolean focused) { mFieldTextItem.focused = focused; - if (focused) { + notifyFocusChanged(); + } + + void notifyFocusChanged() { + if (mFieldTextItem.focused) { Rect absBounds = getAbsCoordinates(); if (DEBUG) { Log.d(TAG, "focus gained on " + mFieldTextItem.id + "; absBounds=" + absBounds); diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/EmailComposeActivity.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/EmailComposeActivity.java similarity index 93% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/EmailComposeActivity.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/EmailComposeActivity.java index 957d7aad..bf4995fd 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/EmailComposeActivity.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/EmailComposeActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.Intent; @@ -22,8 +22,6 @@ import android.support.annotation.Nullable; import android.support.v7.app.AppCompatActivity; import android.view.View; -import com.example.android.autofillframework.R; - public class EmailComposeActivity extends AppCompatActivity { public static Intent getStartActivityIntent(Context context) { diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/InfoButton.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/InfoButton.java similarity index 94% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/InfoButton.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/InfoButton.java index d5811e11..cf88d6fb 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/InfoButton.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/InfoButton.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.res.TypedArray; @@ -22,8 +22,6 @@ import android.support.v7.widget.AppCompatImageButton; import android.util.AttributeSet; import android.view.View; -import com.example.android.autofillframework.R; - public class InfoButton extends AppCompatImageButton { public InfoButton(Context context) { this(context, null); diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/MainActivity.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/MainActivity.java similarity index 97% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/MainActivity.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/MainActivity.java index 0e139f9f..94d339d4 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/MainActivity.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/MainActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Intent; import android.os.Bundle; @@ -22,8 +22,6 @@ import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; -import com.example.android.autofillframework.R; - /** * This is used to launch sample activities that showcase autofill. */ @@ -127,7 +125,7 @@ public class MainActivity extends AppCompatActivity { Log.i(TAG, "trampolining into " + target + " instead"); try { Intent newIntent = new Intent(this, - Class.forName("com.example.android.autofillframework." + target)); + Class.forName("com.example.android.autofill.app." + target)); newIntent.putExtras(intent); newIntent.removeExtra("target"); getApplicationContext().startActivity(newIntent); diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/MultiplePartitionsActivity.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/MultiplePartitionsActivity.java similarity index 97% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/MultiplePartitionsActivity.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/MultiplePartitionsActivity.java index 319ed192..83dd3204 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/MultiplePartitionsActivity.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/MultiplePartitionsActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.Intent; @@ -23,9 +23,6 @@ import android.view.View; import android.view.autofill.AutofillManager; import android.widget.Toast; -import com.example.android.autofillframework.CommonUtil; -import com.example.android.autofillframework.R; - /** * Activity used to demonstrated safe partitioning of data. *

diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/NavigationItem.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/NavigationItem.java similarity index 96% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/NavigationItem.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/NavigationItem.java index baeef683..b6196446 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/NavigationItem.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/NavigationItem.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.res.TypedArray; @@ -30,8 +30,6 @@ import android.view.View; import android.widget.FrameLayout; import android.widget.TextView; -import com.example.android.autofillframework.R; - public class NavigationItem extends FrameLayout { CardView mCardView; diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/ScrollableCustomVirtualView.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/ScrollableCustomVirtualView.java similarity index 98% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/ScrollableCustomVirtualView.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/ScrollableCustomVirtualView.java index 0ce5036d..a2b081a9 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/ScrollableCustomVirtualView.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/ScrollableCustomVirtualView.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.support.annotation.Nullable; diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/StandardAutoCompleteSignInActivity.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/StandardAutoCompleteSignInActivity.java similarity index 94% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/StandardAutoCompleteSignInActivity.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/StandardAutoCompleteSignInActivity.java index 5fbdd346..49acd377 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/StandardAutoCompleteSignInActivity.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/StandardAutoCompleteSignInActivity.java @@ -13,11 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.Intent; import android.os.Bundle; +import android.support.annotation.NonNull; import android.support.v7.app.AppCompatActivity; import android.util.Log; import android.view.View; @@ -27,9 +28,7 @@ import android.widget.AutoCompleteTextView; import android.widget.TextView; import android.widget.Toast; -import com.example.android.autofillframework.R; - -import static com.example.android.autofillframework.CommonUtil.TAG; +import static com.example.android.autofill.app.CommonUtil.TAG; public class StandardAutoCompleteSignInActivity extends AppCompatActivity { private AutoCompleteTextView mUsernameAutoCompleteField; @@ -118,8 +117,7 @@ public class StandardAutoCompleteSignInActivity extends AppCompatActivity { private class MyAutofillCallback extends AutofillManager.AutofillCallback { @Override - public void onAutofillEvent(View view, int event) { - super.onAutofillEvent(view, event); + public void onAutofillEvent(@NonNull View view, int event) { if (view instanceof AutoCompleteTextView) { switch (event) { case AutofillManager.AutofillCallback.EVENT_INPUT_UNAVAILABLE: diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/StandardSignInActivity.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/StandardSignInActivity.java similarity index 96% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/StandardSignInActivity.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/StandardSignInActivity.java index 9038e3da..6664a188 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/StandardSignInActivity.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/StandardSignInActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.Intent; @@ -23,8 +23,6 @@ import android.view.View; import android.widget.EditText; import android.widget.Toast; -import com.example.android.autofillframework.R; - public class StandardSignInActivity extends AppCompatActivity { private EditText mUsernameEditText; diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/VirtualSignInActivity.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/VirtualSignInActivity.java similarity index 97% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/VirtualSignInActivity.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/VirtualSignInActivity.java index 30e25397..f157faf8 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/VirtualSignInActivity.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/VirtualSignInActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.Intent; @@ -23,8 +23,6 @@ import android.view.View; import android.view.autofill.AutofillManager; import android.widget.Toast; -import com.example.android.autofillframework.R; - /** * Activity that uses a virtual views for Username/Password text fields. */ diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/WebViewSignInActivity.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/WebViewSignInActivity.java similarity index 88% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/WebViewSignInActivity.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/WebViewSignInActivity.java index 5eb0b50f..d7c01240 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/WebViewSignInActivity.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/WebViewSignInActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.Intent; @@ -24,10 +24,8 @@ import android.webkit.WebSettings; import android.webkit.WebView; import android.webkit.WebViewClient; -import com.example.android.autofillframework.R; - -import static com.example.android.autofillframework.CommonUtil.DEBUG; -import static com.example.android.autofillframework.CommonUtil.TAG; +import static com.example.android.autofill.app.CommonUtil.DEBUG; +import static com.example.android.autofill.app.CommonUtil.TAG; public class WebViewSignInActivity extends AppCompatActivity { diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/WelcomeActivity.java b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/WelcomeActivity.java similarity index 94% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/WelcomeActivity.java rename to prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/WelcomeActivity.java index 13eb939b..5f7b117d 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/app/WelcomeActivity.java +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofill/app/WelcomeActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.app; +package com.example.android.autofill.app; import android.content.Context; import android.content.Intent; @@ -22,8 +22,6 @@ import android.os.CountDownTimer; import android.support.v7.app.AppCompatActivity; import android.widget.TextView; -import com.example.android.autofillframework.R; - import static java.lang.Math.toIntExact; public class WelcomeActivity extends AppCompatActivity { diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/res/layout/activity_main.xml b/prebuilts/gradle/AutofillFramework/Application/src/main/res/layout/activity_main.xml index 687308ea..a1ccd0c6 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/res/layout/activity_main.xml +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/res/layout/activity_main.xml @@ -28,7 +28,7 @@ android:paddingStart="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin"> - - - - - - - - - - - - - - - - - - - - - - - - - - Autofill Sample - Autofill Settings Sample Login Using a Custom Virtual View Sample Credit Card Check Out Using EditTexts Sample Credit Card Check Out Using Spinners @@ -35,7 +34,6 @@ Sign in using standard views Sign in using standard views that trigger AutoComplete dialogs when focused - Tap to sign in. CC Number CC Expiration CC Exp Date @@ -44,42 +42,16 @@ CC Exp Year CC Security Code CSC - Cancel - Save - Authenticate responses - Authenticate Datasets - Add fake Autofill data - Add Autofill Datasets - Select number of Datasets. - - Added %d Dataset. - Added %d Datasets. - - Clear all autofill data (including credentials) - Are you sure you want to delete all autofill - data from the sample service? - - Confirmation OK / Cancel - Authentication - Data - Update credentials - Enter current password - Enter new password - Change credentials - Number of Datasets Clear Login To Body - Autofill Master Login Submit Credit Card Expiration Month Credit Card Expiration Year - Invalid package signature - Could not associate web domain %1$s with app %2$s This is a sample login page that uses standard EditTexts from the UI toolkit. EditTexts are already optimized for autofill so extra autofill-specific code is almost never needed. @@ -159,6 +131,12 @@ Automatically return to main page in %d second. Automatically return to main page in %d seconds. + + + user-1 + user-2 + + 1 2 @@ -204,9 +182,4 @@ 27 - - user-1 - user-2 - - diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/res/values/styles.xml b/prebuilts/gradle/AutofillFramework/Application/src/main/res/values/styles.xml index c44f9991..39e5ba88 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/res/values/styles.xml +++ b/prebuilts/gradle/AutofillFramework/Application/src/main/res/values/styles.xml @@ -15,33 +15,6 @@ --> - - - - - - - - diff --git a/prebuilts/gradle/AutofillFramework/LICENSE b/prebuilts/gradle/AutofillFramework/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/AutofillFramework/LICENSE +++ b/prebuilts/gradle/AutofillFramework/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/AutofillFramework/NOTICE b/prebuilts/gradle/AutofillFramework/NOTICE index 8f8105ae..22aef380 100644 --- a/prebuilts/gradle/AutofillFramework/NOTICE +++ b/prebuilts/gradle/AutofillFramework/NOTICE @@ -1,7 +1,7 @@ This sample uses the following software: -Copyright 2017 The Android Open Source Project +Copyright 2018 The Android Open Source Project Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. diff --git a/prebuilts/gradle/AutofillFramework/README.md b/prebuilts/gradle/AutofillFramework/README.md index 0b198275..fe05df5e 100644 --- a/prebuilts/gradle/AutofillFramework/README.md +++ b/prebuilts/gradle/AutofillFramework/README.md @@ -131,7 +131,7 @@ Pre-requisites -------------- - Android SDK 26 -- Android Build Tools v26.0.1 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/AutofillFramework/afservice/build.gradle b/prebuilts/gradle/AutofillFramework/afservice/build.gradle new file mode 100644 index 00000000..f98116c1 --- /dev/null +++ b/prebuilts/gradle/AutofillFramework/afservice/build.gradle @@ -0,0 +1,35 @@ +apply plugin: 'com.android.application' + +android { + compileSdkVersion 26 + + defaultConfig { + minSdkVersion 26 + targetSdkVersion 26 + versionCode 1 + versionName "1.0" + + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" + + } + + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } + compileOptions { + sourceCompatibility JavaVersion.VERSION_1_8 + targetCompatibility JavaVersion.VERSION_1_8 + } +} + +dependencies { + implementation 'com.android.support:appcompat-v7:26.1.0' + implementation fileTree(dir: 'libs', include: ['*.jar']) + implementation 'com.android.support:design:26.1.0' + implementation 'com.android.support.constraint:constraint-layout:1.0.2' + implementation group: 'com.google.code.gson', name: 'gson', version: '2.8.1' + implementation group: 'com.google.guava', name: 'guava', version: '22.0-android' +} diff --git a/prebuilts/gradle/AutofillFramework/afservice/proguard-rules.pro b/prebuilts/gradle/AutofillFramework/afservice/proguard-rules.pro new file mode 100644 index 00000000..f1b42451 --- /dev/null +++ b/prebuilts/gradle/AutofillFramework/afservice/proguard-rules.pro @@ -0,0 +1,21 @@ +# Add project specific ProGuard rules here. +# You can control the set of applied configuration files using the +# proguardFiles setting in build.gradle. +# +# For more details, see +# http://developer.android.com/guide/developing/tools/proguard.html + +# If your project uses WebView with JS, uncomment the following +# and specify the fully qualified class name to the JavaScript interface +# class: +#-keepclassmembers class fqcn.of.javascript.interface.for.webview { +# public *; +#} + +# Uncomment this to preserve the line number information for +# debugging stack traces. +#-keepattributes SourceFile,LineNumberTable + +# If you keep the line number information, uncomment this to +# hide the original source file name. +#-renamesourcefileattribute SourceFile diff --git a/prebuilts/gradle/AutofillFramework/afservice/src/main/AndroidManifest.xml b/prebuilts/gradle/AutofillFramework/afservice/src/main/AndroidManifest.xml new file mode 100644 index 00000000..f03a4548 --- /dev/null +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/AndroidManifest.xml @@ -0,0 +1,41 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AuthActivity.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AuthActivity.java similarity index 89% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AuthActivity.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AuthActivity.java index 631cc0a9..e995160d 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AuthActivity.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AuthActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice; +package com.example.android.autofill.service; import android.app.PendingIntent; import android.app.assist.AssistStructure; @@ -32,18 +32,17 @@ import android.view.View.OnClickListener; import android.widget.EditText; import android.widget.Toast; -import com.example.android.autofillframework.R; -import com.example.android.autofillframework.multidatasetservice.datasource.SharedPrefsAutofillRepository; -import com.example.android.autofillframework.multidatasetservice.model.FilledAutofillFieldCollection; -import com.example.android.autofillframework.multidatasetservice.settings.MyPreferences; +import com.example.android.autofill.service.datasource.SharedPrefsAutofillRepository; +import com.example.android.autofill.service.model.FilledAutofillFieldCollection; +import com.example.android.autofill.service.settings.MyPreferences; import java.util.HashMap; import static android.view.autofill.AutofillManager.EXTRA_ASSIST_STRUCTURE; import static android.view.autofill.AutofillManager.EXTRA_AUTHENTICATION_RESULT; -import static com.example.android.autofillframework.CommonUtil.EXTRA_DATASET_NAME; -import static com.example.android.autofillframework.CommonUtil.EXTRA_FOR_RESPONSE; -import static com.example.android.autofillframework.CommonUtil.TAG; +import static com.example.android.autofill.service.CommonUtil.EXTRA_DATASET_NAME; +import static com.example.android.autofill.service.CommonUtil.EXTRA_FOR_RESPONSE; +import static com.example.android.autofill.service.CommonUtil.TAG; /** * This Activity controls the UI for logging in to the Autofill service. diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillFieldMetadata.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillFieldMetadata.java similarity index 85% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillFieldMetadata.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillFieldMetadata.java index 1e8427db..ab15e3f1 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillFieldMetadata.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillFieldMetadata.java @@ -13,14 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice; +package com.example.android.autofill.service; import android.app.assist.AssistStructure.ViewNode; import android.view.autofill.AutofillId; -import static com.example.android.autofillframework.multidatasetservice.AutofillHints.convertToStoredHintNames; -import static com.example.android.autofillframework.multidatasetservice.AutofillHints.filterForSupportedHints; - /** * A stripped down version of a {@link ViewNode} that contains only autofill-relevant metadata. It * also contains a {@code mSaveType} flag that is calculated based on the {@link ViewNode}]'s @@ -39,9 +36,9 @@ public class AutofillFieldMetadata { mAutofillType = view.getAutofillType(); mAutofillOptions = view.getAutofillOptions(); mFocused = view.isFocused(); - String[] hints = filterForSupportedHints(view.getAutofillHints()); + String[] hints = AutofillHints.filterForSupportedHints(view.getAutofillHints()); if (hints != null) { - convertToStoredHintNames(hints); + AutofillHints.convertToStoredHintNames(hints); setHints(hints); } } diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillFieldMetadataCollection.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillFieldMetadataCollection.java similarity index 97% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillFieldMetadataCollection.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillFieldMetadataCollection.java index 59b8fcd5..d343ff2f 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillFieldMetadataCollection.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillFieldMetadataCollection.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice; +package com.example.android.autofill.service; import android.view.autofill.AutofillId; diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillHelper.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillHelper.java similarity index 94% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillHelper.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillHelper.java index 4c0f173e..41617246 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillHelper.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillHelper.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice; +package com.example.android.autofill.service; import android.content.Context; import android.content.IntentSender; @@ -25,13 +25,12 @@ import android.util.Log; import android.view.autofill.AutofillId; import android.widget.RemoteViews; -import com.example.android.autofillframework.R; -import com.example.android.autofillframework.multidatasetservice.model.FilledAutofillFieldCollection; +import com.example.android.autofill.service.model.FilledAutofillFieldCollection; import java.util.HashMap; import java.util.Set; -import static com.example.android.autofillframework.CommonUtil.TAG; +import static com.example.android.autofill.service.CommonUtil.TAG; /** * This is a class containing helper methods for building Autofill Datasets and Responses. diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillHintProperties.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillHintProperties.java similarity index 94% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillHintProperties.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillHintProperties.java index 5a793774..1be307c4 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillHintProperties.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillHintProperties.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice; +package com.example.android.autofill.service; -import com.example.android.autofillframework.multidatasetservice.model.FilledAutofillField; +import com.example.android.autofill.service.model.FilledAutofillField; import java.util.Arrays; import java.util.HashSet; diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillHints.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillHints.java similarity index 99% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillHints.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillHints.java index af42b108..7c003993 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/AutofillHints.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/AutofillHints.java @@ -13,19 +13,19 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice; +package com.example.android.autofill.service; import android.service.autofill.SaveInfo; import android.util.Log; import android.view.View; -import com.example.android.autofillframework.multidatasetservice.model.FilledAutofillField; -import com.example.android.autofillframework.multidatasetservice.model.FilledAutofillFieldCollection; +import com.example.android.autofill.service.model.FilledAutofillField; +import com.example.android.autofill.service.model.FilledAutofillFieldCollection; import com.google.common.collect.ImmutableMap; import java.util.Calendar; -import static com.example.android.autofillframework.CommonUtil.TAG; +import static com.example.android.autofill.service.CommonUtil.TAG; public final class AutofillHints { public static final int PARTITION_OTHER = 0; @@ -761,7 +761,7 @@ public final class AutofillHints { if (AutofillHints.isValidHint(hint)) { filteredHints[i++] = hint; } else { - Log.d(TAG, "Invalid autofill hint: " + hint); + Log.w(TAG, "Invalid autofill hint: " + hint); } } if (i == 0) { diff --git a/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/CommonUtil.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/CommonUtil.java new file mode 100644 index 00000000..f3f169ff --- /dev/null +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/CommonUtil.java @@ -0,0 +1,154 @@ +/* + * Copyright (C) 2017 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.example.android.autofill.service; + +import android.app.assist.AssistStructure; +import android.app.assist.AssistStructure.ViewNode; +import android.app.assist.AssistStructure.WindowNode; +import android.os.Bundle; +import android.util.Log; +import android.view.View; +import android.view.ViewStructure.HtmlInfo; +import android.view.autofill.AutofillValue; + +import java.util.Arrays; +import java.util.Set; + +public final class CommonUtil { + + public static final String TAG = "AutofillSample"; + public static final boolean DEBUG = true; + public static final boolean VERBOSE = false; + public static final String EXTRA_DATASET_NAME = "dataset_name"; + public static final String EXTRA_FOR_RESPONSE = "for_response"; + + private static void bundleToString(StringBuilder builder, Bundle data) { + final Set keySet = data.keySet(); + builder.append("[Bundle with ").append(keySet.size()).append(" keys:"); + for (String key : keySet) { + builder.append(' ').append(key).append('='); + Object value = data.get(key); + if ((value instanceof Bundle)) { + bundleToString(builder, (Bundle) value); + } else { + builder.append((value instanceof Object[]) + ? Arrays.toString((Object[]) value) : value); + } + } + builder.append(']'); + } + + public static String bundleToString(Bundle data) { + if (data == null) { + return "N/A"; + } + final StringBuilder builder = new StringBuilder(); + bundleToString(builder, data); + return builder.toString(); + } + + public static String getTypeAsString(int type) { + switch (type) { + case View.AUTOFILL_TYPE_TEXT: + return "TYPE_TEXT"; + case View.AUTOFILL_TYPE_LIST: + return "TYPE_LIST"; + case View.AUTOFILL_TYPE_NONE: + return "TYPE_NONE"; + case View.AUTOFILL_TYPE_TOGGLE: + return "TYPE_TOGGLE"; + case View.AUTOFILL_TYPE_DATE: + return "TYPE_DATE"; + } + return "UNKNOWN_TYPE"; + } + + private static String getAutofillValueAndTypeAsString(AutofillValue value) { + if (value == null) return "null"; + + StringBuilder builder = new StringBuilder(value.toString()).append('('); + if (value.isText()) { + builder.append("isText"); + } else if (value.isDate()) { + builder.append("isDate"); + } else if (value.isToggle()) { + builder.append("isToggle"); + } else if (value.isList()) { + builder.append("isList"); + } + return builder.append(')').toString(); + } + + public static void dumpStructure(AssistStructure structure) { + int nodeCount = structure.getWindowNodeCount(); + Log.v(TAG, "dumpStructure(): component=" + structure.getActivityComponent() + + " numberNodes=" + nodeCount); + for (int i = 0; i < nodeCount; i++) { + Log.v(TAG, "node #" + i); + WindowNode node = structure.getWindowNodeAt(i); + dumpNode(" ", node.getRootViewNode()); + } + } + + private static void dumpNode(String prefix, ViewNode node) { + StringBuilder builder = new StringBuilder(); + builder.append(prefix) + .append("autoFillId: ").append(node.getAutofillId()) + .append("\tidEntry: ").append(node.getIdEntry()) + .append("\tid: ").append(node.getId()) + .append("\tclassName: ").append(node.getClassName()) + .append('\n'); + + builder.append(prefix) + .append("focused: ").append(node.isFocused()) + .append("\tvisibility").append(node.getVisibility()) + .append("\tchecked: ").append(node.isChecked()) + .append("\twebDomain: ").append(node.getWebDomain()) + .append("\thint: ").append(node.getHint()) + .append('\n'); + + HtmlInfo htmlInfo = node.getHtmlInfo(); + + if (htmlInfo != null) { + builder.append(prefix) + .append("HTML TAG: ").append(htmlInfo.getTag()) + .append(" attrs: ").append(htmlInfo.getAttributes()) + .append('\n'); + } + + String[] afHints = node.getAutofillHints(); + CharSequence[] options = node.getAutofillOptions(); + builder.append(prefix).append("afType: ").append(getTypeAsString(node.getAutofillType())) + .append("\tafValue:") + .append(getAutofillValueAndTypeAsString(node.getAutofillValue())) + .append("\tafOptions:").append(options == null ? "N/A" : Arrays.toString(options)) + .append("\tafHints: ").append(afHints == null ? "N/A" : Arrays.toString(afHints)) + .append("\tinputType:").append(node.getInputType()) + .append('\n'); + + int numberChildren = node.getChildCount(); + builder.append(prefix).append("# children: ").append(numberChildren) + .append("\ttext: ").append(node.getText()) + .append('\n'); + + Log.v(TAG, builder.toString()); + final String prefix2 = prefix + " "; + for (int i = 0; i < numberChildren; i++) { + Log.v(TAG, prefix + "child #" + i); + dumpNode(prefix2, node.getChildAt(i)); + } + } +} \ No newline at end of file diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/FakeFieldGenerator.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/FakeFieldGenerator.java similarity index 81% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/FakeFieldGenerator.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/FakeFieldGenerator.java index 383de216..475b9d07 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/FakeFieldGenerator.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/FakeFieldGenerator.java @@ -13,9 +13,9 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice; +package com.example.android.autofill.service; -import com.example.android.autofillframework.multidatasetservice.model.FilledAutofillField; +import com.example.android.autofill.service.model.FilledAutofillField; interface FakeFieldGenerator { FilledAutofillField generate(int seed); diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/MyAutofillService.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/MyAutofillService.java similarity index 87% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/MyAutofillService.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/MyAutofillService.java index ac030221..bec5ffff 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/MyAutofillService.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/MyAutofillService.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice; +package com.example.android.autofill.service; import android.app.assist.AssistStructure; import android.content.IntentSender; @@ -30,20 +30,19 @@ import android.util.Log; import android.view.autofill.AutofillId; import android.widget.RemoteViews; -import com.example.android.autofillframework.R; -import com.example.android.autofillframework.multidatasetservice.datasource.SharedPrefsAutofillRepository; -import com.example.android.autofillframework.multidatasetservice.datasource.SharedPrefsPackageVerificationRepository; -import com.example.android.autofillframework.multidatasetservice.model.FilledAutofillFieldCollection; -import com.example.android.autofillframework.multidatasetservice.settings.MyPreferences; +import com.example.android.autofill.service.datasource.SharedPrefsAutofillRepository; +import com.example.android.autofill.service.datasource.SharedPrefsPackageVerificationRepository; +import com.example.android.autofill.service.model.FilledAutofillFieldCollection; +import com.example.android.autofill.service.settings.MyPreferences; import java.util.Arrays; import java.util.HashMap; import java.util.List; -import static com.example.android.autofillframework.CommonUtil.TAG; -import static com.example.android.autofillframework.CommonUtil.VERBOSE; -import static com.example.android.autofillframework.CommonUtil.bundleToString; -import static com.example.android.autofillframework.CommonUtil.dumpStructure; +import static com.example.android.autofill.service.CommonUtil.TAG; +import static com.example.android.autofill.service.CommonUtil.VERBOSE; +import static com.example.android.autofill.service.CommonUtil.bundleToString; +import static com.example.android.autofill.service.CommonUtil.dumpStructure; public class MyAutofillService extends AutofillService { diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/SecurityHelper.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/SecurityHelper.java similarity index 96% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/SecurityHelper.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/SecurityHelper.java index f18b422e..5ab23ac9 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/SecurityHelper.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/SecurityHelper.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice; +package com.example.android.autofill.service; import android.content.Context; import android.content.pm.PackageInfo; @@ -36,9 +36,9 @@ import java.security.MessageDigest; import java.security.cert.CertificateFactory; import java.security.cert.X509Certificate; -import static com.example.android.autofillframework.CommonUtil.DEBUG; -import static com.example.android.autofillframework.CommonUtil.TAG; -import static com.example.android.autofillframework.CommonUtil.VERBOSE; +import static com.example.android.autofill.service.CommonUtil.DEBUG; +import static com.example.android.autofill.service.CommonUtil.TAG; +import static com.example.android.autofill.service.CommonUtil.VERBOSE; /** * Helper class for security checks. diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/StructureParser.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/StructureParser.java similarity index 90% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/StructureParser.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/StructureParser.java index 030780f9..ce020a7b 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/StructureParser.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/StructureParser.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice; +package com.example.android.autofill.service; import android.app.assist.AssistStructure; import android.app.assist.AssistStructure.ViewNode; @@ -22,13 +22,12 @@ import android.content.Context; import android.util.Log; import android.view.autofill.AutofillValue; -import com.example.android.autofillframework.R; -import com.example.android.autofillframework.multidatasetservice.datasource.SharedPrefsDigitalAssetLinksRepository; -import com.example.android.autofillframework.multidatasetservice.model.FilledAutofillField; -import com.example.android.autofillframework.multidatasetservice.model.FilledAutofillFieldCollection; +import com.example.android.autofill.service.datasource.SharedPrefsDigitalAssetLinksRepository; +import com.example.android.autofill.service.model.FilledAutofillField; +import com.example.android.autofill.service.model.FilledAutofillFieldCollection; -import static com.example.android.autofillframework.CommonUtil.DEBUG; -import static com.example.android.autofillframework.CommonUtil.TAG; +import static com.example.android.autofill.service.CommonUtil.DEBUG; +import static com.example.android.autofill.service.CommonUtil.TAG; /** * Parser for an AssistStructure object. This is invoked when the Autofill Service receives an diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/W3cHints.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/W3cHints.java similarity index 98% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/W3cHints.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/W3cHints.java index 14085544..1721477c 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/W3cHints.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/W3cHints.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice; +package com.example.android.autofill.service; public final class W3cHints { diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/AutofillDataSource.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/AutofillDataSource.java similarity index 88% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/AutofillDataSource.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/AutofillDataSource.java index b92a7365..38e70075 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/AutofillDataSource.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/AutofillDataSource.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice.datasource; +package com.example.android.autofill.service.datasource; import android.content.Context; -import com.example.android.autofillframework.multidatasetservice.model.FilledAutofillFieldCollection; +import com.example.android.autofill.service.model.FilledAutofillFieldCollection; import java.util.HashMap; import java.util.List; diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/DigitalAssetLinksDataSource.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/DigitalAssetLinksDataSource.java similarity index 93% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/DigitalAssetLinksDataSource.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/DigitalAssetLinksDataSource.java index 04624cbb..040ab501 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/DigitalAssetLinksDataSource.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/DigitalAssetLinksDataSource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice.datasource; +package com.example.android.autofill.service.datasource; import android.content.Context; diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/PackageVerificationDataSource.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/PackageVerificationDataSource.java similarity index 95% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/PackageVerificationDataSource.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/PackageVerificationDataSource.java index 129001d0..ed1d1cec 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/PackageVerificationDataSource.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/PackageVerificationDataSource.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice.datasource; +package com.example.android.autofill.service.datasource; import android.content.Context; diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/SharedPrefsAutofillRepository.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/SharedPrefsAutofillRepository.java similarity index 95% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/SharedPrefsAutofillRepository.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/SharedPrefsAutofillRepository.java index 91a1923e..0643a3f0 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/SharedPrefsAutofillRepository.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/SharedPrefsAutofillRepository.java @@ -13,12 +13,12 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice.datasource; +package com.example.android.autofill.service.datasource; import android.content.Context; import android.util.ArraySet; -import com.example.android.autofillframework.multidatasetservice.model.FilledAutofillFieldCollection; +import com.example.android.autofill.service.model.FilledAutofillFieldCollection; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -33,8 +33,8 @@ import java.util.Set; * This is done here only for simplicity and learning purposes. */ public class SharedPrefsAutofillRepository implements AutofillDataSource { - private static final String SHARED_PREF_KEY = "com.example.android.autofillframework" - + ".multidatasetservice.datasource.AutofillDataSource"; + private static final String SHARED_PREF_KEY = "com.example.android.autofill" + + ".service.datasource.AutofillDataSource"; private static final String CLIENT_FORM_DATA_KEY = "loginCredentialDatasets"; private static final String DATASET_NUMBER_KEY = "datasetNumber"; private static SharedPrefsAutofillRepository sInstance; diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/SharedPrefsDigitalAssetLinksRepository.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/SharedPrefsDigitalAssetLinksRepository.java similarity index 90% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/SharedPrefsDigitalAssetLinksRepository.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/SharedPrefsDigitalAssetLinksRepository.java index a8124a1c..476cf4c5 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/SharedPrefsDigitalAssetLinksRepository.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/SharedPrefsDigitalAssetLinksRepository.java @@ -13,14 +13,14 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice.datasource; +package com.example.android.autofill.service.datasource; import android.content.Context; import android.util.Log; -import com.example.android.autofillframework.multidatasetservice.SecurityHelper; +import com.example.android.autofill.service.SecurityHelper; -import static com.example.android.autofillframework.CommonUtil.TAG; +import static com.example.android.autofill.service.CommonUtil.TAG; /** * Singleton repository that caches the result of Digital Asset Links checks. diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/SharedPrefsPackageVerificationRepository.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/SharedPrefsPackageVerificationRepository.java similarity index 89% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/SharedPrefsPackageVerificationRepository.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/SharedPrefsPackageVerificationRepository.java index aa467786..a0aaeab6 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/datasource/SharedPrefsPackageVerificationRepository.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/datasource/SharedPrefsPackageVerificationRepository.java @@ -13,20 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice.datasource; +package com.example.android.autofill.service.datasource; import android.content.Context; import android.content.SharedPreferences; import android.util.Log; -import com.example.android.autofillframework.multidatasetservice.SecurityHelper; +import com.example.android.autofill.service.SecurityHelper; -import static com.example.android.autofillframework.CommonUtil.TAG; +import static com.example.android.autofill.service.CommonUtil.TAG; public class SharedPrefsPackageVerificationRepository implements PackageVerificationDataSource { - private static final String SHARED_PREF_KEY = "com.example.android.autofillframework" - + ".multidatasetservice.datasource.PackageVerificationDataSource"; + private static final String SHARED_PREF_KEY = "com.example.android.autofill.service" + + ".datasource.PackageVerificationDataSource"; private static PackageVerificationDataSource sInstance; private SharedPrefsPackageVerificationRepository() { diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/model/FilledAutofillField.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/model/FilledAutofillField.java similarity index 90% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/model/FilledAutofillField.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/model/FilledAutofillField.java index dfaa1e78..02624011 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/model/FilledAutofillField.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/model/FilledAutofillField.java @@ -13,21 +13,20 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice.model; +package com.example.android.autofill.service.model; import android.util.Log; import android.view.View; -import android.view.autofill.AutofillValue; -import com.example.android.autofillframework.multidatasetservice.AutofillHints; +import com.example.android.autofill.service.AutofillHints; import com.google.common.base.Preconditions; import com.google.gson.annotations.Expose; import java.util.Arrays; -import static com.example.android.autofillframework.CommonUtil.TAG; -import static com.example.android.autofillframework.multidatasetservice.AutofillHints.convertToStoredHintNames; -import static com.example.android.autofillframework.multidatasetservice.AutofillHints.filterForSupportedHints; +import static com.example.android.autofill.service.CommonUtil.TAG; +import static com.example.android.autofill.service.AutofillHints.convertToStoredHintNames; +import static com.example.android.autofill.service.AutofillHints.filterForSupportedHints; /** * JSON serializable data class containing the same data as an {@link AutofillValue}. @@ -40,6 +39,8 @@ public class FilledAutofillField { @Expose private Boolean mToggleValue = null; + //TODO add explicit mListValue + /** * Does not need to be serialized into persistent storage, so it's not exposed. */ diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/model/FilledAutofillFieldCollection.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/model/FilledAutofillFieldCollection.java similarity index 94% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/model/FilledAutofillFieldCollection.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/model/FilledAutofillFieldCollection.java index 05956ec9..7165859e 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/model/FilledAutofillFieldCollection.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/model/FilledAutofillFieldCollection.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice.model; +package com.example.android.autofill.service.model; import android.service.autofill.Dataset; import android.support.annotation.NonNull; @@ -22,17 +22,17 @@ import android.view.View; import android.view.autofill.AutofillId; import android.view.autofill.AutofillValue; -import com.example.android.autofillframework.multidatasetservice.AutofillFieldMetadata; -import com.example.android.autofillframework.multidatasetservice.AutofillFieldMetadataCollection; -import com.example.android.autofillframework.multidatasetservice.AutofillHints; -import com.example.android.autofillframework.multidatasetservice.W3cHints; +import com.example.android.autofill.service.AutofillFieldMetadata; +import com.example.android.autofill.service.AutofillFieldMetadataCollection; +import com.example.android.autofill.service.AutofillHints; +import com.example.android.autofill.service.W3cHints; import com.google.gson.annotations.Expose; import java.util.HashMap; import java.util.List; -import static com.example.android.autofillframework.CommonUtil.DEBUG; -import static com.example.android.autofillframework.CommonUtil.TAG; +import static com.example.android.autofill.service.CommonUtil.DEBUG; +import static com.example.android.autofill.service.CommonUtil.TAG; /** * FilledAutofillFieldCollection is the model that holds all of the data on a client app's page, diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/settings/MyPreferences.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/settings/MyPreferences.java similarity index 94% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/settings/MyPreferences.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/settings/MyPreferences.java index 34d63ef3..563b4fcd 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/settings/MyPreferences.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/settings/MyPreferences.java @@ -13,12 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice.settings; +package com.example.android.autofill.service.settings; import android.content.Context; import android.content.SharedPreferences; -import android.service.autofill.Dataset; -import android.service.autofill.FillResponse; import android.support.annotation.NonNull; public class MyPreferences { diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/settings/SettingsActivity.java b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/settings/SettingsActivity.java similarity index 90% rename from prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/settings/SettingsActivity.java rename to prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/settings/SettingsActivity.java index 6ca59601..3a96faf9 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/java/com/example/android/autofillframework/multidatasetservice/settings/SettingsActivity.java +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/java/com/example/android/autofill/service/settings/SettingsActivity.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.example.android.autofillframework.multidatasetservice.settings; +package com.example.android.autofill.service.settings; import android.content.Context; import android.content.DialogInterface; @@ -32,11 +32,11 @@ import android.widget.NumberPicker; import android.widget.Switch; import android.widget.TextView; -import com.example.android.autofillframework.R; -import com.example.android.autofillframework.multidatasetservice.AutofillHints; -import com.example.android.autofillframework.multidatasetservice.datasource.SharedPrefsAutofillRepository; -import com.example.android.autofillframework.multidatasetservice.datasource.SharedPrefsPackageVerificationRepository; -import com.example.android.autofillframework.multidatasetservice.model.FilledAutofillFieldCollection; +import com.example.android.autofill.service.R; +import com.example.android.autofill.service.AutofillHints; +import com.example.android.autofill.service.datasource.SharedPrefsAutofillRepository; +import com.example.android.autofill.service.datasource.SharedPrefsPackageVerificationRepository; +import com.example.android.autofill.service.model.FilledAutofillFieldCollection; public class SettingsActivity extends AppCompatActivity { private static final String TAG = "SettingsActivity"; @@ -80,8 +80,8 @@ public class SettingsActivity extends AppCompatActivity { return new AlertDialog.Builder(SettingsActivity.this) .setMessage(R.string.settings_clear_data_confirmation) .setTitle(R.string.settings_clear_data_confirmation_title) - .setNegativeButton(R.string.cancel, null) - .setPositiveButton(R.string.ok, (dialog, which) -> { + .setNegativeButton(R.string.settings_cancel, null) + .setPositiveButton(R.string.settings_ok, (dialog, which) -> { SharedPrefsAutofillRepository.getInstance().clear(SettingsActivity.this); SharedPrefsPackageVerificationRepository.getInstance() .clear(SettingsActivity.this); @@ -101,10 +101,10 @@ public class SettingsActivity extends AppCompatActivity { numberOfDatasetsPicker.setWrapSelectorWheel(false); return new AlertDialog.Builder(SettingsActivity.this) .setTitle(R.string.settings_add_data_title) - .setNegativeButton(R.string.cancel, null) + .setNegativeButton(R.string.settings_cancel, null) .setMessage(R.string.settings_select_number_of_datasets) .setView(numberOfDatasetsPicker) - .setPositiveButton(R.string.ok, (dialog, which) -> { + .setPositiveButton(R.string.settings_ok, (dialog, which) -> { int numOfDatasets = numberOfDatasetsPicker.getValue(); boolean success = buildAndSaveMockedAutofillFieldCollection( SettingsActivity.this, numOfDatasets); @@ -142,7 +142,7 @@ public class SettingsActivity extends AppCompatActivity { private AlertDialog.Builder prepareCredentialsDialog() { return new AlertDialog.Builder(SettingsActivity.this) .setTitle(R.string.settings_auth_change_credentials_title) - .setNegativeButton(R.string.cancel, null); + .setNegativeButton(R.string.settings_cancel, null); } private AlertDialog buildCurrentCredentialsDialog() { @@ -153,7 +153,7 @@ public class SettingsActivity extends AppCompatActivity { return prepareCredentialsDialog() .setMessage(R.string.settings_auth_enter_current_password) .setView(currentPasswordField) - .setPositiveButton(R.string.ok, new DialogInterface.OnClickListener() { + .setPositiveButton(R.string.settings_ok, new DialogInterface.OnClickListener() { @Override public void onClick(DialogInterface dialog, int which) { String password = currentPasswordField.getText().toString(); @@ -175,7 +175,7 @@ public class SettingsActivity extends AppCompatActivity { return prepareCredentialsDialog() .setMessage(R.string.settings_auth_enter_new_password) .setView(newPasswordField) - .setPositiveButton(R.string.ok, (dialog, which) -> { + .setPositiveButton(R.string.settings_ok, (dialog, which) -> { String password = newPasswordField.getText().toString(); MyPreferences.getInstance(SettingsActivity.this).setMasterPassword(password); dialog.dismiss(); diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/res/drawable/ic_add_black_24dp.xml b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/drawable-v24/ic_add_black_24dp.xml similarity index 100% rename from prebuilts/gradle/AutofillFramework/Application/src/main/res/drawable/ic_add_black_24dp.xml rename to prebuilts/gradle/AutofillFramework/afservice/src/main/res/drawable-v24/ic_add_black_24dp.xml diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/res/drawable/ic_delete_forever_black_24dp.xml b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/drawable-v24/ic_delete_forever_black_24dp.xml similarity index 100% rename from prebuilts/gradle/AutofillFramework/Application/src/main/res/drawable/ic_delete_forever_black_24dp.xml rename to prebuilts/gradle/AutofillFramework/afservice/src/main/res/drawable-v24/ic_delete_forever_black_24dp.xml diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/res/drawable/ic_lock_black_24dp.xml b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/drawable-v24/ic_lock_black_24dp.xml similarity index 100% rename from prebuilts/gradle/AutofillFramework/Application/src/main/res/drawable/ic_lock_black_24dp.xml rename to prebuilts/gradle/AutofillFramework/afservice/src/main/res/drawable-v24/ic_lock_black_24dp.xml diff --git a/prebuilts/gradle/AutofillFramework/afservice/src/main/res/drawable-v24/ic_person_black_24dp.xml b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/drawable-v24/ic_person_black_24dp.xml new file mode 100644 index 00000000..6534d9f0 --- /dev/null +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/drawable-v24/ic_person_black_24dp.xml @@ -0,0 +1,20 @@ + + + + diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/res/layout/multidataset_service_auth_activity.xml b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/layout/multidataset_service_auth_activity.xml similarity index 95% rename from prebuilts/gradle/AutofillFramework/Application/src/main/res/layout/multidataset_service_auth_activity.xml rename to prebuilts/gradle/AutofillFramework/afservice/src/main/res/layout/multidataset_service_auth_activity.xml index 34b4424b..5430e527 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/res/layout/multidataset_service_auth_activity.xml +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/layout/multidataset_service_auth_activity.xml @@ -26,7 +26,7 @@ android:paddingLeft="@dimen/activity_horizontal_margin" android:paddingRight="@dimen/activity_horizontal_margin" android:paddingTop="@dimen/activity_vertical_margin" - tools:context=".multidatasetservice.AuthActivity"> + tools:context="com.example.android.autofill.service.AuthActivity"> (%wy$IWBy zD-X5w9Sr+X&U8WfbzEgx`SE`u&iS%L6Ro4P)}nR>Dy`}4PB!r$b+^n{4G1}#|e&A>p<(?>E^ef$3%)H!ZPz?|w^S`$e7{On*qPF!_bY{L@*Y?D8NAVobZKSd>C2cr z`}9-$`H$Dl+JEeUQqzPffA`-ybm9BrH+o-d+ZO*cNDqx(@^HOh+dDf?hqGtTrq0ii zxy|jJKdI^K-}c4VP0zhD|HXJ@OT~)#|21!aeZ1^<^Jit+R~|`=tgn%Ok1;gF2?|sv zzI~HiUs-niTZzMcAsI8Kf?kFvd<~c5?VeioG9CHt_j6T476XfK!@M}t)s@%2G|SIs zv`h_4ahSHM;nZ!0^PLRZ*So_ebi8Yr{g%DzKZk~`F>@9XRWigg?H!PW^ zu9v;<)uMO(`?k(_Jd=gx9YaLqH9JMYzg!Dz%NK1c>YtF7@bC#oM#I#{^Eg8E*%dNH zpK~5jzP<2>wL+!ap~tp-33*?qO?u(*VYYPO>-SqUR&L2tb z|Df<|ahb=_!zTkBnOWMs*4N5SIB~R**?L*Cc2;^~k!+Lm^e1v{w>IjpoS$4f`@-(; z-%?JMcr0yPylQ)0@HPn-J+p>_E6@IOA6Rv@tL*JAuA-cDH;Y-be+HC4k$&~J;{R`s zw?EhZx;f*{^|0*5J2}N4zujiAdLhuxGrmzdE!`-#T4zW7}9i1(Ym7jd-{MN!) zfw?cyGk2@REeAVev$p3wO(8pGYuXO6ps|=B6!h zrhC@L^)I+?b?y7s`oM-sKi#ov_?Y0NJgRM|u&iz93UzW2=Hd~SHcL_%cU9I+$1ohtsq62AUBdLEoBJ}}iz zwC~|OsU<$sCvz`*C(fX8+;PEGz3UPS(w6?x_I21Do!PKrdqvxfJd?gWJE($WVB8)X{^{K5&Kd%?~3B&=%uUjcFbUWQ4{KTQb5JP=o9CU&AtVj*+0uL zOl9a}osiS(==5Q#&Ekiv_X@rHR5)RAyyBg^Osf0%MT%W4G{wCco03YtuACBff^q-k zNoQUaGlVEvNHV@O^k_J&V!vv3nA0Z{m9-&{b_@P`mQ~;yD`r;u^xv^5-K|lktexSr zn7-P&*Qc)YR^6tz?S9&-MDu+CzYDzu7D$+wNj96Xp7ktlH~Me#!(G>lTcP%Cx8VEQ z+br!uHyKZ{9Y1j=J~K3^>P}IIqmshzn;WOPid~IlV7+a^+8JK?fG4EyPwlPuf8Tlw zypCP}Pp_}|Pw$np*?MAGw)`>Ic2%ldyyBS2I91f|wWp=#3YLNpabxWhTpe0RV;DnB zw>cE`d+dx@B)f3i%?DonoPEm{lsN1>WXM&}lp@^h;i%d)xyNyJ$nFzIT^y2@#>_MP zz`Nfqv`yx(yb`;7v&`+OZ0?~B&5{#LJ)#pOPZ=K9Y~zYAE8om`C3ExYiHoCECrcV? z$W90j&nwk_yL;M3juqQ`V{}B96t^bNn86#w*TBVbLapxC=T+S^8AX|o^9AfHc%xv+ zpd~nGNw@9Pl8y87(`Fl_Nj>jij12KJs^id0(^wH;(WX@!w|VzXhF2SAo=tyw%2?C= z@7V%F*?=7Os#`$~T#bv_UbdM|_!8H{;COMF)JpHyYu6YapQNGN%dyhHq4mvF@5K$f zw!UIh%zb-eqimS<=ka1HL1`KhnO z{*KLm%j=&a%VjoOGu>+|->kbcDk)%N!Iw$9n>cseDLur=_tx!OgU*_FOBePuoc`^- zPUftf?(I7aQ#ty=RNTuACg$W;Tddsm+}g?Px%RWCgt8+mkAVKI%e?l>5NbZMyuL-mA$*qUl9Q zE5CHcl&pt3#dfxP+a~2C`L*4>)YznKSZi{&p=+5A*RCfvyaMtHPb18~Rynyn5WBjB zvAEB2X((Ujgee+^eE(H6%~VM~uHFnKf_VLUd0bt-Sb*_qSh z=I(PfU@=T(a*^Peu(98oW#f`nH5?P1Kc};n{OY+GzawVduZ24Dk<+a2*X>K)^L5GI zS4o%G|M(hQ%lY)sLY@_uboc%_by+*J|IQaJCc~ApN^V`5eCic{w&wTH9?7l=iyr=) zyYZau=IuFE&zY^3uJN@E64$-lJFDVTf4_CkpO5A(N)v-)^rn}^eXp)Nx#^DRhpPLx zKOa@^&$<1}ZtwP8{0=v`I=0EYtkHY>;NokC)OLBhb*pymn|5I4y6&{N!aDaA|BEaq z{_|Tc@@`-HvKg`X%-D!^ThP|GquiT)$OJ_RSlv?c3^H zvlfcKII;G{e8~%|175{=gb36wn>?X}WvWBytNUxMb8`M|vR~U#G)Ju4P4V=~mrgoT z|Etda?S46*@j^e}ZDrNvOK#P_UGy~D^0|BA>DlL=>Rq4KK3!*rVsq@3Qz`lL`P5Wy z<B1{&Vv73i5u>tuA=z zYvSU;w&RiO#B#nkhQ;}j-!6Ek#@+AyQeq?Lz0R+~b{?;H{?4>ng7HNsZS@_Jm-&4? zH>WOA{J;r;%TFJFR2RE%)6e(oLXDp2jG~Q;N-{N6uH60l;Bk4|%=CE^bz2$z;tmT| zCj2YC!suG8YozaRxZhIE;QOuHR+8TP5>`z;T>0pA?)!Pa|I821msI&~^lJ67g_7at zW}1{eTDiXQ<$B#oDNk5L&MoG@W7gmIN80_mjOA0-j;ifHzuWy;6Y}nN>x|7pFaI8| z<<46qwzzjyNAgPM*$r20i~fBQ?e~t`f6~wL&i7+~_wO!T_R+0aFYO8UimX#xGKKwS z6`hMc6KyA%z}4Mqo?H3(y|;P(jSrpg;$CL2+!+zH%fw{f>e)7_r#?c`^YT=Eg)CVqk83a80u)USEGkubb&EaP)@>=Tb>=D;=D1xP zT%`(?H)rZAXmxO@f0cMIFUh>-J(rB&B*OFVdQ&MBb@03FyrzyJUM literal 0 HcmV?d00001 diff --git a/prebuilts/gradle/AutofillFramework/afservice/src/main/res/mipmap-mdpi/ic_launcher.png b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/mipmap-mdpi/ic_launcher.png new file mode 100755 index 0000000000000000000000000000000000000000..6d5c2bb9cf8aab959df27720745bb8cef570bb4d GIT binary patch literal 2036 zcmeAS@N?(olHy`uVBq!ia0y~yU@!n-4mJh`hH$2z?FF7z5mU+*G*kbDW$@^Q)Vo+acLG35r~SF-+Y&3|xySdW7r)#4{M_F1cXOw+I&XR| zpHcnJ^8WYV`|iKr!=d-VO|RgOML0{#+iI(MKOep5bdP9Ii>-XQtU7P+Pf3PT8SHQ7 z2t@qEB$c(*JRn7BT6Ystlx+>H&(YoG7GR#W%oNtW@Ali_CTvgeup z^8T-1E4{r&{(FL<;>eb>!|ISuAlcNZ=1uPJq}E4kAc^?TZl^9;+~PBaEA zOvtSFzIbx?YH72(yb7l|JG}0%sbg~O-gD85C6%F&`Dme-^m>bmvl1$*CT~`=Pk6v` zXiNUH2dxbAR=X+5Ze>_B$3ge)Y)gZziQ;MujrSRxSSD0AOq6Z-(|lIXFUw-(`#b$E zR<9U%tOPXFjOQO&8vjD`z<2J|f>Tw5(zh#l+*^O*^DXzV>YV~VCO%lI&iMcAf>Q>Q zns+Ot?`ywa&bsQbu_FuT$9ek|G~Se)G^|eG(sXfD`u&#cOu>c#$)~{*>{s?Ou2M0m z_#}8@<@+9~=U@F@Dh_eK5;7>rF?)4bxl(Ye+fIXutu?!ZSFHJ_yg@+Vy>n4PyVT1& zYOPHT3O6>$TzweXF*nau?O*s2|TyQfT=rTolkfzt<`t}RR-?)SOWTMMPfo9#Jw z!1zDgt7lF!pBWzAeLbcd&ha5p3|^u>a^PGwB0Q?590E1YxG+9v+-p0C>N43&;ur!pQJod2xW z7ultiDfKA*)&$=-=ARst12rm^edH3>V6>6;RyQ#EqS&_kdZf+z#^)|Rmzte&GMe>E z)P?Tmo;V`OxN0(MmQ$JPov@^ERxg(GWm6y3gfhA{giepyQu?5Y&x8Ewgk|wnlmg#k^Uht>x}dqSTS#NWjGO$*kC=2jXSP;dlWeGc#5>_wzCm5z{J2h^M-#Z> zd}XB>)j!t>UoLSurM=9{UpURZZ8GC;!mDYs}=d+aA?}T0m5oUfiCt>!^ zJz7UNEY=)pJ-0!PsWVQuGxQ~Q!*!h$)c~G7Y3d3AbCn-DJlOVU>W&+XF>}~EzB~KX zHkah+yXS{U=jx|yFgleJTA*d~Z}r4Cl`=)28oFDH?$5d|;cZU3CRp*{5qQSbS&wN&f!_*34j+I(cmCBP$m@O*> zyuz&2r!&vHz4F&2=Wlx__$}c1VDqf`;+@v1wu!v#Ggo=7oOix9yJ(SKpK&ACfzL zIgJiE+b=(t3|)Cy)8y+%`*_*(ebT(<_FrC9@4a~AO3?8in!jBSE!_K7-}Za-=eJva ze2&iB`E1kbWjQu??F$yyxqk{yDw#QZnf|)fqw-oxZ-8dUke~sZTyB757cuCF@>Q*-@jiB+0em?ulODtY+0P$e`OojaFQc)|Vx#3{ zo;|w`h|awE|GN3Tdv~wO&pq~QW8+_@zhC-Ki``%9?kJlgA{D&n-%H>1Z@ki`yuQ3r zFtp>Nc&mNn)*t1UZ*HD(Tc(w>M^-xK?yhG%4m0*%xfUT^lX!BEW$vyPztg3vH4=O; zk6ynYQ(R=QZwjl{?6Vs>j+)!;YYCOETRPFaERpH!S5xiz5!H7dUo`vErNmz@_v^`Y z>wB61cLjuKB{CeS|GxKZxcS{LtN%7Vm?+WdVx$jMw1SC^<13tkwMT=n19U*RXImaL6P^STpdb_S{DdDz0mQf z(Xn@B!Xrta4_)pCts6Il2(XBSO|wlaPcK`ZzAO0umoGl||5hzaFEjTG&pr5UU)}q^ z_rJ%#|60A?a>}|o*M`^EuX*<_c5$%RcI<2rVmv4KyNHct$@%erQj`su|9z^zV_1A^C4)=4!I$`#j;;rS_4if1N#9*o&oe`f z|Ix*EnLmrY&sirI|95<~=IKEfhV3b5i@T$&ch6qqvSvNsz3R)N;`gi~)+87RKG^-W z(cNC~;NJsX41AC3-_I<5YQeynzUzklQeRF1>*?1Rb&D0Z_%_avVCArT9&1u`bj|lK zYrlTXiTyDBDDSRQQeqOn)o)FCY-8i{{`v>A9EP^LXIt}g%@3WQz_79Sr@ul@9Q(rq z3k4!YIyYWEv+?57UvCbaQaF5To#2$T^S>DK|C;^q-!Xyv+)t0+OZpn7JmZ$HZ%KKc zm?L%mR_1im2~*G1vBozpF#jWJb6kG;Ru);tKaDrP|332e`t$?k@rjQt{@B$Yo)tai zMi%D>uHW?^C6BB2ZBbva5LiI1&f*X1u@xie+M zF~gSZ8zO8MGTj^^a^~jDSpO`eNNm-YyUgo#z{07&|;#ZSs=mYh=c%xZ*o2_1T&3WLjtk@O`aZ)p((1 zL5~mzH@l{bV0OLS)I0MT6(6U`3O!1huv9mD{w^yO1@;YV6penY_LaWp+&C+hAv{xD z(zyP4^87{F@87Oi{Z2CA!DQ*@QuoqI9hn(w{B;H57Bk0-JofmO+dkn)27;7G4z2N+s$1P92S=qxRc)YbpPA@reeXb zb2>kqcqZ=seDHfs#s@36SMik}DnfYo3(Gv8t|0RG#h+(I9Dnkzw05@qW1WAIX$#92 z<{xag?qA-;v~ipLtfu)wd@@>D`fg7rXd55-y3M}(MPum7`>zkhwOJg}(&wJ}%ZN|6 zVXLuT*1nj~zwwM7b+H~>7Umv5+8}Y+WQoDsFVSA-f*WrIzCKWyxrbTh_qK(_*F|SO zU*nlD)!h8UQiVT#u>#XT2Cy>Bm*%@-J9FiZ_1Vh1zNOxsc+GwCGwt`Gy!*MIE}VR6 zd&QP|Th>JrX4V;QWC^P*W{)p&^kLahwv6FH@YH*Y8$P_>%;FN~9)4QMHM#0+_^&(+aHY=Y{6sLwmM zs2eFc_`JKE$-^#~I91hRqI0zD>_2>*FW5i$>OQ#Db0liM{?2JS3QUqV$|WaHVj|=>r}%n z(}wgFfdQH)_Evm<-LdVCFXuX~bt~=)a`ewLm_R=$6Z1Jy}I67HY zcZb&PonCN|DMC7(Vg9f1?TT-|t2SDf#qxFpwtji#IE`h-pY&SkmnQM8a!>!wSuV8j znCQ&kC->=J*!r7G_D9j*tD$Ks8&0ifzt75@kUK}Prm8*q|E8`6=G$t{BD+-2Ug;^g z`rx%`h+K;1f2DNmIqEI5oZ|xpFYJAOy=zg>{HZsm%wq}r*?aK(WQJ?UWE=c#jT8^~ zeh6;L=Ip5Ne0TSg%tX1GnKN}b*L<4YJfEF$O|Lb}{T2p}U*?fsXRo~4H}%=+)U%uh z?DpPG?)iDk8gEH8%Op849yC{2kSpywXCimdlb>SUFCq_2*HP%0llTyuE;^EME&|FpFx6@sp&zu44^Eq0c)OAR9FWixMC;cST7Z!_+I-MSD0tbpHJBrFq1agJ!7$W*2IzZifciGyi*K>{$GNk$|(!C!?g?)r^MLPv=}s z@#O2@&UJOMh@-_n)v9kEVhJUZQDW*!B4<4hgf zBlo;Eb=e=gVyFJ^ay`+ONKOOh_;oS9O?z(#mUT5YboN}n*u#5USKLH_VbPSfEdBNW z4X((1+Hq3ORxozAo~zNn(q9{OegyF(C?DXfG3D%$&|o>)$Pkuo;BbbohM7C#{ybUs zjO;J%er^Rfn1Z)oylli@^F4akOV-W?g;nk=lN+wFZfw#oJ#a>LW?BDLR!!Xn2Od}} zG#vQITGz4aSi6tvo4k3wE^mZA1E%sXo@fx+V9DrraQbTguv@;-D|Wv=z|_T1r^WH# zSG48!_W3JMWvLiku6*cM=VX+}fL!Rgiy zTUgwfx>)K?F|Fae(DYbSy77Wz`3et(57klc8VNN&ZYhLzF zZEUzK*<8?PXaCmT*gskz!Ro}Lnh&8p&Bx7UnD&cz-aET&mi}(8F2+#h_|qn{d+Iwg zKBrnK_S~9MyDugrvxrF42s8Cu3fL^TF7UwAcbQG|k1=gw*}-VX&B@21!SrLL!k?~RwFj1gZRXQvlLL^jNRaQa9%OHVSBG9;R>u{>G*vy4TAsb;6IvXBJFj04~NEW+on=RWj| zWe4lNDQ#?mzv9d|CUbYa+j}L&NAXq6jC)rzW9B^EBP#G=weCS#raPe2^2JSO_itB^ zn$;0&6Po<_(s?g&%blAZTRHK~Z;_3)#yvrn*AGnB4xco^o-wb<-gwnpCwTONzWp9v%pfa(c%i z!t|%)yj69U07pDi{LzgMY#4?A#9Bmq^(fu^oj>85_I8VH|L$zsI0L+9yS;Q*EoPcP=UFaK1a@wH~3 z%ACL4UmAJrJRkHlC^gOB%A)k}zi>@DsMgvvZL;cyzJk<8Y`dNo&gYhrN zKAwzpmpD7SA9wqB?EYr^ANcpN=kmqMJ;n)ld@oB*Olq3ER5_^f^HSxbr^-S+8#E!bnCR89f7Mnzu)mU-TFX#Hit~kj zD(=R~-5%Sk%)4h!lRhu&S@fb%PwWR*Qzr96MKi+%+h^)HyxJ0XF;=amGhyY~HL4Q3 zRnqg8TRiaI7r)C!W_nTY!ay@IgNKV==4@V=HZ5*fe&+${^LA--S*LPntYMqVp`o*H z+t%qE8(LRvVD(}V5sSZl%bVqfQ^*abZ!9quwe}XbR>kd#ad&We)LYtb8Zl40>eZFg zc3-Cb-1olf@lvjdPlV(1YW{UTUc<3sX2roRs!i)_syOw(3w}^})W3II-P_(Uck%FE zN$YPf+79Dz)}wYjxY@o|;m z3pN$89N)P1*WY(e*}6M5xL)+S&1U}i;*NRzPwv{3zH?^{ZTHP9lfLlt+hKlb+q5eu z43n21W&OyKA9<6*%3}@7CS{gMp7Zkcz8AcIduLbb+i&{Y-Z5;LzHI9ny9W-s7fvoO zdGbJjp`?rLuU}fiPMySOcU-xJnfydpe{x8arn5S}sQ7l!_4(It-=xF~RH7epu`@BA z-y;2NuL1|t*_#q^Nt6Cxmwy-Sa9?Zlt_-n>DN7eupL}}3bMqEHx6&!=1y_{xpX=sX zy0&rJ+Q6u+SKWSArH3vQK3<;F(DCVBoRx%UzoGow%F45sTDKhRe!AJG)%nK0wELmk z?^MoSzv$8Q&X&S(*N%_p@87NXb~}IXO1n1i#l@MCFP{irs=8I_;cXuhd@3x;SFgQe zfxI_&#GX%`*-^WbR^BcCVx)f0U1i1cb&q9rudj=%y3frp#eLz8!-0Q* zK0bT;Iq!#M!?S}93`Y;V7SsQq9$8tbEZ;9Z=>e;mZNYDuNjC)|+};#LJYBW2^5^99 zz4xwOb6q(#>x++y%4Ic~-YxcflOE=pFaNvXBA3p!e`1SeBL7T?{4B1|*Y}qv@6V$1pI?UTd;NC@`?YoRcdyq?+Er;j(?{Xc+3@LWstQh?e#yx3 z`1k3WBd1?IkvfRHp;z6u6Gwj4{-|RZdzxNe?NYAv}irrz84mkcv zIC(aF{)~RD!RG$;&E?16O!a;rdw)I)3!{nO?8380y4n(_vpQc*cIAuNvOC-R z`}XQQaF`S|Hnz|{!9mK&F4Zwmb_dq3HK zZCwZ7{2P;}onQHB_oF6_ACvf(+|3v1d9slq)0%gG=5g7~{|@K>o;|R6Qh$<^uj>=l z_*eKnjDm@PBy&d$=(ZAkmO wX}4~X(FMkj0*N68Kkq0cI4m%Uu>NRo;>2}Re%bFn1_lNOPgg&ebxsLQ06oR^a{vGU literal 0 HcmV?d00001 diff --git a/prebuilts/gradle/AutofillFramework/afservice/src/main/res/mipmap-xxhdpi/ic_launcher.png b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/mipmap-xxhdpi/ic_launcher.png new file mode 100755 index 0000000000000000000000000000000000000000..698fd4c5d82380151e99142117404d0e322b1125 GIT binary patch literal 6861 zcmeAS@N?(olHy`uVBq!ia0y~yV3+{H9Bd2>4A0#j?O+ipRHLssEyZZhAe?{kZ zdJD15d7_cv#CXglPJQ)a1`7sDff+#u7*9;8@k?V@XlD%OvS64w>HNtz3{wstSoQs$ z_Wf;}zv;C#PF!hnpPzqs>=}O>e(m31*3@JinV|TU&n%bAg26K*;@7R{<0e;K!_2pC z`O37T-ra>k*t)5u+ zu^yV8@gd>*6~XX7CqBl=&x%WvEW7+fEZe_pCPnP3{w^mtAPknImrto@Meg;jj>|9xev>P`z zs;bW`IriU>=d!E+^G`PW|8MTS+P*e+^Q^Mvww$Izcn^olskK}JxTXntNf6LXKCHL&w49yf4T$*oK}V~12b{0#v*nAKiTEz9p8xpex0Y3^L98#1io5U9lYRAX)AJ*^K|cjxwL!VWB1;ul@f1OG9GdH-naYG`FD};4mhto;3)a|Lga^t zO~*wW<<9?)eYq}-`NY&a#z{+WPnB@gj6avz_jKWQxwI{dm=*r(Omdwp@2_I3|Fde3 zwUkKPT`z`*`Ehyo-)}eMNlut|yhmY4TcqNQnMNPyZCSN9?N#UvtB*Es(sqZ+voUnW zXfI)zusS=Ov0le?Q-B!}~3sq4y^+8r|wtS?#KIGh-*8O;PI0uL)lmOo~sf z{QGY2-qUJt^Gt4anzgsTsOY^pH(-)7FmJ@y|}f zz#)xAu`{pTBAJ#(-qCqUvJ{@ zAuCp|`^tKo>ny&e#tLr^vxl9{NY&r2n%m9UaE2pkN>%rRk31|K=Yv|?z2CN1Jl;K_ zqmC`6$a+C(;thozduk5|TL{)HywCJH>|XWxrP&J$kDm>YyR+8G(Qu2xOAr1vjty1< zHV2qOY}gMx>Z!?lq!9IAYKu$-*N>9Lr#|np*|5$?W2FrHzfatZAF3=h1y{B$oAojv z^x-+nqJqQ87g|Fz&oED9QIuV-9$&YNbHUXZ@%b&w_I4}W+h7$uiF30hOv#LK1aU{XZVtdSTCZ#)rpGeTq4-<<`9FGe^!QRhTcYn#s!4!NUHs zV&a3sudEvJlfo;EeyN(g*`fP+3TNw6!G|X!wD_ldtzxwLsKh0w4Q6b6(1MY;-|m3Mx; z&YJhIa+=QTujvKseUoF=?`>h5_5IAWzsC%0LZ&?JJGW%{4RJYPhKUapWVbWgI4OJ* zVi2CjEE37zYkIj@%OkyV$xNsHGdS;EQrz@fWwyCP@YyHV?hD8nYC5OnSMV@}WF}d+ zi&<2hS&_ijxHg9Kz?7#uHbkxX`!eZd{;!9L5)BF8S3cmLtIWRQ>HP~+w&n#@Oi?si z#p>z4*nIt`Qr;Z~x(z&KOD?D_ZknkvnPY-s#Rk(T2F-)Y?I%`gcRH8UJz`vCz!p@L z`02UYRk!F%LKkv9C(mNN#KsZ7Zi?sA%0^Sq)z zTH~z;g1dL|Dor}JZ8(u$98-N>_r+h^P_Kkn%DGx_Vksf zi*+v)Jy?Gz|K|sd5|`CaCuTq7wpvCdo!K~4JN2xgTj+Xa}WJEOYZ4g@YTm0!k<*? z@lIWO_nb=NpQ}4^MLxVd(_Vk!)01VJ3jVd3?lPNLVp6teE<;v&MZm=a5)G5IUvAlY zF>+$;WChW`E`o9w*FN2C9K_sn@M2l$+De7Hiw*Ybt>O5PaN2tvJ4ei<QEWxFy$Yz|&N7;dKZe#%m6$*2n-q5}+>D7SHt#g^($w=j9%lQef8PD) zmQu^Z2{#q(cAi`E`*(`W2W+?rU!rm*YRgR4`&<~M_iwH@Ca?x{GK zwJyKfs>%4Jz>mj8(7;&d$KmIV>)!+wRDRrhYvvTcoYsoJ-U9u5G;LZ|$d#XdcyLb? z!_ugt=Zzvs{0j}yh&OEHlW7gxZa!W!^mSN)i61R$bvax+pP92NbpL8$Cn&$o| zmUqF6xJsTSA!*Cb-TKfWJbS6*VnabmIbnvIGICxGCq6LzIP~0UgS1`OV$*fc7pA^v zo{$kWd2!Xgr-s}U!<0pOEm%!;7CD+M+W-u;P=V(M^6!ClLXK#bKRSOxfZetz`_@V_2>f zsCn$c!KW|TAKJ})yVhi7=52`sxvO{1KKSYLrw6>+{fDkF7%}@xyDX_xniY2HyrzJI zS#$e?LmmvBADeI2%d}M4d9BS#dER?SF5OV`?Q_A0mzV<-9|)Qqc+A|dx`Z|2)iW-2 zF$M+cL&;1EFIVk4eVP4GZCJoQ^NH=pa+4c`btZgDGgz6rh;_w;4;>jILQ0bvZi>hy z%4O_1Wpm;1g0#j@+fx#Fwur>+Q|{cJYPC;tR#}Yt5r?R0?t29KUi}IEdE0V{-Wje6 zF5Zcp4LLmh35{PEmu#DVT-b)$i+`v8$Gh!oLq296=uJ5JEK93GfM<(C6hkDZzoMcM z$Aq&FFLDZG8b>U6r1c?u)n29!9-5XNP*)Va%dzoSx}xac z5OEvH2DgU&TJ?seyZE?$LHOtm^Vzy(^+D0pf%L-GsFWtIUD5UfnV}C{JVgXSOh1mz4A0Ap^ z<#aV8%U@{HgNxf7UNHn-y~$vcrl7^(VAj&k5U@zI-ZbtU*WXoDcF9GyR~`xM6+4kt z(c_dNq%ixCGS6dm4Zg?G-*f|HkEOe8k(1jiwqoytgH?(j80~9)QkWE^4=YC~C^Ky3 zx2a;t%CB(ocHy4r*pS25uh?*lUoNVli?v^_gNH%H>|;?Y6aUq%Zb`dz0)8KA&O0O= zBz-Ks=|$3EXYRn?Od&58?z$y2L67^&zYhs>o^n3)*>cI|f{DlWjPuN$+>4jYG<~Wn zTB$edq?>N}wK|5a>NaZ^Z>N9oA)c<)+XKDJjMN3$zt6|RuyZ`yN$sI zgJ=Dp*?MDN=7dWu9eHg#13q*#{H#6ISo)jc%DoQ>>sj4W&92F(XzqG0=5c(<{F776 z7Fc}fFb!xrQPt4J$iHpITgIB7!Ur~-n*Vy6a`+F|`P1f3XZkmLeiwJYl*=`y5S@xm zYkPODW2-+JVZCWl#B!IzMIKl5H|yGX2}H67OnfLPb-GRA<$S(*LN(H>_Xb=2((iaT zo9DpsVy!Ix)5>c_j=9?9tEp{bQ?NcTIk&KOGXI~a$p^*l3q_cz)VK=F*IFu7weo_h{5LKC6_=pG6nB3@P>=2r`OIw#FEw10v*z6T zS|?wvcJ9`<8*i0zu}|oID7bW@b4s1J+qx%ndF68I6B(>H9!zw8azL5oKuC4_7Tw8} z4SY%!MnNAGqLhy3N)|_7ih0Ih#qm&3`u>F(*Lpg?++Fx~GvmGsr-h?_1VpMQ9Ju~@ zK3nsPW(m2}jxXzTOOMT1ZrX5uU(O*32U!L=OBX(yTxIJ|Z)SYq-TsSlmu||VjdH8! zsT&u^$}M@niI$_OileIx=6<38W-!Qy%*Xfq!%`zE9 ztt%=Ecb-jHBAE31+-DDO;fE8CCGBFIrMS_-MsQZn$F^8GTLzUWpZcH2@80Oivu11B z3{OVmm14lDUy3)$Ymqb0LvA=eGu5?n^q~yBdK_5$Tm0IiB5vF&#kADz&u~v9N=42zo0JqaU zJ+EqGS+=J#*=)4kDR8k=>|oR<+0&o4*oobBe{S$^UgtvJ7rR`(FWt9z#*?}$@A!i3 z76%BuJ0|nNrGv{j{EJbc=G)Wj?+T}shzN*YV4k4=`jAY6 zOkI@d1#W?;1$+DI`k35wCooSq+~>o1oXOGwZJ_1_+lw_9AMZLvk{OA!(p7xum@v~J6lb^DWra-^j{S|RvdGpbN!ds z6+;T75+C?HU|`R4iI`#%?n&8uSQc<8>yQ;cJwQ+IRN3a0Bv`((e&c3gPM z`P~<`Kec!A_#c?N&Aswb9xE8$$*|!>%=79lxvIez|;` zruf(gK!^PY0R|Wc8%09hw`P|+Qj~pUzN<7-kJc&(xwsiQO|HoE8 zSCd0bVm?(ivY?b47@DNbi;=;lIFEOX(9dG^d zJx`8v8HtLXn``jczx$5eeb0{(A}&T8MOimf1FP@?^lkg>||kZY7t{s z7Z;TKbNIiq!w+j+mopQJ&%dwzGxKm*_x&j%3XeoyUx_+dq4Vu&{PT0W#26;sv|en? z*z&7t-F(CJjn`jWYYO&nwR_;O!+Xbj^Sm7ycW1AzSF7VQELIehE8*tgI`>(@;Ya)b zt?^3TfBL@ib>?HA1*e0GRxncD|`Rv=fd!5w!3Vy zodlI~A6a$%J^7+5YI@JEhu1dl{Uv8;I@ixxN$jxrGr{PSs!5-xpWFHU;T^^8Zf;jX zOX4{Mvvi|m&oX5)2%SD!?3&?nTKSoJ?D68`caC2-vPdE(%oA=@7jlM6wU7R~{*Y+c<`)3)a3T62*Go7{UnskXFVVnM) zU@@JUM-AVEtmR%BtSRYoyZ%qzt8Q;GyUBB#4+Jv&y>K?C_w7XaWCa=4@E$q)kDHwP z|MXiXZ53FQqO?vje0Sutg+C|f?{jaLHolUzn(@%<>UU8az7$VOWuK5W!!KRo(dC%W zueIk%{JDEQ{{4w_&ItzBBOl2Js_}@o%oVKVv)^<5h4lNn`KggIoZOu1evV|T zUS{XNvGs_LSOW<=;G;ZtC!^T1;>De70v| zwvY1vemm`{uM_!&i{Zg9@AQ)RMKO=M9FEq<)}Q{ckGU^;%4+4PoF2ugLfjv2+}W+> zv*}WABecJyveNT>Jm*K+?KKQUG+E&Z+XZuRC!`9SR}0R_oRMMdwb z`OFSJyDMggou)UF%gUOLioV-h9=x0Fw+&>D0QcS9>}vj%3~M?3Y=V~Fs;v&!t4(+{ zMdrKf)a}jluDm+7Zg={(=Bcr}pVr6vSA6B;w-7k#xw5jn@3^V=9N%q6KyH!N()Lz6 zUy)INZF=z6_tVzf?R@rhzfRoj()cd!iV*Qv7V4dOYyM2i&Xc(I|3>h?Mb}Ii7j5BL z^kk3qvGTKeo*K2xhqicyF}0NYz4*4XKmS9;9`{REOlJCAJF`FiQNH5D14nHO|L3Nc z##iR??74U9wtU4CdAa`Q;!y&fuX|306rDbF(wzT{UWXRDmx=7+!oH~t4_zWE?!+1| zFMoZpTdU*V*00Ci=hr=PoYUmqP@s5zlH2SnYb0)dOgo}j^HfxL`JG#f-#;|Z3}w<4 z)DwKWer09J&pnZwH<>S172Y_Fx#SGz|C`^}OiYgBWAU!eHr-`;Y0KZW>C=1fd^&4x z@x8fla%$af36>c;!p~a@!d)u=FYbR=`tE6cgrp8{<}1nEzMT5>r^eHBe*Jm8mR;K+ z=|i~bmp|S9avxS-e#Y+AWE-1TC}^*&$yRr9+OxT{?V`$WSLd($$Hc(rVU}NB_Fc6! z`Osm$jMlb4|C)sRBrPf&-TYtvU}1i_Wx@09|NnjXRvurUs?3nU(^WlFcjL3Ls0G(n zR_rPMC0BSwk@@`If|AP6s{!k;UvEx~Fq_x$cFq0$|L68!TT_+ydYbNz*Yex_x{B?m zvDB*RIvQ^7mi|)^5_)la{r^1X^OA*;mDBaofA0A=&*pq#r%O%v-$v&5bziP!pU?lB zXuNM8``07(r=ML~!@_ZP-42D0-eYe!?wId!r>AYMVqVfA)ij=2f^vJJFT_V1z0px) zR6D(G>AWzemg{2XiyyMpn(TkHEuv6f&`Ig8UFV06*)wFmtE!)yRu#o5U>1KXgNLcG zR5CqGP)CvF6jQUBSaTY?T&{7dwe4Cq4=%x7dN2Fj1QlNLS+JbiXj39^)9L&-29Fkx zJ4ZEaE>67aafeg=T|@DMh1^q$woZAadG%6}?QL!atH?Q<`K(y~$@4WRhP->vEy=*Z Oz~JfX=d#Wzp$P!!H@=Gi literal 0 HcmV?d00001 diff --git a/prebuilts/gradle/AutofillFramework/afservice/src/main/res/mipmap-xxxhdpi/ic_launcher.png b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100755 index 0000000000000000000000000000000000000000..b64a676bbbdc8d1ae6132e84e57c22ee168fca41 GIT binary patch literal 9672 zcmeAS@N?(olHy`uVBq!ia0y~yU^oE69Bd2>3_*8t*cliU7(87ZLn`9l#+f8S?NeQr;IA~mQbyPei(52vEnDB3l!;8)(iYhBKS%jSZIra(*s0cVPa|JG1 zp`hTxvSjIW-)(#E*5*F@KezJzyVl9rsjqIf=cM6|YF5erNF!fhSX%ho0*ZtZe4vTtXG{GL8*QKPoOdYs=led8y9N zYntcQpS5-?R`=SNZ9rddrEKL6QDt;c}WN3(Of5AD&;^HG&M+W{m zvotT2pPgg*RrKrOeM}7XPoX=+{VJ!Ex2B?(m~*Wbk2hKzsBPFe`h}8 zzVmt+m#1HxMg1vNentjA$w`D5yy$Y1l>*85` zuusQ-dEl#1g?T(nw9g8@|5>k@+E|sNFXHm1xGLjnn$}{D;FOX%4{yjU<#qTe;qcE` z<0Si%I{y9dw`jPt1eC??vG)+&-Z;fd?1@IhB~FGNNAfpZS{WeYGVvqVpDVjGi$o-? zA1<19Ji2d%vgWq31O6MFKP_($3z9ex&djhc+|e&q*VOKdV&LmM!`mzYv(*2~ILzZ- zxlBMqw(Pa>1a*nKf7L>#X}Oy=2FbY|b`2Pi}i`kdn~_t2{P3GmvBgE zyHfC9C@WVZy`3RwRpuw9`B$oVPwdb;e7eH=X+Y}AqLA>wQ;SaoG`e2pKK#IS?-V0V zBeOROk58_M<2(?~Z*=AUoBWyrE71iZOdczjc?Q>Rc%2rosBF!q30oh#tkMbX%VJw< z)78VUf8%k>U;bSUI=p+1-T(1mt%y(nhr-r;i~5o!tKRBPu-00!VdJ#LQn~CFWv8}W zn{e%P;Oix)0>239?$?~TWYxNi^v8);56k~P(8UtQa^Sw|&dfvFlQwZLe`sM_cEDlk z(o=!H3#PbF+~}OJC{O9_Mj3Cd3m>}j4}5-X%woVZMU=7Tw!P)&1OIq0ZqHn+sM-*6 z;Ra*hT%*dD9&0CSxnK0&^5=_*SJT_KyzIPpK9^g#W>p9r?qPV8huZf3`osDMAHL&sFm>DVXV*Tl z%>L9{leH&INz5&{FzfxyTon_ghFiZLXEpDs{gdX|6jjb5@SyyuJ!9SN2jQ~=S)*#0 zuk)N-bLmx{y1BB00K=hEeIIq#HM!5bFRHsg{a*1YDoL3s;aBtR z3hk+~kISvp8!~>*{q4t7@sc?%*)#LNtU88-9pT427-pUo69_Epx&Kb5gXzz?Khr9` zm)Q1Qns;aV62@#c28MO_9;I#l;_5T&cn?FO&FNKdB=%peQ(*n^_P5XHHU@j~56Oy` z8cdswSPqzU_%Pf#eVSv#(KrLvA8&tZyGJ$5m;PbQa^SW4Ms^3L2OEQe_z!RdtbHS~ zf2LdjW8JRxB`T~xb~f2NH{4}du$O^F;DPu9cm9CF1JQo>e_v`aZB<~nDxojq(kkof z-qj;3y=C!QMTUou8Jm7H{$OKzAXnBoSIWC-*Xgi(Y!iMkEO^b&uqp1i_tpMYi|2mQ zs9QGec=Wl5?MwmN{F$_z$vBDss>Car;+5@X)a>0sK%!ih-M#4P_L5ks#c~1;4e{5%Pdv?VsG@n{ z_I{;ur{C8q1BCyqUZ&*bqhVB5vK&-UEK1(ycaCL&)aC0@|28wOQY-SQJkz}9MDB%c zm1bAM9z^nk)QTh+N@i8=d8%RcZOvq5#udlD7=B>yXIinB@%^%eF6>X9_<5AAZ4UY4 zJ>hBCSK0aN#r`b3s~BL(RZ}-dcT?SyCuJFTEm&VE&(>*qd*tk{IH`wSt&KI&mVyWR zgja3~vGfX9!MFUH=aj>l=i1sY7ylCTU-bF@g`0n5RIL87b*-tNKj}%ggGP}>%WJ>Z zgs1<)T%8s@&ds=MA}jT}_lxSS#K_>ETmSeZ^RZYQY+fsHl!Irh-zph~D}RI(N?J5) zo;)$@c(;Q;DR+IOPjc3)sZ9dwEag^7=`+MLm>WykU(EGhu==TGM$QSHRi)jxHZ;31 zfW3N3@_M8LlgQx@N?ZR#tgTmZ_#3-yrN7ZP%`JKR1fTq<>NYi~z0c}Y?Qr(N%?Ilx zGCP3AH-`we9KP-@+`NS6Qv%iw>bJO zQ^SLUZC%SAy-6=REF0z9O{%`s9=bGdUjEWlX3=WL zyC0U`lwD%!TK=|5#%k8IuRp?{t1LLyvt5Rj`P-{69Sq;5ESTXsdEpiBi3^21{k1t4 z-1lPe{6FhT#qX$$yEfh0KOz&iI!|}l@JiwCrpa^PuiESIE_pu7p1CeRno7Du5%WhUhu0Gr~4!7)XxvMKq zu>XljP}n1Xh41kCrLXMQO6!GwmwY&xyAEc6){0cg(}gb>j|pyf3YfZ7!Y_C2%F>{x z9J?X~78GB<{OaJ;FNgX6WHPy;>&*^^$ye_k=lJte1?-W7=bw}+7vJS_VOZ6y z(Kg-SN8r}3LWZl?C8Q>)GQ@uf=A6*=&^>U?{5GpsU52LHLM*fI&f%;0>ZQlPSRobn z=)v*o>O&T684qc~aK7i+h*$xV9PpxXS#l{CiW)d?p7Q%bmhe*XLhX7ERKv&*LoJy5)CY zhw0@bCvGdODGYF8S->z`DLL2V;_1kZuU;~U9=}<)c24|@8)o8i+ZP z1mV+rJJy!YRCQv=cCCE(e}kypoT8i^$3Ju|Uc2d(hsCu&A|+;b^Em(gDLK(OamtU| zxi>OWr!g>UbOoinvFZ@eFuQ;6gF-|7iig~9Z;Lf6y{^@tW9RBM^ZEHuhkW}9`zCqa z%UOFqoP8?uGO1f4`O&O%Z;MO(nJ3SGW$CuIU5$RxYs5D$opv%+@yuC?hD92#$DBVT zUle1x@$=`)hVsHJ`FYxVsx-FTx-_TOy}ngEf6D5+eu zj8mTQ1?^k&Z0?thh2=BzivPtteW5wQ_`~bT2fA+roxURfPGkbu8LVvfjSRc(?3MEc zaw_g^XF1Tn>n9U4XY+%~$`yr9_r4ss0a9-w^IAMhz$b8uQZUO0Yo&&Lx_$=^?|z!@ zP~yap{%d)1Sg`L*rKL#?@_bwum;-tio%mq9Yqzbzjqv%`<05>TzrA7flK=D4uwk#< z0p1@o?az8T9A$`?sqkUw3KWst=eC-0VUzsscWv!H;)gb|Xz+hn{PW)fg%y$?qYvLv zxYzcY;iX6i`wy_LdYK9ju&#e@x0&|OVhZHg;4AKP?tt@m?p%+Hn{DpgZnkA;WjOc6 zyg%~%yoRjR>=qyL6nm0HT#qp?e!Jxl&!uTBC*nEF?iD@S)~fKMxw=W;z~ice?Y0>| zWELDhy6std#pawd?DpP`Yd9`!RjwDvv6GvDh3z+KaGYnkV?k$MR z&-kXY+peK+t$EX&J4ub+f2ZBoX1c*@fBEn%mXJLGnYV)bl);hi#q(!HU$5K&!5_?D z1NPq5eX#yUx5&|uH_93JYu28-8T)OQ2Q?$WbQ7fIUEk4C~bPM z-H}24!SQk>=6c43vkbQ_>ey@|dwWfJwv=qz!Kn{s2_D<+xRRv+R96IiOgf!gc}RxC zU|NCNj4YnezKkuiw;X>a;o$l84xjHufzJ;dj%ut3%rDtixh25U>Gm9GBh=cuKt4Zy?KzIX%W`Yy1T$6e)|vHng#<45 z=-go-@VSE_q#*EVhg%h6U8(kw!^@%-SFl{TeIxAZf2|cOej8pqFfVE2wDbkV$0xn3 z-?D43f0f}#*s|I<#8ynHxo6*-jJ)dO z*W#V_{N-OYLH2|4gpKSQoEw~)_Xnsv@L|wev9d^&p^lHm;Pxe*pV=LEvv6^tqRw8)J~886Ycs1aXG$BMn<=t>)ujI- zn(Rz}8a4<_Go6*UsWnA0s!rUNK~~^q?A(Q~3 zVth8~kn8rVmOo}H?ePpyV7d?`IB9#Re9-B|ry>Qer13kjyZoD$b~2v-;E8g@fJ%lR zf0!@-tSi!1*?q6o<+t>L6KmHU^jAKx%7;HePITAWcL(3Ia&kE^SSzRmEV%H%eQJ(C z10P5E@1LJ-r@l|$EOOY2b(0#y-LSd`&wZKtIWKS@$ZuvSaS##zV^hVjYwe$d=O?qs z2`!l35Fg7?eWXay$MdCp=auZ0naTFm)zw?R2Cz-ft7-^hu-6x=aA}BRsoTnKpzd&b zy8X4C;vV{Qwd+ow-%{k&5X5B9FI3^s5XV-R$D$$o!P>XcOYqN{?W=jLXDdDRX^7*f z(__)l{a~%=pxHeCD~q4Ufr$)zMgFYg45)e#&M6?naP{yRu|u0SJ3M8mTdwlJr6G=| zE}TWf_e1h6g@;}SjSNp&>eN*pI5Zd@nVN7&X1`Uko2qcAo;7d!x<=2+KDL8Px$Ew9 zDLl*z;AT29D?|HW=6273>fU3TwCkBJu@8xAC*;q z&e@(t51-M1(}S}A_;_N^)B)`mN+dOe@5=_zZS zv5-hV!&9cZtJR4fS9RFxkD9NUc$r%zXk+PxonM6*R97bZRyN)5U^%Mj5ZP$|cGtHb ziUE6X$NbuOv`DpSQp35omldx53|r5{@I*g|z{_qH1yz+g)rjJR7le?dC)|@HZ=CI~xo`+lb_o@%Z z%oAB!l^ygM>TeZtZP^mOykEENJ9~VB!8)zTM{)m^Z@v8VNiHsUZdjCNq3Dm5H-1le zQxR*MH}n6L@^k0k7)Ckr@&A3DH{&6bgE+$z-l`s_MnQgNhpn5MH;670Z=7$rWv6R? z!-=}D-weFd83*3EZY^t=d~P!@+j%S2 zsgLXGmTL-`zP&i@d_B(v_Jix+aX6~8V%ExN4uTvvLnpW%b89urIWGk28OZ&UK5v|2yi%`vf`=b^z7Wr(h|W8j;n*W z{P`ALSC`D-%QZz@@6!#2s|#6XD>>_~-k@@F(t%rS)_YscADn*`kyl+^w0PCsmKEvU zujL%fq?kEAJU3jk^=uAvY*b9c{7c4{r1T%l?zs8=@Zp$uY`(eHeHI*M0kd30UWZM# ztJ4VMpSbOyj_fA$^Zv|@*YvMFc{Nve|Gech^kak-c8YQ~l)p_~rN}s|wUsN!X~W5{ zmtIZr(41*(v~}C_e$Fcm894@*FZta%{AL4N{k7wJHQ&D6wn}>bjkAybUy@rV^KKKn zN1kn6v02{D4Uvy0GP!j17z@k_Iu%uUtc=UJGFxi%?N8OVa^V=J z6;khtv|VaG7fLcMnd`Az{H&XRuA-Z6_x3qUlcs&2qr~}Uscne#mbE)u=Sgk)erlS1 za@{UwhyR`pwi?QADdp2`56mdmD=}wNc;L~&!C&#T@oNA5*LlWs6dJ-83O*G(#N5Qt z`eDlhV=Lid@3s!rs#@vaq>%4Is}%jt$VaDaNR!s4}a(T z#JuEZ;S-G$lhZKgUoz=r{hz|4&FZ_A4op;^XSaLTwttg~jN@Kt+g!MJYtNVU`gX;O zgPB4eh$nrsda%Ly`;GE1+=u2KVt)FpQQxlS{}TUuzkk~sv2@)0=`zXwbLSF{I`_Y~ z)#sPihn9Z5`1BdW!u(t7JZ3Ptyat|9XeR5EeYu@&3uJ*mU(yNDj?)9@I z%=hqp5$m7f#xRX7G?k-4WrfX)-N|Y$ucXym4?SG)g4c_ip*B=H=j-Fx*v^dN%bV)g zM*h`cNa*f=aNJ&Y=C%0mcGa8x&61_A{N0=IhS4aw>BEQoH@nYIu>H16NnnkIg#b^J z{R8%s&&$8?-rOf;lDNH?U!#kuYfe*$5$j18rb(SQtY`20@#NcA`Pv`%&m@Sm@4fLU z+kV2_>Hik6rLi2izd`&!2*+_I3k5f!2loxxx!&wMUswHAe%tRI4l9zjoPRFOCX|q` zDEE*t-*$mRyUuCpNgr?gwl=Hz`Dyz9zYiv#5mEOmO?usbz#XLh>&5@GI$0SnaJ*rS z&^qGLpm2QsiN^|()f`g}+K06$S*Ctbbmz4zy5rfeo>XXDG;7*Y4T0Fg>xY6DU(}G& zmzyrf;jYv;KhE%Rd6!PI@{2El_i8_HExun_eAaC_YsS4~^Nz&Tef1y0l4PEgr3T5d z)tP->eEU~0L$|^adyWzo8>ab!4FCJ~GW!d82(Oz{7I(Pepm@^tX&sCIeVd=LPp16MS2TFO#oXNX$CFE{--X|wGXJzv z?#IT3&L51K9@Gokc<@XyKfhn6Zw* z>SL9Bje5TO0n^X<)tUl4y$Sm|jwfxqys*N(+sudA*LGzeFJB^dpX12U zp0%%@Wasb9-l+2P^QHMQM++FzT$*HWZ@=^X#G{=%c>1IlOkl|2UZeb6Mu;_-ug?CGi9co^^?g{s;9-6Kkf2)m9(Dw;Ts8cU9)u21NJE= zCUkKIKd)gD;#nxtcX!=ApCkAG{W#Ts?ccxF@5U?_^csV^M2&vQUC8TPY5R*^{ayJL ze*d_c+Fildt~72`IXG?k`yDT{XPf07V(U65!><&Q!?fb%`7f;7dt19siNC$E{DjdG zlb`8IV!zMl?%(n23(t>2eh$CRhYJ?2(Cv|(?G-Yum$^Vunk;tW};oM?Oy$yF#k+?$43SR)@IOJ0N}-Z7N$ zGX^^K&ppU4TlnSr@p+~n`Q4&33+}Q>t8aE^Tw3||_3EN z$+CCNugz{)%(VR%QgrCh%R`o-`0<9t&6?Mo9sE{#s{cl&?uD1E>GbEw}hWw!l(b65SBvsPOzH$lqu*8@TI zx%Drzg*H$yAi~H`**?*>_H1N`bBtZq+{Wb{>M|)mBdw(itWr4`L za~Z#9MX%p2^FCeMQISL~lzqyJBhdX7m3wv$rPQe6-y4*W(klWpSsxo9m1+ zPf058x6G1TDlnDhr>*0oY4hW)0*VWkKG<7k$k`yhX4Nv?xNq~$KbLnaOj_5o=)~Oq z`}-cu_&UF~P36$l_`{d~`<)Vh|D(iBw*>h!*!?dTp z-OGIK6pA}okLT95G0gbCnt9df{FsvT(%8F_)9zgs%(#2?%cWRzzxlI_e+N%lcct@R z>JPr#QWtHdO)9_nc4tXT`7gND^xCXz(y_`dYyZyN{p?RoQQG6Az_8ZttIQ?$ZORX| zeD1&dKib_+)$?1(!D&y{UXQbT{Z)Ma-*mrU$(0;UQaXy$pEL3ZePg=2+41z0$qD?Wf400V{Q79g>t}Z(@7EuYSS2j@ z$2WTWo{INPuhX-(**&-?zwv8hd{2*;SO5J>?#Wlz3W}fmarMtJ$7cU6!u#j?-j0v` z_d4>%ui0_2FSc49RdFcS-t_$5;r3?^#!k+J?i(k`F!iK$mV9~m5bpS{>^ zepIBa<$?G7W{*0|XL`MTlaXKf{PX{sA5JTeu8*)~m>rxZ{vj#+l-}J#^~vcyTNP8c zGdxHvFZ(H|SF>@Y|HjXo3s_#5e$*CYGzeKEdT=8{+0r-s|LV)Ga$V;C{$+!FJfAERE6QR>c=$B5-F>|>iZM6iC@_E zZ^plb)#u+eB(Chg@gpo^-jiee$;Xps-0psUtp8{L_rFC)*3V!$P>?yd!|$-Y2b(eb zqRR%nN#Fl + + #3F51B5 + #303F9F + #FF4081 + diff --git a/prebuilts/gradle/AutofillFramework/afservice/src/main/res/values/dimens.xml b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/values/dimens.xml new file mode 100644 index 00000000..d451580d --- /dev/null +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/values/dimens.xml @@ -0,0 +1,10 @@ + + + 16dp + 16dp + 16dp + 8dp + 32dp + 48dp + 250sp + \ No newline at end of file diff --git a/prebuilts/gradle/AutofillFramework/afservice/src/main/res/values/strings.xml b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/values/strings.xml new file mode 100644 index 00000000..b9b5e371 --- /dev/null +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/values/strings.xml @@ -0,0 +1,78 @@ + + Invalid package signature + Could not associate web domain %1$s with app %2$s + Tap to sign in. + Autofill Settings + Cancel + Save + Authenticate responses + Authenticate Datasets + Add fake Autofill data + Add Autofill Datasets + Select number of Datasets. + + Added %d Dataset. + Added %d Datasets. + + Clear all autofill data (including credentials) + Are you sure you want to delete all autofill + data from the sample service? + + Confirmation + Authentication + Data + Update credentials + Enter current password + Enter new password + Change credentials + Number of Datasets + Autofill Master Login + Password + Cancel + Login + Ok + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + + + + 1 + 2 + 3 + 4 + 5 + 6 + 7 + 8 + 9 + 10 + 11 + 12 + 13 + 14 + 15 + 16 + 17 + 18 + 19 + 20 + 21 + 22 + 23 + 24 + 25 + 26 + 27 + + diff --git a/prebuilts/gradle/AutofillFramework/afservice/src/main/res/values/styles.xml b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/values/styles.xml new file mode 100644 index 00000000..b954cb67 --- /dev/null +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/values/styles.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + diff --git a/prebuilts/gradle/AutofillFramework/Application/src/main/res/xml/multidataset_service.xml b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/xml/multidataset_service.xml similarity index 89% rename from prebuilts/gradle/AutofillFramework/Application/src/main/res/xml/multidataset_service.xml rename to prebuilts/gradle/AutofillFramework/afservice/src/main/res/xml/multidataset_service.xml index 0c1c14d0..88768151 100644 --- a/prebuilts/gradle/AutofillFramework/Application/src/main/res/xml/multidataset_service.xml +++ b/prebuilts/gradle/AutofillFramework/afservice/src/main/res/xml/multidataset_service.xml @@ -21,4 +21,4 @@ Settings Activity. This is pointed to in the service's meta-data in the applicat --> \ No newline at end of file + android:settingsActivity="com.example.android.autofill.service.settings.SettingsActivity"/> \ No newline at end of file diff --git a/prebuilts/gradle/AutofillFramework/build.gradle b/prebuilts/gradle/AutofillFramework/build.gradle index d00ad15b..ef010b9b 100644 --- a/prebuilts/gradle/AutofillFramework/build.gradle +++ b/prebuilts/gradle/AutofillFramework/build.gradle @@ -1,23 +1,19 @@ // Top-level build file where you can add configuration options common to all sub-projects/modules. buildscript { - repositories { - jcenter() - maven { - url 'https://maven.google.com' + repositories { + jcenter() + google() + } + dependencies { + classpath 'com.android.tools.build:gradle:3.0.0' } - } - dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' - } } allprojects { - repositories { - jcenter() - maven { - url 'https://maven.google.com' + repositories { + jcenter() + google() } - } } @@ -30,3 +26,4 @@ allprojects { + diff --git a/prebuilts/gradle/AutofillFramework/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/AutofillFramework/gradle/wrapper/gradle-wrapper.properties index 63426264..15b344db 100644 --- a/prebuilts/gradle/AutofillFramework/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/AutofillFramework/gradle/wrapper/gradle-wrapper.properties @@ -1,6 +1,6 @@ -#Fri Jul 28 14:29:44 PDT 2017 +#Thu Oct 26 11:55:14 PDT 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip diff --git a/prebuilts/gradle/AutofillFramework/kotlinApp/README.md b/prebuilts/gradle/AutofillFramework/kotlinApp/README.md index 282a1ea2..4b58f47a 100644 --- a/prebuilts/gradle/AutofillFramework/kotlinApp/README.md +++ b/prebuilts/gradle/AutofillFramework/kotlinApp/README.md @@ -1,11 +1,15 @@ -Android AutofillFramework Sample -=================================== +Android AutofillFramework Sample (Kotlin) +========================================= This sample demonstrates the use of the Autofill Framework. It includes implementations of client Activities with views that should be autofilled, and a Service that can provide autofill data to client Activities. +Maintainer's Note +------------------ +**IMPORTANT:** The Kotlin version of this sample is temporarily out of date. Until this is corrected, you should reference the Java version instead. + Introduction ------------ diff --git a/prebuilts/gradle/AutofillFramework/kotlinApp/build.gradle b/prebuilts/gradle/AutofillFramework/kotlinApp/build.gradle index 6fc4282b..7eb0dddc 100644 --- a/prebuilts/gradle/AutofillFramework/kotlinApp/build.gradle +++ b/prebuilts/gradle/AutofillFramework/kotlinApp/build.gradle @@ -7,7 +7,7 @@ buildscript { } ext.kotlin_version = '1.1.4-3' dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.0' classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version" } } diff --git a/prebuilts/gradle/AutofillFramework/kotlinApp/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/AutofillFramework/kotlinApp/gradle/wrapper/gradle-wrapper.properties index cb80c871..34facd6b 100644 --- a/prebuilts/gradle/AutofillFramework/kotlinApp/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/AutofillFramework/kotlinApp/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.1-milestone-1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip diff --git a/prebuilts/gradle/AutofillFramework/settings.gradle b/prebuilts/gradle/AutofillFramework/settings.gradle index 9464a359..2d0eb20e 100644 --- a/prebuilts/gradle/AutofillFramework/settings.gradle +++ b/prebuilts/gradle/AutofillFramework/settings.gradle @@ -1 +1,2 @@ +include ':afservice' include 'Application' diff --git a/prebuilts/gradle/BasicAccessibility/Application/build.gradle b/prebuilts/gradle/BasicAccessibility/Application/build.gradle index 271193cf..fd94bf07 100644 --- a/prebuilts/gradle/BasicAccessibility/Application/build.gradle +++ b/prebuilts/gradle/BasicAccessibility/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:gridlayout-v7:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:gridlayout-v7:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 11 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BasicAccessibility/LICENSE b/prebuilts/gradle/BasicAccessibility/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicAccessibility/LICENSE +++ b/prebuilts/gradle/BasicAccessibility/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicAccessibility/README.md b/prebuilts/gradle/BasicAccessibility/README.md index 95842162..7db7442f 100644 --- a/prebuilts/gradle/BasicAccessibility/README.md +++ b/prebuilts/gradle/BasicAccessibility/README.md @@ -20,8 +20,8 @@ description of the in-focus widget. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BasicAccessibility/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicAccessibility/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BasicAccessibility/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicAccessibility/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BasicAndroidKeyStore/Application/build.gradle b/prebuilts/gradle/BasicAndroidKeyStore/Application/build.gradle index 43e4f90b..aa618ba7 100644 --- a/prebuilts/gradle/BasicAndroidKeyStore/Application/build.gradle +++ b/prebuilts/gradle/BasicAndroidKeyStore/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 18 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BasicAndroidKeyStore/LICENSE b/prebuilts/gradle/BasicAndroidKeyStore/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicAndroidKeyStore/LICENSE +++ b/prebuilts/gradle/BasicAndroidKeyStore/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicAndroidKeyStore/README.md b/prebuilts/gradle/BasicAndroidKeyStore/README.md index 21e8208d..8363820e 100644 --- a/prebuilts/gradle/BasicAndroidKeyStore/README.md +++ b/prebuilts/gradle/BasicAndroidKeyStore/README.md @@ -30,8 +30,8 @@ Next to that appropriate exception handling for potential errors is being displa Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BasicAndroidKeyStore/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicAndroidKeyStore/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BasicAndroidKeyStore/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicAndroidKeyStore/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BasicContactables/Application/build.gradle b/prebuilts/gradle/BasicContactables/Application/build.gradle index 3d2b3885..ed08786a 100644 --- a/prebuilts/gradle/BasicContactables/Application/build.gradle +++ b/prebuilts/gradle/BasicContactables/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,10 +33,9 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 18 diff --git a/prebuilts/gradle/BasicContactables/LICENSE b/prebuilts/gradle/BasicContactables/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicContactables/LICENSE +++ b/prebuilts/gradle/BasicContactables/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicContactables/README.md b/prebuilts/gradle/BasicContactables/README.md index 57847639..2670a3fa 100644 --- a/prebuilts/gradle/BasicContactables/README.md +++ b/prebuilts/gradle/BasicContactables/README.md @@ -25,8 +25,8 @@ For details on how to query the contacts provider, refer to the [Contacts Provid Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BasicContactables/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicContactables/gradle/wrapper/gradle-wrapper.properties index cc77d430..566aa3bf 100644 --- a/prebuilts/gradle/BasicContactables/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicContactables/gradle/wrapper/gradle-wrapper.properties @@ -4,4 +4,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BasicGestureDetect/Application/build.gradle b/prebuilts/gradle/BasicGestureDetect/Application/build.gradle index 43e4f90b..aa618ba7 100644 --- a/prebuilts/gradle/BasicGestureDetect/Application/build.gradle +++ b/prebuilts/gradle/BasicGestureDetect/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 18 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BasicGestureDetect/LICENSE b/prebuilts/gradle/BasicGestureDetect/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicGestureDetect/LICENSE +++ b/prebuilts/gradle/BasicGestureDetect/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicGestureDetect/README.md b/prebuilts/gradle/BasicGestureDetect/README.md index 3edbcb1a..717ab9f3 100644 --- a/prebuilts/gradle/BasicGestureDetect/README.md +++ b/prebuilts/gradle/BasicGestureDetect/README.md @@ -24,8 +24,8 @@ that sends all motion events to the gesture detector. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BasicGestureDetect/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicGestureDetect/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BasicGestureDetect/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicGestureDetect/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BasicImmersiveMode/Application/build.gradle b/prebuilts/gradle/BasicImmersiveMode/Application/build.gradle index 1728dc8a..7a89aa14 100644 --- a/prebuilts/gradle/BasicImmersiveMode/Application/build.gradle +++ b/prebuilts/gradle/BasicImmersiveMode/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 19 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BasicImmersiveMode/LICENSE b/prebuilts/gradle/BasicImmersiveMode/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicImmersiveMode/LICENSE +++ b/prebuilts/gradle/BasicImmersiveMode/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicImmersiveMode/README.md b/prebuilts/gradle/BasicImmersiveMode/README.md index 55e7b40e..0be80e17 100644 --- a/prebuilts/gradle/BasicImmersiveMode/README.md +++ b/prebuilts/gradle/BasicImmersiveMode/README.md @@ -19,8 +19,8 @@ SYSTEM_UI_FLAG_IMMERSIVE system ui flag. When combined with the SYSTEM_UI_FLAG_H Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BasicImmersiveMode/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicImmersiveMode/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BasicImmersiveMode/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicImmersiveMode/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BasicManagedProfile/Application/build.gradle b/prebuilts/gradle/BasicManagedProfile/Application/build.gradle index e5ed7ff9..3cdc07d1 100644 --- a/prebuilts/gradle/BasicManagedProfile/Application/build.gradle +++ b/prebuilts/gradle/BasicManagedProfile/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 21 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BasicManagedProfile/LICENSE b/prebuilts/gradle/BasicManagedProfile/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicManagedProfile/LICENSE +++ b/prebuilts/gradle/BasicManagedProfile/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicManagedProfile/README.md b/prebuilts/gradle/BasicManagedProfile/README.md index d293ccbb..034644d9 100644 --- a/prebuilts/gradle/BasicManagedProfile/README.md +++ b/prebuilts/gradle/BasicManagedProfile/README.md @@ -38,8 +38,8 @@ app is now set up as a profile owner. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BasicManagedProfile/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicManagedProfile/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BasicManagedProfile/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicManagedProfile/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BasicMediaDecoder/Application/build.gradle b/prebuilts/gradle/BasicMediaDecoder/Application/build.gradle index ead34cdf..e15d9d9d 100644 --- a/prebuilts/gradle/BasicMediaDecoder/Application/build.gradle +++ b/prebuilts/gradle/BasicMediaDecoder/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 17 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BasicMediaDecoder/LICENSE b/prebuilts/gradle/BasicMediaDecoder/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicMediaDecoder/LICENSE +++ b/prebuilts/gradle/BasicMediaDecoder/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicMediaDecoder/README.md b/prebuilts/gradle/BasicMediaDecoder/README.md index 1341d6de..2b85fffe 100644 --- a/prebuilts/gradle/BasicMediaDecoder/README.md +++ b/prebuilts/gradle/BasicMediaDecoder/README.md @@ -54,8 +54,8 @@ MediaExtractor instance. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BasicMediaDecoder/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicMediaDecoder/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BasicMediaDecoder/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicMediaDecoder/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BasicMediaRouter/Application/build.gradle b/prebuilts/gradle/BasicMediaRouter/Application/build.gradle index ead34cdf..e15d9d9d 100644 --- a/prebuilts/gradle/BasicMediaRouter/Application/build.gradle +++ b/prebuilts/gradle/BasicMediaRouter/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 17 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BasicMediaRouter/LICENSE b/prebuilts/gradle/BasicMediaRouter/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicMediaRouter/LICENSE +++ b/prebuilts/gradle/BasicMediaRouter/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicMediaRouter/README.md b/prebuilts/gradle/BasicMediaRouter/README.md index 90566a9a..92c368c1 100644 --- a/prebuilts/gradle/BasicMediaRouter/README.md +++ b/prebuilts/gradle/BasicMediaRouter/README.md @@ -14,8 +14,8 @@ Once connected, use the "Change Color" button to change the background color of Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Getting Started diff --git a/prebuilts/gradle/BasicMediaRouter/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicMediaRouter/gradle/wrapper/gradle-wrapper.properties index 7ec3018d..21e2affd 100644 --- a/prebuilts/gradle/BasicMediaRouter/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicMediaRouter/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BasicMultitouch/Application/build.gradle b/prebuilts/gradle/BasicMultitouch/Application/build.gradle index a0b28586..053ed091 100644 --- a/prebuilts/gradle/BasicMultitouch/Application/build.gradle +++ b/prebuilts/gradle/BasicMultitouch/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:gridlayout-v7:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:gridlayout-v7:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 8 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BasicMultitouch/LICENSE b/prebuilts/gradle/BasicMultitouch/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicMultitouch/LICENSE +++ b/prebuilts/gradle/BasicMultitouch/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicMultitouch/README.md b/prebuilts/gradle/BasicMultitouch/README.md index 750adc3a..365d0373 100644 --- a/prebuilts/gradle/BasicMultitouch/README.md +++ b/prebuilts/gradle/BasicMultitouch/README.md @@ -29,8 +29,8 @@ touch. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BasicMultitouch/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicMultitouch/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BasicMultitouch/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicMultitouch/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BasicNetworking/Application/build.gradle b/prebuilts/gradle/BasicNetworking/Application/build.gradle index 43f40416..f292a70d 100644 --- a/prebuilts/gradle/BasicNetworking/Application/build.gradle +++ b/prebuilts/gradle/BasicNetworking/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:gridlayout-v7:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:gridlayout-v7:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 7 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BasicNetworking/LICENSE b/prebuilts/gradle/BasicNetworking/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicNetworking/LICENSE +++ b/prebuilts/gradle/BasicNetworking/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicNetworking/README.md b/prebuilts/gradle/BasicNetworking/README.md index ff1df317..29a85b6d 100644 --- a/prebuilts/gradle/BasicNetworking/README.md +++ b/prebuilts/gradle/BasicNetworking/README.md @@ -22,8 +22,8 @@ in actual production code. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BasicNetworking/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicNetworking/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BasicNetworking/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicNetworking/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BasicNotifications/Application/build.gradle b/prebuilts/gradle/BasicNotifications/Application/build.gradle index a0b28586..053ed091 100644 --- a/prebuilts/gradle/BasicNotifications/Application/build.gradle +++ b/prebuilts/gradle/BasicNotifications/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:gridlayout-v7:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:gridlayout-v7:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 8 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BasicNotifications/LICENSE b/prebuilts/gradle/BasicNotifications/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicNotifications/LICENSE +++ b/prebuilts/gradle/BasicNotifications/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicNotifications/README.md b/prebuilts/gradle/BasicNotifications/README.md index 4ba4216d..3c4d2eb8 100644 --- a/prebuilts/gradle/BasicNotifications/README.md +++ b/prebuilts/gradle/BasicNotifications/README.md @@ -53,8 +53,8 @@ notificationManager.notify(NOTIFICATION_ID, builder.build()); Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BasicNotifications/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicNotifications/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BasicNotifications/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicNotifications/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BasicRenderScript/Application/build.gradle b/prebuilts/gradle/BasicRenderScript/Application/build.gradle index e27b918a..d4344b8a 100644 --- a/prebuilts/gradle/BasicRenderScript/Application/build.gradle +++ b/prebuilts/gradle/BasicRenderScript/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:gridlayout-v7:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:gridlayout-v7:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" compile files('renderscript-v8.jar') } @@ -35,14 +34,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 8 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BasicRenderScript/LICENSE b/prebuilts/gradle/BasicRenderScript/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicRenderScript/LICENSE +++ b/prebuilts/gradle/BasicRenderScript/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicRenderScript/README.md b/prebuilts/gradle/BasicRenderScript/README.md index 46be8453..196d20c2 100644 --- a/prebuilts/gradle/BasicRenderScript/README.md +++ b/prebuilts/gradle/BasicRenderScript/README.md @@ -28,8 +28,8 @@ RGB value and it's luminance (black-and-white) value, weighted based on the user Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BasicRenderScript/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicRenderScript/gradle/wrapper/gradle-wrapper.properties index ff55c68f..3aae9a03 100644 --- a/prebuilts/gradle/BasicRenderScript/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicRenderScript/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BasicSyncAdapter/Application/build.gradle b/prebuilts/gradle/BasicSyncAdapter/Application/build.gradle index 43f40416..f292a70d 100644 --- a/prebuilts/gradle/BasicSyncAdapter/Application/build.gradle +++ b/prebuilts/gradle/BasicSyncAdapter/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:gridlayout-v7:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:gridlayout-v7:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 7 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BasicSyncAdapter/LICENSE b/prebuilts/gradle/BasicSyncAdapter/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicSyncAdapter/LICENSE +++ b/prebuilts/gradle/BasicSyncAdapter/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicSyncAdapter/README.md b/prebuilts/gradle/BasicSyncAdapter/README.md index 5ea72806..3d9fe84b 100644 --- a/prebuilts/gradle/BasicSyncAdapter/README.md +++ b/prebuilts/gradle/BasicSyncAdapter/README.md @@ -28,8 +28,8 @@ For more on SyncAdapters refer to [Transferring Data Using Sync Adapters][1] Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BasicSyncAdapter/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicSyncAdapter/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BasicSyncAdapter/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicSyncAdapter/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BasicTransition/Application/build.gradle b/prebuilts/gradle/BasicTransition/Application/build.gradle index 1728dc8a..7a89aa14 100644 --- a/prebuilts/gradle/BasicTransition/Application/build.gradle +++ b/prebuilts/gradle/BasicTransition/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 19 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BasicTransition/LICENSE b/prebuilts/gradle/BasicTransition/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BasicTransition/LICENSE +++ b/prebuilts/gradle/BasicTransition/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BasicTransition/README.md b/prebuilts/gradle/BasicTransition/README.md index d7defb7c..244f82fd 100644 --- a/prebuilts/gradle/BasicTransition/README.md +++ b/prebuilts/gradle/BasicTransition/README.md @@ -33,8 +33,8 @@ take place. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BasicTransition/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BasicTransition/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BasicTransition/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BasicTransition/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BatchStepSensor/Application/build.gradle b/prebuilts/gradle/BatchStepSensor/Application/build.gradle index 1728dc8a..7a89aa14 100644 --- a/prebuilts/gradle/BatchStepSensor/Application/build.gradle +++ b/prebuilts/gradle/BatchStepSensor/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 19 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BatchStepSensor/LICENSE b/prebuilts/gradle/BatchStepSensor/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BatchStepSensor/LICENSE +++ b/prebuilts/gradle/BatchStepSensor/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BatchStepSensor/README.md b/prebuilts/gradle/BatchStepSensor/README.md index 81515eed..639357c5 100644 --- a/prebuilts/gradle/BatchStepSensor/README.md +++ b/prebuilts/gradle/BatchStepSensor/README.md @@ -31,8 +31,8 @@ covered in this sample. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BatchStepSensor/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BatchStepSensor/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BatchStepSensor/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BatchStepSensor/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BeamLargeFiles/Application/build.gradle b/prebuilts/gradle/BeamLargeFiles/Application/build.gradle index 7473a108..32bd4902 100644 --- a/prebuilts/gradle/BeamLargeFiles/Application/build.gradle +++ b/prebuilts/gradle/BeamLargeFiles/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 16 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BeamLargeFiles/LICENSE b/prebuilts/gradle/BeamLargeFiles/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BeamLargeFiles/LICENSE +++ b/prebuilts/gradle/BeamLargeFiles/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BeamLargeFiles/README.md b/prebuilts/gradle/BeamLargeFiles/README.md index ddcea6d9..77d2a834 100644 --- a/prebuilts/gradle/BeamLargeFiles/README.md +++ b/prebuilts/gradle/BeamLargeFiles/README.md @@ -15,8 +15,8 @@ the file using a standard ACTION_VIEW Intent. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Getting Started diff --git a/prebuilts/gradle/BeamLargeFiles/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BeamLargeFiles/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BeamLargeFiles/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BeamLargeFiles/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BluetoothAdvertisements/Application/build.gradle b/prebuilts/gradle/BluetoothAdvertisements/Application/build.gradle index e5ed7ff9..3cdc07d1 100644 --- a/prebuilts/gradle/BluetoothAdvertisements/Application/build.gradle +++ b/prebuilts/gradle/BluetoothAdvertisements/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 21 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BluetoothAdvertisements/LICENSE b/prebuilts/gradle/BluetoothAdvertisements/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BluetoothAdvertisements/LICENSE +++ b/prebuilts/gradle/BluetoothAdvertisements/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BluetoothAdvertisements/README.md b/prebuilts/gradle/BluetoothAdvertisements/README.md index 625b2d74..a803b692 100644 --- a/prebuilts/gradle/BluetoothAdvertisements/README.md +++ b/prebuilts/gradle/BluetoothAdvertisements/README.md @@ -29,8 +29,8 @@ sample in action. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BluetoothAdvertisements/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BluetoothAdvertisements/gradle/wrapper/gradle-wrapper.properties index 75cf0fd8..20f6c5a6 100644 --- a/prebuilts/gradle/BluetoothAdvertisements/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BluetoothAdvertisements/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BluetoothChat/Application/build.gradle b/prebuilts/gradle/BluetoothChat/Application/build.gradle index 271193cf..fd94bf07 100644 --- a/prebuilts/gradle/BluetoothChat/Application/build.gradle +++ b/prebuilts/gradle/BluetoothChat/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:gridlayout-v7:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:gridlayout-v7:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 11 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BluetoothChat/LICENSE b/prebuilts/gradle/BluetoothChat/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BluetoothChat/LICENSE +++ b/prebuilts/gradle/BluetoothChat/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BluetoothChat/README.md b/prebuilts/gradle/BluetoothChat/README.md index 77f2e272..18852555 100644 --- a/prebuilts/gradle/BluetoothChat/README.md +++ b/prebuilts/gradle/BluetoothChat/README.md @@ -32,8 +32,8 @@ The sample demonstrates the following, using the [Bluetooth API][1]: Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BluetoothChat/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BluetoothChat/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BluetoothChat/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BluetoothChat/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BluetoothLeGatt/Application/build.gradle b/prebuilts/gradle/BluetoothLeGatt/Application/build.gradle index 43e4f90b..aa618ba7 100644 --- a/prebuilts/gradle/BluetoothLeGatt/Application/build.gradle +++ b/prebuilts/gradle/BluetoothLeGatt/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 18 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BluetoothLeGatt/LICENSE b/prebuilts/gradle/BluetoothLeGatt/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BluetoothLeGatt/LICENSE +++ b/prebuilts/gradle/BluetoothLeGatt/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BluetoothLeGatt/README.md b/prebuilts/gradle/BluetoothLeGatt/README.md index 96eb7c51..e21a8f08 100644 --- a/prebuilts/gradle/BluetoothLeGatt/README.md +++ b/prebuilts/gradle/BluetoothLeGatt/README.md @@ -23,8 +23,8 @@ The Activities communicate with the Service, which in turn interacts with the [B Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BluetoothLeGatt/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BluetoothLeGatt/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BluetoothLeGatt/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BluetoothLeGatt/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/BorderlessButtons/Application/build.gradle b/prebuilts/gradle/BorderlessButtons/Application/build.gradle index 9267a5ec..d0982153 100644 --- a/prebuilts/gradle/BorderlessButtons/Application/build.gradle +++ b/prebuilts/gradle/BorderlessButtons/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 14 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/BorderlessButtons/LICENSE b/prebuilts/gradle/BorderlessButtons/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/BorderlessButtons/LICENSE +++ b/prebuilts/gradle/BorderlessButtons/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/BorderlessButtons/README.md b/prebuilts/gradle/BorderlessButtons/README.md index 94639552..ad610d50 100644 --- a/prebuilts/gradle/BorderlessButtons/README.md +++ b/prebuilts/gradle/BorderlessButtons/README.md @@ -24,8 +24,8 @@ Styles are directly applied to widgets in their XML layout definitions. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/BorderlessButtons/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/BorderlessButtons/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/BorderlessButtons/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/BorderlessButtons/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/Camera2Basic/Application/build.gradle b/prebuilts/gradle/Camera2Basic/Application/build.gradle index 2438762a..3cdc07d1 100644 --- a/prebuilts/gradle/Camera2Basic/Application/build.gradle +++ b/prebuilts/gradle/Camera2Basic/Application/build.gradle @@ -1,14 +1,12 @@ buildscript { repositories { - maven { - url 'https://maven.google.com' - } jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:3.0.0' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -16,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:27.0.0" - compile "com.android.support:support-v13:27.0.0" - compile "com.android.support:cardview-v7:27.0.0" - compile "com.android.support:appcompat-v7:27.0.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -37,10 +33,9 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 27 + compileSdkVersion 27 - buildToolsVersion "26.0.2" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 21 diff --git a/prebuilts/gradle/Camera2Basic/LICENSE b/prebuilts/gradle/Camera2Basic/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/Camera2Basic/LICENSE +++ b/prebuilts/gradle/Camera2Basic/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/Camera2Basic/README.md b/prebuilts/gradle/Camera2Basic/README.md index 2293c93e..e93c5a6b 100644 --- a/prebuilts/gradle/Camera2Basic/README.md +++ b/prebuilts/gradle/Camera2Basic/README.md @@ -43,7 +43,7 @@ Pre-requisites -------------- - Android SDK 27 -- Android Build Tools v26.0.2 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/Camera2Basic/kotlinApp/.google/packaging.yaml b/prebuilts/gradle/Camera2Basic/kotlinApp/.google/packaging.yaml new file mode 100644 index 00000000..93824850 --- /dev/null +++ b/prebuilts/gradle/Camera2Basic/kotlinApp/.google/packaging.yaml @@ -0,0 +1,23 @@ + +# GOOGLE SAMPLE PACKAGING DATA +# +# This file is used by Google as part of our samples packaging process. +# End users may safely ignore this file. It has no relevance to other systems. +--- +status: PUBLISHED +technologies: [Android] +categories: [Media, Camera, Camera2] +languages: [Kotlin] +solutions: [Mobile] +github: android-Camera2Basic +level: INTERMEDIATE +icon: screenshots/icon-web.png +apiRefs: + - android:android.hardware.camera2.CameraManager + - android:android.hardware.camera2.CameraDevice + - android:android.hardware.camera2.CameraCharacteristics + - android:android.hardware.camera2.CameraCaptureSession + - android:android.hardware.camera2.CaptureRequest + - android:android.hardware.camera2.CaptureResult + - android:android.view.TextureView +license: apache2 diff --git a/prebuilts/gradle/Camera2Basic/kotlinApp/README.md b/prebuilts/gradle/Camera2Basic/kotlinApp/README.md index a24faa55..c0069434 100644 --- a/prebuilts/gradle/Camera2Basic/kotlinApp/README.md +++ b/prebuilts/gradle/Camera2Basic/kotlinApp/README.md @@ -41,8 +41,7 @@ when you are done. Pre-requisites -------------- -- Android SDK 25 -- Android Build Tools v25.0.3 +- Android SDK 27 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/Camera2Raw/Application/build.gradle b/prebuilts/gradle/Camera2Raw/Application/build.gradle index e5ed7ff9..3cdc07d1 100644 --- a/prebuilts/gradle/Camera2Raw/Application/build.gradle +++ b/prebuilts/gradle/Camera2Raw/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 21 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/Camera2Raw/Application/src/main/java/com/example/android/camera2raw/Camera2RawFragment.java b/prebuilts/gradle/Camera2Raw/Application/src/main/java/com/example/android/camera2raw/Camera2RawFragment.java index aed21600..d28c7fc2 100644 --- a/prebuilts/gradle/Camera2Raw/Application/src/main/java/com/example/android/camera2raw/Camera2RawFragment.java +++ b/prebuilts/gradle/Camera2Raw/Application/src/main/java/com/example/android/camera2raw/Camera2RawFragment.java @@ -1743,7 +1743,7 @@ public class Camera2RawFragment extends Fragment // Calculate desired JPEG orientation relative to camera orientation to make // the image upright relative to the device orientation - return (sensorOrientation + deviceOrientation + 360) % 360; + return (sensorOrientation - deviceOrientation + 360) % 360; } /** diff --git a/prebuilts/gradle/Camera2Raw/LICENSE b/prebuilts/gradle/Camera2Raw/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/Camera2Raw/LICENSE +++ b/prebuilts/gradle/Camera2Raw/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/Camera2Raw/README.md b/prebuilts/gradle/Camera2Raw/README.md index a110bc72..043210e9 100644 --- a/prebuilts/gradle/Camera2Raw/README.md +++ b/prebuilts/gradle/Camera2Raw/README.md @@ -26,8 +26,8 @@ file for each image captured. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/Camera2Raw/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/Camera2Raw/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/Camera2Raw/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/Camera2Raw/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/Camera2Video/Application/build.gradle b/prebuilts/gradle/Camera2Video/Application/build.gradle index e5ed7ff9..3cdc07d1 100644 --- a/prebuilts/gradle/Camera2Video/Application/build.gradle +++ b/prebuilts/gradle/Camera2Video/Application/build.gradle @@ -2,10 +2,11 @@ buildscript { repositories { jcenter() + google() } dependencies { - classpath 'com.android.tools.build:gradle:2.3.3' + classpath 'com.android.tools.build:gradle:3.0.1' } } @@ -13,16 +14,14 @@ apply plugin: 'com.android.application' repositories { jcenter() - maven { - url 'https://maven.google.com' - } + google() } dependencies { - compile "com.android.support:support-v4:26.1.0" - compile "com.android.support:support-v13:26.1.0" - compile "com.android.support:cardview-v7:26.1.0" - compile "com.android.support:appcompat-v7:26.1.0" + compile "com.android.support:support-v4:27.0.2" + compile "com.android.support:support-v13:27.0.2" + compile "com.android.support:cardview-v7:27.0.2" + compile "com.android.support:appcompat-v7:27.0.2" } // The sample build uses multiple directories to @@ -34,14 +33,13 @@ List dirs = [ 'template'] // boilerplate code that is generated by the sample template process android { - - compileSdkVersion 26 + compileSdkVersion 27 - buildToolsVersion "26.0.1" + buildToolsVersion "27.0.2" defaultConfig { minSdkVersion 21 - targetSdkVersion 26 + targetSdkVersion 27 } compileOptions { diff --git a/prebuilts/gradle/Camera2Video/LICENSE b/prebuilts/gradle/Camera2Video/LICENSE index 4f229463..d5cf8f3a 100644 --- a/prebuilts/gradle/Camera2Video/LICENSE +++ b/prebuilts/gradle/Camera2Video/LICENSE @@ -201,447 +201,3 @@ Apache License WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. - -All image and audio files (including *.png, *.jpg, *.svg, *.mp3, *.wav -and *.ogg) are licensed under the CC-BY-NC license. All other files are -licensed under the Apache 2 license. - -CC-BY-NC License ----------------- - -Attribution-NonCommercial-ShareAlike 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More_considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International -Public License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial-ShareAlike 4.0 International Public License -("Public License"). To the extent this Public License may be -interpreted as a contract, You are granted the Licensed Rights in -consideration of Your acceptance of these terms and conditions, and the -Licensor grants You such rights in consideration of benefits the -Licensor receives from making the Licensed Material available under -these terms and conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. BY-NC-SA Compatible License means a license listed at - creativecommons.org/compatiblelicenses, approved by Creative - Commons as essentially the equivalent of this Public License. - - d. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - - e. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - f. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - g. License Elements means the license attributes listed in the name - of a Creative Commons Public License. The License Elements of this - Public License are Attribution, NonCommercial, and ShareAlike. - - h. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - i. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - j. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - k. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - l. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - m. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - n. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. Additional offer from the Licensor -- Adapted Material. - Every recipient of Adapted Material from You - automatically receives an offer from the Licensor to - exercise the Licensed Rights in the Adapted Material - under the conditions of the Adapter's License You apply. - - c. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - b. ShareAlike. - - In addition to the conditions in Section 3(a), if You Share - Adapted Material You produce, the following conditions also apply. - - 1. The Adapter's License You apply must be a Creative Commons - license with the same License Elements, this version or - later, or a BY-NC-SA Compatible License. - - 2. You must include the text of, or the URI or hyperlink to, the - Adapter's License You apply. You may satisfy this condition - in any reasonable manner based on the medium, means, and - context in which You Share Adapted Material. - - 3. You may not offer or impose any additional or different terms - or conditions on, or apply any Effective Technological - Measures to, Adapted Material that restrict exercise of the - rights granted under the Adapter's License You apply. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material, - including for purposes of Section 3(b); and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public licenses. -Notwithstanding, Creative Commons may elect to apply one of its public -licenses to material it publishes and in those instances will be -considered the "Licensor." Except for the limited purpose of indicating -that material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the public -licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/prebuilts/gradle/Camera2Video/README.md b/prebuilts/gradle/Camera2Video/README.md index ec8ec0c8..74628958 100644 --- a/prebuilts/gradle/Camera2Video/README.md +++ b/prebuilts/gradle/Camera2Video/README.md @@ -43,8 +43,8 @@ your MediaRecorder instance. Pre-requisites -------------- -- Android SDK 26 -- Android Build Tools v26.0.1 +- Android SDK 27 +- Android Build Tools v27.0.2 - Android Support Repository Screenshots diff --git a/prebuilts/gradle/Camera2Video/gradle/wrapper/gradle-wrapper.properties b/prebuilts/gradle/Camera2Video/gradle/wrapper/gradle-wrapper.properties index 4da4a580..86fc139a 100644 --- a/prebuilts/gradle/Camera2Video/gradle/wrapper/gradle-wrapper.properties +++ b/prebuilts/gradle/Camera2Video/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-3.4.1-all.zip \ No newline at end of file +distributionUrl=https\://services.gradle.org/distributions/gradle-4.4-all.zip \ No newline at end of file diff --git a/prebuilts/gradle/Camera2Video/kotlinApp/.google/packaging.yaml b/prebuilts/gradle/Camera2Video/kotlinApp/.google/packaging.yaml new file mode 100644 index 00000000..583ad7f8 --- /dev/null +++ b/prebuilts/gradle/Camera2Video/kotlinApp/.google/packaging.yaml @@ -0,0 +1,19 @@ + +# GOOGLE SAMPLE PACKAGING DATA +# +# This file is used by Google as part of our samples packaging process. +# End users may safely ignore this file. It has no relevance to other systems. +--- +status: PUBLISHED +technologies: [Android] +categories: [Media] +languages: [Kotlin] +solutions: [Mobile] +github: android-Camera2Video +level: ADVANCED +icon: screenshots/icon-web.png +apiRefs: + - android:android.hardware.camera2.CameraCaptureSession + - android:android.hardware.camera2.CameraDevice + - android:android.view.TextureView +license: apache2 diff --git a/prebuilts/gradle/Camera2Video/kotlinApp/Application/build.gradle b/prebuilts/gradle/Camera2Video/kotlinApp/Application/build.gradle new file mode 100644 index 00000000..1d01e7e0 --- /dev/null +++ b/prebuilts/gradle/Camera2Video/kotlinApp/Application/build.gradle @@ -0,0 +1,25 @@ +apply plugin: 'com.android.application' +apply plugin: 'kotlin-android' +apply plugin: 'kotlin-android-extensions' + +android { + compileSdkVersion 27 + defaultConfig { + applicationId "com.example.android.camera2video" + minSdkVersion 24 + targetSdkVersion 27 + versionCode 1 + versionName "1.0" + } + buildTypes { + release { + minifyEnabled false + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' + } + } +} + +dependencies { + implementation "com.android.support:appcompat-v7:27.0.2" + implementation "org.jetbrains.kotlin:kotlin-stdlib-jre7:$kotlin_version" +} \ No newline at end of file diff --git a/prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/AndroidManifest.xml b/prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/AndroidManifest.xml new file mode 100644 index 00000000..acc9d114 --- /dev/null +++ b/prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/AndroidManifest.xml @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/AutoFitTextureView.kt b/prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/AutoFitTextureView.kt new file mode 100644 index 00000000..a871bd8c --- /dev/null +++ b/prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/AutoFitTextureView.kt @@ -0,0 +1,68 @@ +/* + * Copyright 2017 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.android.camera2video + +import android.content.Context +import android.util.AttributeSet +import android.view.TextureView +import android.view.View + +/** + * A [TextureView] that can be adjusted to a specified aspect ratio. + */ +class AutoFitTextureView @JvmOverloads constructor( + context: Context, + attrs: AttributeSet? = null, + defStyle: Int = 0 +) : TextureView(context, attrs, defStyle) { + + private var ratioWidth = 0 + private var ratioHeight = 0 + + /** + * Sets the aspect ratio for this view. The size of the view will be measured based on the ratio + * calculated from the parameters. Note that the actual sizes of parameters don't matter, that + * is, calling setAspectRatio(2, 3) and setAspectRatio(4, 6) make the same result. + * + * @param width Relative horizontal size + * @param height Relative vertical size + */ + fun setAspectRatio(width: Int, height: Int) { + if (width < 0 || height < 0) { + throw IllegalArgumentException("Size cannot be negative.") + } + ratioWidth = width + ratioHeight = height + requestLayout() + } + + override fun onMeasure(widthMeasureSpec: Int, heightMeasureSpec: Int) { + super.onMeasure(widthMeasureSpec, heightMeasureSpec) + val width = View.MeasureSpec.getSize(widthMeasureSpec) + val height = View.MeasureSpec.getSize(heightMeasureSpec) + if (ratioWidth == 0 || ratioHeight == 0) { + setMeasuredDimension(width, height) + } else { + if (width < ((height * ratioWidth) / ratioHeight)) { + setMeasuredDimension(width, (width * ratioHeight) / ratioWidth) + } else { + setMeasuredDimension((height * ratioWidth) / ratioHeight, height) + } + } + } + +} diff --git a/prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/Camera2VideoFragment.kt b/prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/Camera2VideoFragment.kt new file mode 100644 index 00000000..a361c0b1 --- /dev/null +++ b/prebuilts/gradle/Camera2Video/kotlinApp/Application/src/main/java/com/example/android/camera2video/Camera2VideoFragment.kt @@ -0,0 +1,627 @@ +/* + * Copyright 2017 The Android Open Source Project + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.android.camera2video + +import android.annotation.SuppressLint +import android.app.AlertDialog +import android.content.Context +import android.content.pm.PackageManager.PERMISSION_GRANTED +import android.content.res.Configuration +import android.graphics.Matrix +import android.graphics.RectF +import android.graphics.SurfaceTexture +import android.hardware.camera2.CameraAccessException +import android.hardware.camera2.CameraCaptureSession +import android.hardware.camera2.CameraCharacteristics.SCALER_STREAM_CONFIGURATION_MAP +import android.hardware.camera2.CameraCharacteristics.SENSOR_ORIENTATION +import android.hardware.camera2.CameraDevice +import android.hardware.camera2.CameraDevice.TEMPLATE_PREVIEW +import android.hardware.camera2.CameraDevice.TEMPLATE_RECORD +import android.hardware.camera2.CameraManager +import android.hardware.camera2.CameraMetadata +import android.hardware.camera2.CaptureRequest +import android.media.MediaRecorder +import android.os.Bundle +import android.os.Handler +import android.os.HandlerThread +import android.support.v4.app.ActivityCompat +import android.support.v4.app.Fragment +import android.support.v4.app.FragmentActivity +import android.support.v4.content.ContextCompat.checkSelfPermission +import android.util.Log +import android.util.Size +import android.util.SparseIntArray +import android.view.LayoutInflater +import android.view.Surface +import android.view.TextureView +import android.view.View +import android.view.ViewGroup +import android.widget.Button +import android.widget.Toast +import android.widget.Toast.LENGTH_SHORT +import java.io.IOException +import java.util.Collections +import java.util.concurrent.Semaphore +import java.util.concurrent.TimeUnit +import kotlin.collections.ArrayList + +class Camera2VideoFragment : Fragment(), View.OnClickListener, + ActivityCompat.OnRequestPermissionsResultCallback { + + private val FRAGMENT_DIALOG = "dialog" + private val TAG = "Camera2VideoFragment" + private val SENSOR_ORIENTATION_DEFAULT_DEGREES = 90 + private val SENSOR_ORIENTATION_INVERSE_DEGREES = 270 + private val DEFAULT_ORIENTATIONS = SparseIntArray().apply { + append(Surface.ROTATION_0, 90) + append(Surface.ROTATION_90, 0) + append(Surface.ROTATION_180, 270) + append(Surface.ROTATION_270, 180) + } + private val INVERSE_ORIENTATIONS = SparseIntArray().apply { + append(Surface.ROTATION_0, 270) + append(Surface.ROTATION_90, 180) + append(Surface.ROTATION_180, 90) + append(Surface.ROTATION_270, 0) + } + + /** + * [TextureView.SurfaceTextureListener] handles several lifecycle events on a + * [TextureView]. + */ + private val surfaceTextureListener = object : TextureView.SurfaceTextureListener { + + override fun onSurfaceTextureAvailable(texture: SurfaceTexture, width: Int, height: Int) { + openCamera(width, height) + } + + override fun onSurfaceTextureSizeChanged(texture: SurfaceTexture, width: Int, height: Int) { + configureTransform(width, height) + } + + override fun onSurfaceTextureDestroyed(surfaceTexture: SurfaceTexture) = true + + override fun onSurfaceTextureUpdated(surfaceTexture: SurfaceTexture) = Unit + + } + + /** + * An [AutoFitTextureView] for camera preview. + */ + private lateinit var textureView: AutoFitTextureView + + /** + * Button to record video + */ + private lateinit var videoButton: Button + + /** + * A reference to the opened [android.hardware.camera2.CameraDevice]. + */ + private var cameraDevice: CameraDevice? = null + + /** + * A reference to the current [android.hardware.camera2.CameraCaptureSession] for + * preview. + */ + private var captureSession: CameraCaptureSession? = null + + /** + * The [android.util.Size] of camera preview. + */ + private lateinit var previewSize: Size + + /** + * The [android.util.Size] of video recording. + */ + private lateinit var videoSize: Size + + /** + * Whether the app is recording video now + */ + private var isRecordingVideo = false + + /** + * An additional thread for running tasks that shouldn't block the UI. + */ + private var backgroundThread: HandlerThread? = null + + /** + * A [Handler] for running tasks in the background. + */ + private var backgroundHandler: Handler? = null + + /** + * A [Semaphore] to prevent the app from exiting before closing the camera. + */ + private val cameraOpenCloseLock = Semaphore(1) + + /** + * [CaptureRequest.Builder] for the camera preview + */ + private lateinit var previewRequestBuilder: CaptureRequest.Builder + + /** + * Orientation of the camera sensor + */ + private var sensorOrientation = 0 + + /** + * [CameraDevice.StateCallback] is called when [CameraDevice] changes its status. + */ + private val stateCallback = object : CameraDevice.StateCallback() { + + override fun onOpened(cameraDevice: CameraDevice) { + cameraOpenCloseLock.release() + this@Camera2VideoFragment.cameraDevice = cameraDevice + startPreview() + configureTransform(textureView.width, textureView.height) + } + + override fun onDisconnected(cameraDevice: CameraDevice) { + cameraOpenCloseLock.release() + cameraDevice.close() + this@Camera2VideoFragment.cameraDevice = null + } + + override fun onError(cameraDevice: CameraDevice, error: Int) { + cameraOpenCloseLock.release() + cameraDevice.close() + this@Camera2VideoFragment.cameraDevice = null + activity?.finish() + } + + } + + /** + * Output file for video + */ + private var nextVideoAbsolutePath: String? = null + + private var mediaRecorder: MediaRecorder? = null + + override fun onCreateView(inflater: LayoutInflater, + container: ViewGroup?, + savedInstanceState: Bundle? + ): View? = inflater.inflate(R.layout.fragment_camera2_video, container, false) + + override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + textureView = view.findViewById(R.id.texture) + videoButton = view.findViewById