Skip to content

Commit b610333

Browse files
committed
Generate two apks for pre-N and N
Bug: 27540589 Change-Id: Ic00f36ea06b666416dcb87fdf59c2078a0d8646c
1 parent 81eba87 commit b610333

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

app/build.gradle

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ android {
1919
defaultConfig {
2020
applicationId "com.afwsamples.testdpc"
2121
minSdkVersion 21
22-
targetSdkVersion 'N'
22+
targetSdkVersion 23
2323
versionCode versionMajor * 1000 + versionMinor * 100 + versionBuild
2424
versionName "${versionMajor}.${versionMinor}.${versionBuild}"
2525
}
@@ -47,6 +47,17 @@ android {
4747
dirs 'libs'
4848
}
4949
}
50+
51+
productFlavors {
52+
standard {
53+
targetSdkVersion 23
54+
}
55+
56+
N {
57+
targetSdkVersion 'N'
58+
}
59+
}
60+
5061
}
5162

5263
dependencies {

0 commit comments

Comments
 (0)