Home | History | Annotate | Download | only in compat
      1 /*
      2  * Copyright (C) 2016 The Android Open Source Project
      3  *
      4  * Licensed under the Apache License, Version 2.0 (the "License");
      5  * you may not use this file except in compliance with the License.
      6  * You may obtain a copy of the License at
      7  *
      8  *      http://www.apache.org/licenses/LICENSE-2.0
      9  *
     10  * Unless required by applicable law or agreed to in writing, software
     11  * distributed under the License is distributed on an "AS IS" BASIS,
     12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
     13  * See the License for the specific language governing permissions and
     14  * limitations under the License.
     15  */
     16 
     17 package com.android.contacts.common.compat;
     18 
     19 /**
     20  * Provides information for the SDK the app is built against.
     21  * Specifically, information that change when the TARGET_N_SDK build flag is set in the makefile.
     22  * This is not related to the targetSdkVersion value in AndroidManifest.xml.
     23  *
     24  * Usage case will be branching test code in src/, instead of swapping between src-N and src-pre-N.
     25  */
     26 public class SdkSelectionUtils {
     27 
     28     /**
     29      * Whether the app is build against N SDK.
     30      *
     31      * Since Build.VERSION.SDK_INT remains 23 on N SDK for now, this is currently the only way to
     32      * check if we are building with N SDK or other.
     33      */
     34     public static final boolean TARGET_N_SDK = true;
     35 }
     36 
     37