Skip to content

Commit

Permalink
shared_preferences: Expand and suppress unchecked warnings (flutter#67)
Browse files Browse the repository at this point in the history
* shared_preferences: Enable Xlint:{unchecked,deprecation}

* shared_preferences: Suppress unchecked warnings
  • Loading branch information
perlatus authored and collinjackson committed May 19, 2017
1 parent 7910a48 commit b0fa323
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/shared_preferences/android/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,12 @@ allprojects {
repositories {
jcenter()
}

gradle.projectsEvaluated {
tasks.withType(JavaCompile) {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
}
}

apply plugin: 'com.android.library'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
import java.util.Set;

/** SharedPreferencesPlugin */
@SuppressWarnings("unchecked")
public class SharedPreferencesPlugin implements MethodCallHandler {
private static final String SHARED_PREFERENCES_NAME = "FlutterSharedPreferences";
private static final String CHANNEL_NAME = "plugins.flutter.io/shared_preferences";
Expand Down

0 comments on commit b0fa323

Please sign in to comment.