diff --git a/README.md b/README.md index 652bfc3..714e134 100644 --- a/README.md +++ b/README.md @@ -1,20 +1,20 @@ # Android Shell - + Execute shell commands on Android. API License -Maven Central - - - +Maven Central + + + -Download [the latest AAR](https://repo1.maven.org/maven2/com/jrummyapps/android-shell/1.0.1/android-processes-1.0.1.aar) or grab via Gradle: +Download [the latest AAR](https://repo1.maven.org/maven2/com/jaredrummler/android-shell/1.0.0/android-processes-1.0.0.aar) or grab via Gradle: ```groovy -compile 'com.jrummyapps:android-shell:1.0.1' +compile 'com.jaredrummler:android-shell:1.0.0' ```
@@ -55,7 +55,7 @@ Acknowledgements License ------- - Copyright (C) 2016 JRummy Apps Inc. + Copyright (C) 2016 Jared Rummler Copyright (C) 2012-2015 Jorrit "Chainfire" Jongma Licensed under the Apache License, Version 2.0 (the "License"); diff --git a/build.gradle b/build.gradle index 93c7a01..5ed406b 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2017 Jared Rummler + * + * 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. + */ + buildscript { repositories { jcenter() diff --git a/demo/build.gradle b/demo/build.gradle index 35e3e21..26e5455 100644 --- a/demo/build.gradle +++ b/demo/build.gradle @@ -1,10 +1,26 @@ +/* + * Copyright (C) 2017 Jared Rummler + * + * 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. + */ + apply plugin: 'com.android.application' android { compileSdkVersion 25 buildToolsVersion "25.0.2" defaultConfig { - applicationId "com.jrummyapps.android.shell.demo" + applicationId "com.jaredrummler.android.shell.demo" minSdkVersion 14 targetSdkVersion 25 versionCode 1 @@ -24,7 +40,7 @@ dependencies { androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { exclude group: 'com.android.support', module: 'support-annotations' }) - compile 'com.android.support:appcompat-v7:25.1.0' + compile 'com.android.support:appcompat-v7:25.3.1' compile project(':library') testCompile 'junit:junit:4.12' } diff --git a/demo/src/androidTest/java/com/jrummyapps/android/shell/demo/ExampleInstrumentedTest.java b/demo/src/androidTest/java/com/jrummyapps/android/shell/demo/ExampleInstrumentedTest.java deleted file mode 100644 index 5831b3e..0000000 --- a/demo/src/androidTest/java/com/jrummyapps/android/shell/demo/ExampleInstrumentedTest.java +++ /dev/null @@ -1,42 +0,0 @@ -/* - * Copyright (C) 2016 JRummy Apps Inc. - * - * 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.jrummyapps.android.shell.demo; - -import android.content.Context; -import android.support.test.InstrumentationRegistry; -import android.support.test.runner.AndroidJUnit4; - -import org.junit.Test; -import org.junit.runner.RunWith; - -import static org.junit.Assert.*; - -/** - * Instrumentation test, which will execute on an Android device. - * - * @see Testing documentation - */ -@RunWith(AndroidJUnit4.class) -public class ExampleInstrumentedTest { - @Test - public void useAppContext() throws Exception { - // Context of the app under test. - Context appContext = InstrumentationRegistry.getTargetContext(); - - assertEquals("com.jrummyapps.android.shell.demo", appContext.getPackageName()); - } -} diff --git a/demo/src/main/AndroidManifest.xml b/demo/src/main/AndroidManifest.xml index 3026854..863c6d5 100644 --- a/demo/src/main/AndroidManifest.xml +++ b/demo/src/main/AndroidManifest.xml @@ -1,21 +1,21 @@ - diff --git a/demo/src/main/java/com/jrummyapps/android/shell/demo/MainActivity.java b/demo/src/main/java/com/jaredrummler/android/shell/demo/MainActivity.java similarity index 87% rename from demo/src/main/java/com/jrummyapps/android/shell/demo/MainActivity.java rename to demo/src/main/java/com/jaredrummler/android/shell/demo/MainActivity.java index 41d3595..51ec900 100644 --- a/demo/src/main/java/com/jrummyapps/android/shell/demo/MainActivity.java +++ b/demo/src/main/java/com/jaredrummler/android/shell/demo/MainActivity.java @@ -1,20 +1,20 @@ /* - * Copyright (C) 2016 JRummy Apps Inc. + * Copyright (C) 2017 Jared Rummler * - * 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 + * 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. + * 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.jrummyapps.android.shell.demo; +package com.jaredrummler.android.shell.demo; import android.app.ProgressDialog; import android.content.ActivityNotFoundException; @@ -37,9 +37,8 @@ import android.widget.CheckBox; import android.widget.EditText; import android.widget.TextView; - -import com.jrummyapps.android.shell.CommandResult; -import com.jrummyapps.android.shell.Shell; +import com.jaredrummler.android.shell.CommandResult; +import com.jaredrummler.android.shell.Shell; public class MainActivity extends AppCompatActivity { diff --git a/demo/src/main/res/drawable/ic_github.xml b/demo/src/main/res/drawable/ic_github.xml index 97bda71..bdd4a78 100644 --- a/demo/src/main/res/drawable/ic_github.xml +++ b/demo/src/main/res/drawable/ic_github.xml @@ -1,4 +1,20 @@ + + + tools:context="com.jrummyapps.android.shell.demo.com.jaredrummler.android.shell.demo.MainActivity"> diff --git a/demo/src/main/res/values/colors.xml b/demo/src/main/res/values/colors.xml index 240b123..cf616d8 100644 --- a/demo/src/main/res/values/colors.xml +++ b/demo/src/main/res/values/colors.xml @@ -1,18 +1,18 @@ diff --git a/demo/src/main/res/values/dimens.xml b/demo/src/main/res/values/dimens.xml index b553235..0d45926 100644 --- a/demo/src/main/res/values/dimens.xml +++ b/demo/src/main/res/values/dimens.xml @@ -1,17 +1,17 @@ diff --git a/demo/src/main/res/values/strings.xml b/demo/src/main/res/values/strings.xml index 716c234..d6f71a3 100644 --- a/demo/src/main/res/values/strings.xml +++ b/demo/src/main/res/values/strings.xml @@ -1,17 +1,17 @@ diff --git a/demo/src/main/res/values/styles.xml b/demo/src/main/res/values/styles.xml index dadb0ff..320ca3a 100644 --- a/demo/src/main/res/values/styles.xml +++ b/demo/src/main/res/values/styles.xml @@ -1,17 +1,17 @@ diff --git a/demo/src/test/java/com/jrummyapps/android/shell/demo/ExampleUnitTest.java b/demo/src/test/java/com/jrummyapps/android/shell/demo/ExampleUnitTest.java deleted file mode 100644 index d816332..0000000 --- a/demo/src/test/java/com/jrummyapps/android/shell/demo/ExampleUnitTest.java +++ /dev/null @@ -1,33 +0,0 @@ -/* - * Copyright (C) 2016 JRummy Apps Inc. - * - * 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.jrummyapps.android.shell.demo; - -import org.junit.Test; - -import static org.junit.Assert.*; - -/** - * Example local unit test, which will execute on the development machine (host). - * - * @see Testing documentation - */ -public class ExampleUnitTest { - @Test - public void addition_isCorrect() throws Exception { - assertEquals(4, 2 + 2); - } -} \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 9c56284..5ec7464 100644 --- a/gradle.properties +++ b/gradle.properties @@ -1,3 +1,19 @@ +# +# Copyright (C) 2017 Jared Rummler +# +# 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. +# + # Project-wide Gradle settings. # IDE (e.g. Android Studio) users: @@ -16,24 +32,4 @@ org.gradle.jvmargs=-Xmx1536m # http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects # org.gradle.parallel=true -VERSION_NAME=1.0.1 -VERSION_CODE=2 -GROUP=com.jrummyapps - -POM_NAME=Android Shell -POM_ARTIFACT_ID=android-shell -POM_PACKAGING=aar - -POM_DESCRIPTION=A powerful image downloading and caching library for Android -POM_URL=https://github.com/jrummyapps/android-shell -POM_SCM_URL=https://github.com/jrummyapps/android-shell -POM_SCM_CONNECTION=scm:git@github.com:jrummyapps/android-shell.git -POM_SCM_DEV_CONNECTION=scm:git@github.com:jrummyapps/android-shell.git -POM_LICENCE_NAME=The Apache Software License, Version 2.0 -POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt -POM_LICENCE_DIST=repo -POM_DEVELOPER_ID=jrummyapps -POM_DEVELOPER_NAME=JRummy Apps Inc. -SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots -RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2 diff --git a/gradle/gradle-mvn-push.gradle b/gradle/gradle-mvn-push.gradle index f43fd3e..c5d06ff 100644 --- a/gradle/gradle-mvn-push.gradle +++ b/gradle/gradle-mvn-push.gradle @@ -1,17 +1,17 @@ /* - * Copyright 2013 Chris Banes + * Copyright (C) 2017 Jared Rummler * - * 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 + * 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 + * 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. + * 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. */ apply plugin: 'maven' @@ -95,6 +95,11 @@ afterEvaluate { project -> task androidJavadocs(type: Javadoc) { source = android.sourceSets.main.java.srcDirs classpath += project.files(android.getBootClasspath().join(File.pathSeparator)) + if (configurations.respondsTo("javadocDeps")) { + classpath += configurations.javadocDeps + } else { + classpath += configurations.compile + } if (JavaVersion.current().isJava8Compatible()) { options.addStringOption('Xdoclint:none', '-quiet') } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 2ce7b98..179ae61 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,22 +1,22 @@ # -# Copyright (C) 2016 JRummy Apps Inc. +# Copyright (C) 2017 Jared Rummler # -# 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 +# 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. +# 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. # -#Mon Dec 28 10:00:20 PST 2015 +#Sat May 06 15:53:46 PDT 2017 distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-2.14.1-all.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip diff --git a/library/build.gradle b/library/build.gradle index 0bd3ab7..675e417 100644 --- a/library/build.gradle +++ b/library/build.gradle @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2017 Jared Rummler + * + * 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. + */ + apply plugin: 'com.android.library' android { @@ -11,7 +27,18 @@ android { } dependencies { - compile 'com.android.support:support-annotations:25.1.0' + compile 'com.android.support:support-annotations:25.3.1' } -apply from: rootProject.file('gradle/gradle-mvn-push.gradle') \ No newline at end of file +apply from: rootProject.file('gradle/gradle-mvn-push.gradle') + +android.libraryVariants.all { variant -> + def name = variant.buildType.name + if (name.equals(com.android.builder.core.BuilderConstants.DEBUG)) { + return; // Skip debug builds. + } + def task = project.tasks.create "jar${name.capitalize()}", Jar + task.dependsOn variant.javaCompile + task.from variant.javaCompile.destinationDir + artifacts.add('archives', task); +} \ No newline at end of file diff --git a/library/gradle.properties b/library/gradle.properties new file mode 100644 index 0000000..d3ddec3 --- /dev/null +++ b/library/gradle.properties @@ -0,0 +1,21 @@ +VERSION_NAME=1.0.0 +VERSION_CODE=100 +GROUP=com.jaredrummler + +POM_NAME=Android Shell +POM_ARTIFACT_ID=android-shell +POM_PACKAGING=aar + +POM_DESCRIPTION=Execute shell commands on Android. +POM_URL=https://github.com/jaredrummler/android-shell +POM_SCM_URL=https://github.com/jaredrummler/android-shell +POM_SCM_CONNECTION=scm:git@github.com:jaredrummler/android-shell.git +POM_SCM_DEV_CONNECTION=scm:git@github.com:jaredrummler/android-shell.git +POM_LICENCE_NAME=The Apache Software License, Version 2.0 +POM_LICENCE_URL=http://www.apache.org/licenses/LICENSE-2.0.txt +POM_LICENCE_DIST=repo +POM_DEVELOPER_ID=jaredrummler +POM_DEVELOPER_NAME=Jared Rummler + +SNAPSHOT_REPOSITORY_URL=https://oss.sonatype.org/content/repositories/snapshots +RELEASE_REPOSITORY_URL=https://oss.sonatype.org/service/local/staging/deploy/maven2 diff --git a/library/src/main/AndroidManifest.xml b/library/src/main/AndroidManifest.xml index f1b5ac0..6f10be3 100644 --- a/library/src/main/AndroidManifest.xml +++ b/library/src/main/AndroidManifest.xml @@ -1 +1,17 @@ - \ No newline at end of file + + + \ No newline at end of file diff --git a/library/src/main/java/com/jrummyapps/android/shell/CommandResult.java b/library/src/main/java/com/jaredrummler/android/shell/CommandResult.java similarity index 72% rename from library/src/main/java/com/jrummyapps/android/shell/CommandResult.java rename to library/src/main/java/com/jaredrummler/android/shell/CommandResult.java index f918d4b..fb0fcb8 100644 --- a/library/src/main/java/com/jrummyapps/android/shell/CommandResult.java +++ b/library/src/main/java/com/jaredrummler/android/shell/CommandResult.java @@ -1,20 +1,20 @@ /* - * Copyright (C) 2016 JRummy Apps Inc. + * Copyright (C) 2017 Jared Rummler * - * 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 + * 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. + * 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.jrummyapps.android.shell; +package com.jaredrummler.android.shell; import android.support.annotation.NonNull; diff --git a/library/src/main/java/com/jrummyapps/android/shell/Shell.java b/library/src/main/java/com/jaredrummler/android/shell/Shell.java similarity index 99% rename from library/src/main/java/com/jrummyapps/android/shell/Shell.java rename to library/src/main/java/com/jaredrummler/android/shell/Shell.java index 98a4be2..105b8f7 100644 --- a/library/src/main/java/com/jrummyapps/android/shell/Shell.java +++ b/library/src/main/java/com/jaredrummler/android/shell/Shell.java @@ -1,21 +1,20 @@ /* - * Copyright (C) 2016 JRummy Apps Inc. - * Copyright (C) 2012-2015 Jorrit "Chainfire" Jongma + * Copyright (C) 2017 Jared Rummler * - * 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 + * 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. + * 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.jrummyapps.android.shell; +package com.jaredrummler.android.shell; import android.os.Build; import android.os.Handler; diff --git a/library/src/main/java/com/jaredrummler/android/shell/ShellExitCode.java b/library/src/main/java/com/jaredrummler/android/shell/ShellExitCode.java new file mode 100644 index 0000000..e9827eb --- /dev/null +++ b/library/src/main/java/com/jaredrummler/android/shell/ShellExitCode.java @@ -0,0 +1,40 @@ +/* + * Copyright (C) 2017 Jared Rummler + * + * 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.jaredrummler.android.shell; + +@SuppressWarnings("unused") +public interface ShellExitCode { + + int SUCCESS = 0; + + int WATCHDOG_EXIT = -1; + + int SHELL_DIED = -2; + + int SHELL_EXEC_FAILED = -3; + + int SHELL_WRONG_UID = -4; + + int SHELL_NOT_FOUND = -5; + + int TERMINATED = 130; + + int COMMAND_NOT_EXECUTABLE = 126; + + int COMMAND_NOT_FOUND = 127; + +} diff --git a/library/src/main/java/com/jrummyapps/android/shell/ShellNotFoundException.java b/library/src/main/java/com/jaredrummler/android/shell/ShellNotFoundException.java similarity index 58% rename from library/src/main/java/com/jrummyapps/android/shell/ShellNotFoundException.java rename to library/src/main/java/com/jaredrummler/android/shell/ShellNotFoundException.java index 5fa7a08..d560a35 100644 --- a/library/src/main/java/com/jrummyapps/android/shell/ShellNotFoundException.java +++ b/library/src/main/java/com/jaredrummler/android/shell/ShellNotFoundException.java @@ -1,20 +1,20 @@ /* - * Copyright (C) 2016 JRummy Apps Inc. + * Copyright (C) 2017 Jared Rummler * - * 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 + * 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. + * 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.jrummyapps.android.shell; +package com.jaredrummler.android.shell; import java.io.IOException; diff --git a/library/src/main/java/com/jrummyapps/android/shell/StreamGobbler.java b/library/src/main/java/com/jaredrummler/android/shell/StreamGobbler.java similarity index 80% rename from library/src/main/java/com/jrummyapps/android/shell/StreamGobbler.java rename to library/src/main/java/com/jaredrummler/android/shell/StreamGobbler.java index 9b3e5b3..761db62 100644 --- a/library/src/main/java/com/jrummyapps/android/shell/StreamGobbler.java +++ b/library/src/main/java/com/jaredrummler/android/shell/StreamGobbler.java @@ -1,21 +1,20 @@ /* - * Copyright (C) 2016 JRummy Apps Inc. - * Copyright (C) 2012-2015 Jorrit "Chainfire" Jongma + * Copyright (C) 2017 Jared Rummler * - * 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 + * 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. + * 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.jrummyapps.android.shell; +package com.jaredrummler.android.shell; import java.io.BufferedReader; import java.io.IOException; diff --git a/library/src/main/java/com/jrummyapps/android/shell/ShellExitCode.java b/library/src/main/java/com/jrummyapps/android/shell/ShellExitCode.java deleted file mode 100644 index 5b7014e..0000000 --- a/library/src/main/java/com/jrummyapps/android/shell/ShellExitCode.java +++ /dev/null @@ -1,40 +0,0 @@ -/* - * Copyright (C) 2016 JRummy Apps Inc. - * - * 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.jrummyapps.android.shell; - -@SuppressWarnings("unused") -public interface ShellExitCode { - - int SUCCESS = 0; - - int WATCHDOG_EXIT = -1; - - int SHELL_DIED = -2; - - int SHELL_EXEC_FAILED = -3; - - int SHELL_WRONG_UID = -4; - - int SHELL_NOT_FOUND = -5; - - int TERMINATED = 130; - - int COMMAND_NOT_EXECUTABLE = 126; - - int COMMAND_NOT_FOUND = 127; - -} diff --git a/settings.gradle b/settings.gradle index 462ba77..b895dac 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1 +1,17 @@ +/* + * Copyright (C) 2017 Jared Rummler + * + * 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. + */ + include ':demo', ':library'