PathUtils.java 560 字节
Newer Older
1 2 3 4 5 6 7 8 9 10
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

package io.flutter.util;

import android.content.Context;

public final class PathUtils {
    public static String getDataDirectory(Context applicationContext) {
11
        return applicationContext.getDir("flutter", Context.MODE_PRIVATE).getPath();
12 13 14 15 16 17
    }

    public static String getCacheDirectory(Context applicationContext) {
        return applicationContext.getCacheDir().getPath();
    }
}