nowinandroid 一个完全由 Kotlin 和 Jetpack Compose 构建的功能完整的 Android 应用程序。它遵循 Android 设计和开发的最佳实践,旨在为开发者提供有用的参考。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Go to file
Adetunji Dahunsi 28fec601ad
Add note about M1 compatibility
3 years ago
app Add staging build variant, move staging URL out of source control 3 years ago
app-nia-catalog Configure spotless for kts and xml files 3 years ago
benchmark Rename following to interests 3 years ago
build-logic Update compile and target API to 32 3 years ago
core-common Catch exceptions in the flow.asResult method 3 years ago
core-data Add AuthorScreen and corresponding components 3 years ago
core-data-test Configure spotless for kts and xml files 3 years ago
core-database Add AuthorScreen and corresponding components 3 years ago
core-datastore Fix release builds by adding proguard rule for DataStore 3 years ago
core-datastore-test Configure spotless for kts and xml files 3 years ago
core-model Add bio to AuthorEntity 3 years ago
core-network Add staging build variant, move staging URL out of source control 3 years ago
core-testing Add AuthorScreen and corresponding components 3 years ago
core-ui Add gradient background to For You Screen 3 years ago
feature-author Add AuthorScreen and corresponding components 3 years ago
feature-foryou Add gradient background to For You Screen 3 years ago
feature-interests Add AuthorScreen and corresponding components 3 years ago
feature-topic Adding image to topic detail screen. 3 years ago
gradle Add staging build variant, move staging URL out of source control 3 years ago
kokoro Add multi-column support for cards on the for you feed 3 years ago
spotless Configure spotless for kts and xml files 3 years ago
sync Configure spotless for kts and xml files 3 years ago
tools Switch to running check instead of build for pre-push hooks 3 years ago
.gitignore Add initial app scaffolding 3 years ago
CONTRIBUTING.md Add initial app scaffolding 3 years ago
LICENSE Add initial app scaffolding 3 years ago
README.md Add note about M1 compatibility 3 years ago
build.gradle.kts Add staging build variant, move staging URL out of source control 3 years ago
gradle.properties Build faster? 3 years ago
gradlew Replace buildSrc with version catalog 3 years ago
gradlew.bat Add initial app scaffolding 3 years ago
secrets.defaults.properties Add staging build variant, move staging URL out of source control 3 years ago
settings.gradle.kts Add AuthorScreen and corresponding components 3 years ago

README.md

Now in Android App [WIP]

This is the repository for the Now in Android app.

Now in Android is a fully functional Android app built entirely with Kotlin and Jetpack Compose. It follows Android design and development best practices and is intended to be a useful reference for developers. As a running app, it's intended to help developers keep up-to-date with the world of Android development by providing regular news updates.

Features

Now in Android displays content from the Now in Android series. Users can browse for links to recent videos, articles and other content. Users can also follow topics they are interested in or follow specific authors.

Development Environment

Now in Android uses the Gradle build system and can be imported directly into the latest stable version of Android Studio (available here). The debug build can be built and run using the default configuration.

Once you're up and running, you can refer to the learning journeys below to get a better understanding of which libraries and tools are being used, the reasoning behind the approaches to UI, testing, architecture and more, and how all of these different pieces of the project fit together to create a complete app.

NOTE: Building the app using an M1 Mac will require the use of Rosetta. See the following bug for more details.

Baseline profiles

The baseline profile for this app is located at app/src/main/baseline-prof.txt. It contains rules that enable AOT compilation of the critical user path taken during app launch. For more information on baseline profiles, read this document.

| Note: The baseline profile needs to be re-generated for release builds that touched code which | changes app startup.

To generate the baseline profile, select the benchmark build variant and run the BaselineProfileGenerator benchmark test on an AOSP Android Emulator. Then copy the resulting baseline profile from the emulator to app/src/main/baseline-prof.txt.

License

Now in Android is distributed under the terms of the Apache License (Version 2.0). See the license for more information.