// Path: src/main/java/com/github/xsavikx/androidscreencast/exception/IllegalAdbConfigurationException.java
// public final class IllegalAdbConfigurationException extends AndroidScreenCastRuntimeException {
// 
//     public IllegalAdbConfigurationException(String adbPath) {
//         super(String.format("Exception happened during running your ADB instance. Probably ADB path is misconfigured. ADB path='%s'", adbPath));
//     }
// }
// 
// Path: src/main/java/com/github/xsavikx/androidscreencast/util/StringUtils.java
// public final class StringUtils {
// 
//     private StringUtils() {
//     }
// 
//     public static boolean isNotEmpty(final CharSequence charSequence) {
//         return charSequence != null && charSequence.length() > 0;
//     }
// }
// 
// Path: src/main/java/com/github/xsavikx/androidscreencast/configuration/ApplicationConfigurationPropertyKeys.java
// public static final String ADB_PATH_KEY = "adb.path";


import com.android.ddmlib.AndroidDebugBridge;
import com.android.ddmlib.IDevice;
import com.github.xsavikx.androidscreencast.exception.IllegalAdbConfigurationException;
import com.github.xsavikx.androidscreencast.util.StringUtils;
import com.google.common.annotations.VisibleForTesting;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
import java.io.IOException;
import static com.github.xsavikx.androidscreencast.configuration.ApplicationConfigurationPropertyKeys.ADB_PATH_KEY;
/*
 * Copyright 2020 Yurii Serhiichuk
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.github.xsavikx.androidscreencast.api.adb;




@Singleton
public class AndroidDebugBridgeWrapper {
    private final String adbPath;
    private AndroidDebugBridge adb;

    @Inject
// Path: src/main/java/com/github/xsavikx/androidscreencast/exception/IllegalAdbConfigurationException.java
// public final class IllegalAdbConfigurationException extends AndroidScreenCastRuntimeException {
// 
//     public IllegalAdbConfigurationException(String adbPath) {
//         super(String.format("Exception happened during running your ADB instance. Probably ADB path is misconfigured. ADB path='%s'", adbPath));
//     }
// }
// 
// Path: src/main/java/com/github/xsavikx/androidscreencast/util/StringUtils.java
// public final class StringUtils {
// 
//     private StringUtils() {
//     }
// 
//     public static boolean isNotEmpty(final CharSequence charSequence) {
//         return charSequence != null && charSequence.length() > 0;
//     }
// }
// 
// Path: src/main/java/com/github/xsavikx/androidscreencast/configuration/ApplicationConfigurationPropertyKeys.java
// public static final String ADB_PATH_KEY = "adb.path";


// Path: src/main/java/com/github/xsavikx/androidscreencast/api/adb/AndroidDebugBridgeWrapper.java
import com.android.ddmlib.AndroidDebugBridge;
import com.android.ddmlib.IDevice;
import com.github.xsavikx.androidscreencast.exception.IllegalAdbConfigurationException;
import com.github.xsavikx.androidscreencast.util.StringUtils;
import com.google.common.annotations.VisibleForTesting;
import javax.inject.Inject;
import javax.inject.Named;
import javax.inject.Singleton;
import java.io.IOException;
import static com.github.xsavikx.androidscreencast.configuration.ApplicationConfigurationPropertyKeys.ADB_PATH_KEY;

/*
 * Copyright 2020 Yurii Serhiichuk
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */

package com.github.xsavikx.androidscreencast.api.adb;




@Singleton
public class AndroidDebugBridgeWrapper {
    private final String adbPath;
    private AndroidDebugBridge adb;

    @Inject
    public AndroidDebugBridgeWrapper(@Named(ADB_PATH_KEY) String adbPath) {