Update build for N Developer Preview

- Add new samples to build.gradle
- Update non-template dependencies
- Use Java 8 for non-template dependencies

Change-Id: I759d194f0e42d20ded9e7b182c6305021ac737f6
diff --git a/build.gradle b/build.gradle
index 0bd39ef..45f0bf6 100644
--- a/build.gradle
+++ b/build.gradle
@@ -107,6 +107,8 @@
 "media/Camera2Raw",
 "content/AutoBackupForApps",
 "ui/window/MultiWindowPlayground",
+"content/documentsUi/ScopedDirectoryAccess",
+"security/DirectBoot",
 ]
 
 List<String> taskNames = [
diff --git a/content/documentsUi/ScopedDirectoryAccess/template-params.xml b/content/documentsUi/ScopedDirectoryAccess/template-params.xml
index 066d902..5c9bedb 100644
--- a/content/documentsUi/ScopedDirectoryAccess/template-params.xml
+++ b/content/documentsUi/ScopedDirectoryAccess/template-params.xml
@@ -17,7 +17,7 @@
 
 <sample>
     <name>ScopedDirectoryAccess</name>
-    <group>content</group>  <!-- This field will be deprecated in the future
+    <group>Android N Preview</group>  <!-- This field will be deprecated in the future
                             and replaced with the "categories" tags below. -->
     <package>com.example.android.scopeddirectoryaccess</package>
 
@@ -27,9 +27,9 @@
     <compileSdkVersion>"android-N"</compileSdkVersion>
 
     <!-- Include additional dependencies here.-->
-    <dependency>com.android.support:appcompat-v7:24.0.0-SNAPSHOT</dependency>
-    <dependency>com.android.support:recyclerview-v7:24.0.0-SNAPSHOT</dependency>
-    <dependency>com.android.support:support-v4:24.0.0-SNAPSHOT</dependency>
+    <dependency>com.android.support:appcompat-v7:24.0.0-alpha1</dependency>
+    <dependency>com.android.support:recyclerview-v7:24.0.0-alpha1</dependency>
+    <dependency>com.android.support:support-v4:24.0.0-alpha1</dependency>
 
     <template src="base" />
 
@@ -44,7 +44,7 @@
     </strings>
 
     <metadata>
-        <status>DRAFT</status>
+        <status>PUBLISHED</status>
         <categories>Android N Preview</categories>
         <technologies>Android</technologies>
         <languages>Java</languages>
diff --git a/security/DirectBoot/template-params.xml b/security/DirectBoot/template-params.xml
index cbec38f..d324ec4 100644
--- a/security/DirectBoot/template-params.xml
+++ b/security/DirectBoot/template-params.xml
@@ -17,7 +17,7 @@
 
 <sample>
     <name>DirectBoot</name>
-    <group>security</group>  <!-- This field will be deprecated in the future
+    <group>Android N Preview</group>  <!-- This field will be deprecated in the future
                             and replaced with the "categories" tags below. -->
     <package>com.example.android.directboot</package>
 
@@ -28,11 +28,11 @@
 
     <!-- Include additional dependencies here.-->
     <!-- dependency>com.google.android.gms:play-services:5.0.+</dependency -->
-    <dependency>com.android.support:appcompat-v7:24.0.0-SNAPSHOT</dependency>
-    <dependency>com.android.support:support-v4:24.0.0-SNAPSHOT</dependency>
-    <dependency>com.android.support:support-v13:24.0.0-SNAPSHOT</dependency>
-    <dependency>com.android.support:recyclerview-v7:24.0.0-SNAPSHOT</dependency>
-    <dependency>com.android.support:design:24.0.0-SNAPSHOT</dependency>
+    <dependency>com.android.support:appcompat-v7:24.0.0-alpha1</dependency>
+    <dependency>com.android.support:support-v4:24.0.0-alpha1</dependency>
+    <dependency>com.android.support:support-v13:24.0.0-alpha1</dependency>
+    <dependency>com.android.support:recyclerview-v7:24.0.0-alpha1</dependency>
+    <dependency>com.android.support:design:24.0.0-alpha1</dependency>
 
     <template src="base" />
 
@@ -48,7 +48,7 @@
     </strings>
 
     <metadata>
-        <status>DRAFT</status>
+        <status>PUBLISHED</status>
         <categories>Android N Preview</categories>
         <technologies>Android</technologies>
         <languages>Java</languages>
@@ -98,7 +98,7 @@
 - Device encrypted:
     - A new storage location which is always available while the device is booted, both before and after any user credentials are entered
 
-Apps can mark individual components as being encryption aware which indicates to the system that they can safely run when Credential encrypted storage is unavailable (an encryption aware component primarily relies on data stored in the new Device encrypted storage area, but they may access Credential encrypted data when unlocked) by adding `encryptionAware="true"` in the manifest.    
+Apps can mark individual components as being encryption aware which indicates to the system that they can safely run when Credential encrypted storage is unavailable (an encryption aware component primarily relies on data stored in the new Device encrypted storage area, but they may access Credential encrypted data when unlocked) by adding `encryptionAware="true"` in the manifest.
 ```
 <activity|provider|receiver|service ...
 android:encryptionAware=”true”>