id top-level property

int id
getter/setter pair

android/app/build.gradle android/build.gradle 通知封装

Implementation

// android {
//   defaultConfig {
//     multiDexEnabled true
//   }

//   compileOptions {
//     // Flag to enable support for the new language APIs
//     coreLibraryDesugaringEnabled true
//     // Sets Java compatibility to Java 8
//     sourceCompatibility JavaVersion.VERSION_1_8
//     targetCompatibility JavaVersion.VERSION_1_8
//   }
// }

// dependencies {
//   coreLibraryDesugaring 'com.android.tools:desugar_jdk_libs:1.1.5'
// }

/// android/build.gradle
// buildscript {
//    ...
//   dependencies {
//       classpath 'com.android.tools.build:gradle:4.2.2'
//       ...
//   }
// dependencies {
//     implementation 'androidx.window:window:1.0.0'
//     implementation 'androidx.window:window-java:1.0.0'
//     ...
// }

// android/app/src/main/AndroidManifest.xml
// <activity
//   android:showWhenLocked="true"
//   android:turnScreenOn="true">

/// 通知封装
int id = 0;