Android-Entwicklungsnachrichten 15.02.2021

Hallo. Mein Name ist  Kirill Rozov  und wenn Sie an Android-Entwicklung interessiert sind, haben Sie wahrscheinlich von dem  Telegrammkanal "Android Broadcast" mit täglichen Nachrichten für Android-Entwickler und dem gleichnamigen  YouTube-Kanal gehört . Dieser Beitrag ist eine Textabschrift eines neuen Videos auf dem Kanal






Hallo! Eine weitere Woche ist zu Ende und ich habe die besten Nachrichten speziell für Sie gesammelt! Ein großer Teil der neuen stabilen Android Jetpack-Bibliotheken wurde veröffentlicht. IDEA kann jetzt auf CI ausgeführt werden. Am Ende erfahren Sie, wie Sie ein Ticket für Mobius gewinnen können! Ich bin Kirill Rozov, das ist Android Broadcast Channel. Lass es uns herausfinden!





AndroidX-Aktivität 1.2.0 | Aktivitätsergebnis-API

Die Activity 1.2.0-Bibliothek wurde veröffentlicht, in der die Activity Result API angezeigt wurde, die Möglichkeit, Context



vor dem Aufruf abzurufen onCreate()



, Unterstützung ViewTree



und auch den Backport der Methode reportFullyDrawn()



.





Activity Result API - API, onActivityResult() . callback ActivityResultContract, Activity. , . API , , onActivityResult()



.





- Context



onCreate()



, . Coroutine callback-a.





ViewTree



- ComponentActivity



API SavedState Lifecycle, .





  • AndroidX Activity 1.2.0





  • Activity Result API





Fragment 1.3.0

Fragment 1.3.0 , API, deprecated API, Fragment



.





, - Fragment-, , back stack-.





Activity Result API , , request callback- permission.





Fragment setTargetFragment - . API - Fragment Result API, FragmentManager Fragment- Callback.





" Fragment " - Google deprecated API. setRetainInstance() , ViewModel. FragmentPagerAdapter ViewPager 1 deprecated , . deprecation onAttachFragment() Activity Fragment. FragmentOnAttachListener, onAttachFragment().





  • AndroidX Fragment 1.3.0





  • Fragment Result





  • "Fragments: rebuilding the internals"





Lifecycle 2.3.0

Lifecycle 2.3.0 SavedStateHandle, Lifecycle, ViewTree API.





SavedStateHandle lazy , .. setSavedStateProvider() , , .





Lifecycle: DESTROYED - , . Lifecycle , . API,





ViewTree API, LifecycleOwner ViewModelStoreOwner View. API SavedStateRegistry savedstate 1.1.0





  • AndroidX Lifecycle 2.3.0





Kotlin Symbol Processing

Kotlin Symbol Processing (KSP) Room





KSP - kapt, . Google Kotlin , , Java apt Kotlin. KSP 2 kapt. . KSP





  • Kotlin Symbol Processing Alpha





IDEA CI

IDEA GUI CI





JetBrains - Qodana, CI . Qodana 2 : IDEA UI Web UI . pipeline. Teamcity, Docker GitHub Action Application. TeamCity. . EAP , .





  • JetBrains Qodana





  • Qodana ( )





Core App Quality

developers.android.com "App Quality",   Android .





, . checklist Android. :





















  • Google Play





.





  • "Core App Quality"





  • "Core App Quality"





2021

Kaspersky android feature , , feature . .





  • " Android 2021"






Mobius

  1. YouTube "Android Broadcast"





  2. Telegram "Android Broadcast"





  3. Telegram "Kotlin Broadcast"





  4. Telegram ( !!!)





  5. ,








All Articles