18. Requirement
• App Link
• Https connection only
• Android SDK 6.0
• Runtime permission if need
• Android studio 3.0
• Size Limit 4MB per bundle
• Code Signing v2
19. App Link
• Add intent-filter to your activity to handle url
• add assetlinks.json in your website .well-
known/ folder to certificate with SSL enable
22. Available Permission
• BILLING
• ACCESS_COARSE_LOCATION
• ACCESS_FINE_LOCATION
• ACCESS_NETWORK_STATE
• CAMERA
• INSTANT_APP_FOREGROUND_SERVICE (O only)
• INTERNET
• READ_PHONE_NUMBERS only in Android (O only)
• RECORD_AUDIO
• VIBRATE
23. Android Studio 3
• Google Maven Repository
• Gradle plugin 3.0+
• New Implementation & Api dependency
• Old Compile convert to Api
24. Implementation vs Api
// dependencies {
// compile 'com.google.dagger:dagger:2.7'
// }
dependencies {
implementation 'com.google.dagger:dagger:2.7'
}
dependencies {
api 'com.google.dagger:dagger:2.7'
}
34. Feature module
• New plugin type
• Generate lib in app build process
• Generate apk in instant app build
35. Base Feature
• Only one
• Contain common resource, lib … etc
• Defined by `baseFeature true` in build.gradle
• Bind with other feature & app (bi-direction)
54. Steps(single feature)
• Put code into feature module
• Add app module wrapper
• Add instant app module wrapper
• Link reference together
55. Steps(with base feature)
• Split feature into feature and base
• Move the `baseFeature true` flag to base
• Link reference together
56. Steps(with multi feature)
• Link baseFeature together
• Connect other module by URL
• Check the resource is not conflict
• Check if the zip file has multi-apk
57. Work with different
• compile ‘com.google.android.instantapps:instantapps:1.0.0’
• func App.isInstantApp(Context context)
• func showInstallPrompt(Activity activity, int
requestCode, String referrer)