From e8d4f7d1cd81eec0f03f39d42341cd66ef9b2bde Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 02:15:38 +0500 Subject: [PATCH 01/28] Create generate_apk.yml --- .github/generate_apk.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/generate_apk.yml diff --git a/.github/generate_apk.yml b/.github/generate_apk.yml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.github/generate_apk.yml @@ -0,0 +1 @@ + From dd840187d5efcba8a2f1353940d94a178abfc11e Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 02:16:58 +0500 Subject: [PATCH 02/28] Update generate_apk.yml --- .github/generate_apk.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/generate_apk.yml b/.github/generate_apk.yml index 8b13789..7adc9e1 100644 --- a/.github/generate_apk.yml +++ b/.github/generate_apk.yml @@ -1 +1,25 @@ +name: Generate Apk +on: + push: + branches: + - 'generate_apk_pipeline' + +jobs: + + apk: + name: Generate Apk + runs-on: ubuntu-18.04 + + steps: + - uses: actions/checkout@v1 + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - name: Grant Permission to Execute + run: chmod +x gradlew + + - name: Build debug APK + run: bash ./gradlew assembleDebug --stacktrace From 67f11fda5bfcf21bf15e3d91f70a2b0a24201259 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 02:19:25 +0500 Subject: [PATCH 03/28] Delete generate_apk.yml --- .github/generate_apk.yml | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 .github/generate_apk.yml diff --git a/.github/generate_apk.yml b/.github/generate_apk.yml deleted file mode 100644 index 7adc9e1..0000000 --- a/.github/generate_apk.yml +++ /dev/null @@ -1,25 +0,0 @@ - -name: Generate Apk -on: - push: - branches: - - 'generate_apk_pipeline' - -jobs: - - apk: - name: Generate Apk - runs-on: ubuntu-18.04 - - steps: - - uses: actions/checkout@v1 - - name: set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - - name: Grant Permission to Execute - run: chmod +x gradlew - - - name: Build debug APK - run: bash ./gradlew assembleDebug --stacktrace From 0dd578a51d1f9564cc1a3e2e311347e663bdc77c Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 02:19:49 +0500 Subject: [PATCH 04/28] Create generate_apk.yml --- .github/workflows/generate_apk.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 .github/workflows/generate_apk.yml diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/generate_apk.yml new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/.github/workflows/generate_apk.yml @@ -0,0 +1 @@ + From 7786c853e6e84c32e9332bf12fd67defc2409e95 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 02:21:31 +0500 Subject: [PATCH 05/28] Update generate_apk.yml --- .github/workflows/generate_apk.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/generate_apk.yml index 8b13789..7adc9e1 100644 --- a/.github/workflows/generate_apk.yml +++ b/.github/workflows/generate_apk.yml @@ -1 +1,25 @@ +name: Generate Apk +on: + push: + branches: + - 'generate_apk_pipeline' + +jobs: + + apk: + name: Generate Apk + runs-on: ubuntu-18.04 + + steps: + - uses: actions/checkout@v1 + - name: set up JDK 1.8 + uses: actions/setup-java@v1 + with: + java-version: 1.8 + + - name: Grant Permission to Execute + run: chmod +x gradlew + + - name: Build debug APK + run: bash ./gradlew assembleDebug --stacktrace From 27d18b80c546041312fa8e8b7ed9a2fb1712c9e5 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 02:23:15 +0500 Subject: [PATCH 06/28] Update generate_apk.yml --- .github/workflows/generate_apk.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/generate_apk.yml index 7adc9e1..1d5e0f7 100644 --- a/.github/workflows/generate_apk.yml +++ b/.github/workflows/generate_apk.yml @@ -3,7 +3,7 @@ name: Generate Apk on: push: branches: - - 'generate_apk_pipeline' + - 'feature/generate_apk_pipeline' jobs: From 69a3c0955aaade4bda2cb9ebdf44b963276474ef Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 02:34:43 +0500 Subject: [PATCH 07/28] Update generate_apk.yml --- .github/workflows/generate_apk.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/generate_apk.yml index 1d5e0f7..82f857e 100644 --- a/.github/workflows/generate_apk.yml +++ b/.github/workflows/generate_apk.yml @@ -13,10 +13,10 @@ jobs: steps: - uses: actions/checkout@v1 - - name: set up JDK 1.8 + - name: set up JDK 11 uses: actions/setup-java@v1 with: - java-version: 1.8 + java-version: 11 - name: Grant Permission to Execute run: chmod +x gradlew From d58cba3f86e30eb3dfe9d7be9f4a844a94918980 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 02:43:04 +0500 Subject: [PATCH 08/28] Update generate_apk.yml --- .github/workflows/generate_apk.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/generate_apk.yml index 82f857e..b1498dc 100644 --- a/.github/workflows/generate_apk.yml +++ b/.github/workflows/generate_apk.yml @@ -10,7 +10,9 @@ jobs: apk: name: Generate Apk runs-on: ubuntu-18.04 - + defaults: + run: + working-directory: ./sample steps: - uses: actions/checkout@v1 - name: set up JDK 11 @@ -23,3 +25,9 @@ jobs: - name: Build debug APK run: bash ./gradlew assembleDebug --stacktrace + + - name: Upload APK to Github Artifacts + uses: actions/upload-artifact@v2 + with: + name: app + path: app/build/outputs/apk/debug/app-debug.apk From 88f59f53da7f9067c26281a8c9446811967efc57 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 02:47:55 +0500 Subject: [PATCH 09/28] Create gradlew --- sample/gradlew | 1 + 1 file changed, 1 insertion(+) create mode 100644 sample/gradlew diff --git a/sample/gradlew b/sample/gradlew new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/sample/gradlew @@ -0,0 +1 @@ + From 5010e753c1d5a6317ed822fb9d67b26421cf8890 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 02:48:11 +0500 Subject: [PATCH 10/28] Update gradlew --- sample/gradlew | 182 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 182 insertions(+) diff --git a/sample/gradlew b/sample/gradlew index 8b13789..965aff3 100644 --- a/sample/gradlew +++ b/sample/gradlew @@ -1 +1,183 @@ +#!/usr/bin/env sh +# +# Copyright 2015 the original author or authors. +# +# 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 +# +# https://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. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" From 4bc26e6c566d792427fd54f13eea33601e2679ac Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 02:49:31 +0500 Subject: [PATCH 11/28] Delete gradlew --- sample/gradlew | 183 ------------------------------------------------- 1 file changed, 183 deletions(-) delete mode 100644 sample/gradlew diff --git a/sample/gradlew b/sample/gradlew deleted file mode 100644 index 965aff3..0000000 --- a/sample/gradlew +++ /dev/null @@ -1,183 +0,0 @@ -#!/usr/bin/env sh - -# -# Copyright 2015 the original author or authors. -# -# 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 -# -# https://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. -# - -############################################################################## -## -## Gradle start up script for UN*X -## -############################################################################## - -# Attempt to set APP_HOME -# Resolve links: $0 may be a link -PRG="$0" -# Need this for relative symlinks. -while [ -h "$PRG" ] ; do - ls=`ls -ld "$PRG"` - link=`expr "$ls" : '.*-> \(.*\)$'` - if expr "$link" : '/.*' > /dev/null; then - PRG="$link" - else - PRG=`dirname "$PRG"`"/$link" - fi -done -SAVED="`pwd`" -cd "`dirname \"$PRG\"`/" >/dev/null -APP_HOME="`pwd -P`" -cd "$SAVED" >/dev/null - -APP_NAME="Gradle" -APP_BASE_NAME=`basename "$0"` - -# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. -DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' - -# Use the maximum available, or set MAX_FD != -1 to use that value. -MAX_FD="maximum" - -warn () { - echo "$*" -} - -die () { - echo - echo "$*" - echo - exit 1 -} - -# OS specific support (must be 'true' or 'false'). -cygwin=false -msys=false -darwin=false -nonstop=false -case "`uname`" in - CYGWIN* ) - cygwin=true - ;; - Darwin* ) - darwin=true - ;; - MINGW* ) - msys=true - ;; - NONSTOP* ) - nonstop=true - ;; -esac - -CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar - - -# Determine the Java command to use to start the JVM. -if [ -n "$JAVA_HOME" ] ; then - if [ -x "$JAVA_HOME/jre/sh/java" ] ; then - # IBM's JDK on AIX uses strange locations for the executables - JAVACMD="$JAVA_HOME/jre/sh/java" - else - JAVACMD="$JAVA_HOME/bin/java" - fi - if [ ! -x "$JAVACMD" ] ; then - die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." - fi -else - JAVACMD="java" - which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. -Please set the JAVA_HOME variable in your environment to match the -location of your Java installation." -fi - -# Increase the maximum file descriptors if we can. -if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then - MAX_FD_LIMIT=`ulimit -H -n` - if [ $? -eq 0 ] ; then - if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then - MAX_FD="$MAX_FD_LIMIT" - fi - ulimit -n $MAX_FD - if [ $? -ne 0 ] ; then - warn "Could not set maximum file descriptor limit: $MAX_FD" - fi - else - warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" - fi -fi - -# For Darwin, add options to specify how the application appears in the dock -if $darwin; then - GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" -fi - -# For Cygwin or MSYS, switch paths to Windows format before running java -if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then - APP_HOME=`cygpath --path --mixed "$APP_HOME"` - CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` - - JAVACMD=`cygpath --unix "$JAVACMD"` - - # We build the pattern for arguments to be converted via cygpath - ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` - SEP="" - for dir in $ROOTDIRSRAW ; do - ROOTDIRS="$ROOTDIRS$SEP$dir" - SEP="|" - done - OURCYGPATTERN="(^($ROOTDIRS))" - # Add a user-defined pattern to the cygpath arguments - if [ "$GRADLE_CYGPATTERN" != "" ] ; then - OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" - fi - # Now convert the arguments - kludge to limit ourselves to /bin/sh - i=0 - for arg in "$@" ; do - CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` - CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option - - if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition - eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` - else - eval `echo args$i`="\"$arg\"" - fi - i=`expr $i + 1` - done - case $i in - 0) set -- ;; - 1) set -- "$args0" ;; - 2) set -- "$args0" "$args1" ;; - 3) set -- "$args0" "$args1" "$args2" ;; - 4) set -- "$args0" "$args1" "$args2" "$args3" ;; - 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; - 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; - 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; - 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; - 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; - esac -fi - -# Escape application args -save () { - for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done - echo " " -} -APP_ARGS=`save "$@"` - -# Collect all arguments for the java command, following the shell quoting and substitution rules -eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" - -exec "$JAVACMD" "$@" From 42b8bad1c5265ceac52f7a650aff611d4c889eb1 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 02:53:28 +0500 Subject: [PATCH 12/28] Update generate_apk.yml --- .github/workflows/generate_apk.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/generate_apk.yml index b1498dc..ad6dfe8 100644 --- a/.github/workflows/generate_apk.yml +++ b/.github/workflows/generate_apk.yml @@ -10,9 +10,7 @@ jobs: apk: name: Generate Apk runs-on: ubuntu-18.04 - defaults: - run: - working-directory: ./sample + steps: - uses: actions/checkout@v1 - name: set up JDK 11 From 29007aa3e00b0a64b96bed865cc3f298af74b868 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 03:11:42 +0500 Subject: [PATCH 13/28] Update generate_apk.yml --- .github/workflows/generate_apk.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/generate_apk.yml index ad6dfe8..bbcbcf3 100644 --- a/.github/workflows/generate_apk.yml +++ b/.github/workflows/generate_apk.yml @@ -10,17 +10,21 @@ jobs: apk: name: Generate Apk runs-on: ubuntu-18.04 - + defaults: + run: + working-directory: ./sample steps: - uses: actions/checkout@v1 - name: set up JDK 11 uses: actions/setup-java@v1 with: java-version: 11 - - - name: Grant Permission to Execute - run: chmod +x gradlew + - name: Make Gradle executable + run: chmod +x ./gradlew + - name: Build with Gradle + run: ./gradlew build + - name: Build debug APK run: bash ./gradlew assembleDebug --stacktrace From 5b35fabb69b7260a05514f3f5e81b48234cff8b7 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 03:13:17 +0500 Subject: [PATCH 14/28] Update generate_apk.yml --- .github/workflows/generate_apk.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/generate_apk.yml index bbcbcf3..4b84a2c 100644 --- a/.github/workflows/generate_apk.yml +++ b/.github/workflows/generate_apk.yml @@ -19,11 +19,12 @@ jobs: uses: actions/setup-java@v1 with: java-version: 11 - - name: Make Gradle executable - run: chmod +x ./gradlew - + - name: Build with Gradle run: ./gradlew build + + - name: Make Gradle executable + run: chmod +x ./gradlew - name: Build debug APK run: bash ./gradlew assembleDebug --stacktrace From a945cf12e7190667bea130c2a053cb9649d4d7ea Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 15:11:08 +0500 Subject: [PATCH 15/28] Create gradlew --- sample/gradlew | 1 + 1 file changed, 1 insertion(+) create mode 100644 sample/gradlew diff --git a/sample/gradlew b/sample/gradlew new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/sample/gradlew @@ -0,0 +1 @@ + From 5f539296852c3dc3e32b511f646f0b82c7a9806e Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 15:11:32 +0500 Subject: [PATCH 16/28] Update gradlew --- sample/gradlew | 184 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 184 insertions(+) diff --git a/sample/gradlew b/sample/gradlew index 8b13789..4f906e0 100644 --- a/sample/gradlew +++ b/sample/gradlew @@ -1 +1,185 @@ +#!/usr/bin/env sh +# +# Copyright 2015 the original author or authors. +# +# 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 +# +# https://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. +# + +############################################################################## +## +## Gradle start up script for UN*X +## +############################################################################## + +# Attempt to set APP_HOME +# Resolve links: $0 may be a link +PRG="$0" +# Need this for relative symlinks. +while [ -h "$PRG" ] ; do + ls=`ls -ld "$PRG"` + link=`expr "$ls" : '.*-> \(.*\)$'` + if expr "$link" : '/.*' > /dev/null; then + PRG="$link" + else + PRG=`dirname "$PRG"`"/$link" + fi +done +SAVED="`pwd`" +cd "`dirname \"$PRG\"`/" >/dev/null +APP_HOME="`pwd -P`" +cd "$SAVED" >/dev/null + +APP_NAME="Gradle" +APP_BASE_NAME=`basename "$0"` + +# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script. +DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"' + +# Use the maximum available, or set MAX_FD != -1 to use that value. +MAX_FD="maximum" + +warn () { + echo "$*" +} + +die () { + echo + echo "$*" + echo + exit 1 +} + +# OS specific support (must be 'true' or 'false'). +cygwin=false +msys=false +darwin=false +nonstop=false +case "`uname`" in + CYGWIN* ) + cygwin=true + ;; + Darwin* ) + darwin=true + ;; + MINGW* ) + msys=true + ;; + NONSTOP* ) + nonstop=true + ;; +esac + +CLASSPATH=$APP_HOME/gradle/wrapper/gradle-wrapper.jar + + +# Determine the Java command to use to start the JVM. +if [ -n "$JAVA_HOME" ] ; then + if [ -x "$JAVA_HOME/jre/sh/java" ] ; then + # IBM's JDK on AIX uses strange locations for the executables + JAVACMD="$JAVA_HOME/jre/sh/java" + else + JAVACMD="$JAVA_HOME/bin/java" + fi + if [ ! -x "$JAVACMD" ] ; then + die "ERROR: JAVA_HOME is set to an invalid directory: $JAVA_HOME + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." + fi +else + JAVACMD="java" + which java >/dev/null 2>&1 || die "ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH. + +Please set the JAVA_HOME variable in your environment to match the +location of your Java installation." +fi + +# Increase the maximum file descriptors if we can. +if [ "$cygwin" = "false" -a "$darwin" = "false" -a "$nonstop" = "false" ] ; then + MAX_FD_LIMIT=`ulimit -H -n` + if [ $? -eq 0 ] ; then + if [ "$MAX_FD" = "maximum" -o "$MAX_FD" = "max" ] ; then + MAX_FD="$MAX_FD_LIMIT" + fi + ulimit -n $MAX_FD + if [ $? -ne 0 ] ; then + warn "Could not set maximum file descriptor limit: $MAX_FD" + fi + else + warn "Could not query maximum file descriptor limit: $MAX_FD_LIMIT" + fi +fi + +# For Darwin, add options to specify how the application appears in the dock +if $darwin; then + GRADLE_OPTS="$GRADLE_OPTS \"-Xdock:name=$APP_NAME\" \"-Xdock:icon=$APP_HOME/media/gradle.icns\"" +fi + +# For Cygwin or MSYS, switch paths to Windows format before running java +if [ "$cygwin" = "true" -o "$msys" = "true" ] ; then + APP_HOME=`cygpath --path --mixed "$APP_HOME"` + CLASSPATH=`cygpath --path --mixed "$CLASSPATH"` + + JAVACMD=`cygpath --unix "$JAVACMD"` + + # We build the pattern for arguments to be converted via cygpath + ROOTDIRSRAW=`find -L / -maxdepth 1 -mindepth 1 -type d 2>/dev/null` + SEP="" + for dir in $ROOTDIRSRAW ; do + ROOTDIRS="$ROOTDIRS$SEP$dir" + SEP="|" + done + OURCYGPATTERN="(^($ROOTDIRS))" + # Add a user-defined pattern to the cygpath arguments + if [ "$GRADLE_CYGPATTERN" != "" ] ; then + OURCYGPATTERN="$OURCYGPATTERN|($GRADLE_CYGPATTERN)" + fi + # Now convert the arguments - kludge to limit ourselves to /bin/sh + i=0 + for arg in "$@" ; do + CHECK=`echo "$arg"|egrep -c "$OURCYGPATTERN" -` + CHECK2=`echo "$arg"|egrep -c "^-"` ### Determine if an option + + if [ $CHECK -ne 0 ] && [ $CHECK2 -eq 0 ] ; then ### Added a condition + eval `echo args$i`=`cygpath --path --ignore --mixed "$arg"` + else + eval `echo args$i`="\"$arg\"" + fi + i=`expr $i + 1` + done + case $i in + 0) set -- ;; + 1) set -- "$args0" ;; + 2) set -- "$args0" "$args1" ;; + 3) set -- "$args0" "$args1" "$args2" ;; + 4) set -- "$args0" "$args1" "$args2" "$args3" ;; + 5) set -- "$args0" "$args1" "$args2" "$args3" "$args4" ;; + 6) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" ;; + 7) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" ;; + 8) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" ;; + 9) set -- "$args0" "$args1" "$args2" "$args3" "$args4" "$args5" "$args6" "$args7" "$args8" ;; + esac +fi + +# Escape application args +save () { + for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done + echo " " +} +APP_ARGS=`save "$@"` + +# Collect all arguments for the java command, following the shell quoting and substitution rules +eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS" + +exec "$JAVACMD" "$@" From 093f5ecb827fd97a8c95e57fbfb66ea0f1a05a4a Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 15:15:24 +0500 Subject: [PATCH 17/28] Update generate_apk.yml --- .github/workflows/generate_apk.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/generate_apk.yml index 4b84a2c..483164a 100644 --- a/.github/workflows/generate_apk.yml +++ b/.github/workflows/generate_apk.yml @@ -19,10 +19,13 @@ jobs: uses: actions/setup-java@v1 with: java-version: 11 - + - name: Build with Gradle run: ./gradlew build + - name: Grant Permissions to gradlew + run: chmod +x gradlew + - name: Make Gradle executable run: chmod +x ./gradlew From 07f8b76653c2fde84500d822d91dfc749d3e1373 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 15:16:30 +0500 Subject: [PATCH 18/28] Update generate_apk.yml --- .github/workflows/generate_apk.yml | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/generate_apk.yml index 483164a..4637d48 100644 --- a/.github/workflows/generate_apk.yml +++ b/.github/workflows/generate_apk.yml @@ -20,14 +20,11 @@ jobs: with: java-version: 11 - - name: Build with Gradle - run: ./gradlew build - - - name: Grant Permissions to gradlew - run: chmod +x gradlew - - name: Make Gradle executable run: chmod +x ./gradlew + + - name: Build with Gradle + run: ./gradlew build - name: Build debug APK run: bash ./gradlew assembleDebug --stacktrace From a49b3450b7a6e9584175c5890015c190791f5678 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 15:20:24 +0500 Subject: [PATCH 19/28] Create gradle.properties --- sample/gradle.properties | 1 + 1 file changed, 1 insertion(+) create mode 100644 sample/gradle.properties diff --git a/sample/gradle.properties b/sample/gradle.properties new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/sample/gradle.properties @@ -0,0 +1 @@ + From bc3b1108497ba1384c05de4250f40481e1a40f90 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 15:20:45 +0500 Subject: [PATCH 20/28] Update gradle.properties --- sample/gradle.properties | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/sample/gradle.properties b/sample/gradle.properties index 8b13789..1562496 100644 --- a/sample/gradle.properties +++ b/sample/gradle.properties @@ -1 +1,29 @@ +GROUP=io.github.mmobin789.pixel +POM_ARTIFACT_ID=pixel +VERSION_NAME=1.0.0-alpha +POM_NAME=pixel +POM_PACKAGING=aar + +POM_DESCRIPTION=A lightweight image loader for Android backed by Kotlin Coroutines. +POM_INCEPTION_YEAR=2020 + +POM_URL=https://github.com/mmobin789/pixel +POM_SCM_URL=https://github.com/mmobin789/pixel +POM_SCM_CONNECTION=scm:git@github.com:mmobin789/pixel.git +POM_SCM_DEV_CONNECTION=scm:git@github.com:mmobin789/pixel.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=mmobin789 +POM_DEVELOPER_NAME=Mobin Munir +POM_DEVELOPER_URL=https://github.com/mmobin789 + + +signing.keyId=EF62A043 +signing.password=mobin789 +signing.secretKeyRingFile=secring.gpg +ossrhUsername=BmIIU1JP +ossrhPassword=LUdhejxtrEoDpT8Kdm9pvManP8EQeT9Lc/8AIQcaPnn5 From 0a67f0bf160db7d8a7499f555a33683628595b33 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 15:21:36 +0500 Subject: [PATCH 21/28] Delete gradle.properties --- sample/gradle.properties | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 sample/gradle.properties diff --git a/sample/gradle.properties b/sample/gradle.properties deleted file mode 100644 index 1562496..0000000 --- a/sample/gradle.properties +++ /dev/null @@ -1,29 +0,0 @@ -GROUP=io.github.mmobin789.pixel -POM_ARTIFACT_ID=pixel -VERSION_NAME=1.0.0-alpha - -POM_NAME=pixel -POM_PACKAGING=aar - -POM_DESCRIPTION=A lightweight image loader for Android backed by Kotlin Coroutines. -POM_INCEPTION_YEAR=2020 - -POM_URL=https://github.com/mmobin789/pixel -POM_SCM_URL=https://github.com/mmobin789/pixel -POM_SCM_CONNECTION=scm:git@github.com:mmobin789/pixel.git -POM_SCM_DEV_CONNECTION=scm:git@github.com:mmobin789/pixel.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=mmobin789 -POM_DEVELOPER_NAME=Mobin Munir -POM_DEVELOPER_URL=https://github.com/mmobin789 - - -signing.keyId=EF62A043 -signing.password=mobin789 -signing.secretKeyRingFile=secring.gpg -ossrhUsername=BmIIU1JP -ossrhPassword=LUdhejxtrEoDpT8Kdm9pvManP8EQeT9Lc/8AIQcaPnn5 From 4309f2fa163fe47ef4c7f34751087663f004bda6 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Wed, 29 Dec 2021 15:23:48 +0500 Subject: [PATCH 22/28] Update generate_apk.yml --- .github/workflows/generate_apk.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/generate_apk.yml index 4637d48..e69d489 100644 --- a/.github/workflows/generate_apk.yml +++ b/.github/workflows/generate_apk.yml @@ -10,9 +10,6 @@ jobs: apk: name: Generate Apk runs-on: ubuntu-18.04 - defaults: - run: - working-directory: ./sample steps: - uses: actions/checkout@v1 - name: set up JDK 11 @@ -20,8 +17,8 @@ jobs: with: java-version: 11 - - name: Make Gradle executable - run: chmod +x ./gradlew + - name: Grant Permission to Execute + run: chmod +x gradlew - name: Build with Gradle run: ./gradlew build From 2c8a971945c84aa5506809bf2734c6bd2367b1a8 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Sat, 1 Jan 2022 03:14:55 +0500 Subject: [PATCH 23/28] Update generate_apk.yml --- .github/workflows/generate_apk.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/generate_apk.yml index e69d489..c986ffa 100644 --- a/.github/workflows/generate_apk.yml +++ b/.github/workflows/generate_apk.yml @@ -19,12 +19,9 @@ jobs: - name: Grant Permission to Execute run: chmod +x gradlew - - - name: Build with Gradle - run: ./gradlew build - name: Build debug APK - run: bash ./gradlew assembleDebug --stacktrace + run: bash ./gradlew :sample:assembleDebug --stacktrace - name: Upload APK to Github Artifacts uses: actions/upload-artifact@v2 From 04a0751c0a7afee33c3cda5f180b1fb2f238a5f8 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Sat, 1 Jan 2022 03:23:38 +0500 Subject: [PATCH 24/28] Update generate_apk.yml --- .github/workflows/generate_apk.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/generate_apk.yml index c986ffa..601c3d8 100644 --- a/.github/workflows/generate_apk.yml +++ b/.github/workflows/generate_apk.yml @@ -21,7 +21,7 @@ jobs: run: chmod +x gradlew - name: Build debug APK - run: bash ./gradlew :sample:assembleDebug --stacktrace + run: bash ./gradlew :internet:assembleDebug --stacktrace - name: Upload APK to Github Artifacts uses: actions/upload-artifact@v2 From 9b8c5e5707fc6cdc05e4e3c2c6ed1e519d591ff3 Mon Sep 17 00:00:00 2001 From: Danish Date: Sat, 1 Jan 2022 03:27:48 +0500 Subject: [PATCH 25/28] renamed github action config file --- .github/workflows/{generate_apk.yml => config.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{generate_apk.yml => config.yml} (100%) diff --git a/.github/workflows/generate_apk.yml b/.github/workflows/config.yml similarity index 100% rename from .github/workflows/generate_apk.yml rename to .github/workflows/config.yml From 1fb165c2af3f397165c9d31924d4de41fad7921c Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Sat, 1 Jan 2022 03:44:19 +0500 Subject: [PATCH 26/28] Update config.yml --- .github/workflows/config.yml | 6 ------ 1 file changed, 6 deletions(-) diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index 601c3d8..71cf079 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -22,9 +22,3 @@ jobs: - name: Build debug APK run: bash ./gradlew :internet:assembleDebug --stacktrace - - - name: Upload APK to Github Artifacts - uses: actions/upload-artifact@v2 - with: - name: app - path: app/build/outputs/apk/debug/app-debug.apk From dabf61cd0f8c70a676780e3a1d1434d6f4be12bc Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Sat, 1 Jan 2022 03:45:29 +0500 Subject: [PATCH 27/28] Update config.yml --- .github/workflows/config.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/config.yml b/.github/workflows/config.yml index 71cf079..d66ebe0 100644 --- a/.github/workflows/config.yml +++ b/.github/workflows/config.yml @@ -1,5 +1,5 @@ -name: Generate Apk +name: Github Actions Pixel on: push: branches: @@ -8,7 +8,7 @@ on: jobs: apk: - name: Generate Apk + name: Generate Apk for Internet Module runs-on: ubuntu-18.04 steps: - uses: actions/checkout@v1 From 98e6e46d662a2e2e3b7c22643b2fd0f27e048425 Mon Sep 17 00:00:00 2001 From: DaaniDev <55408411+DaaniDev@users.noreply.github.com> Date: Thu, 10 Feb 2022 19:23:16 +0500 Subject: [PATCH 28/28] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 7aacffd..0f4811d 100644 --- a/README.md +++ b/README.md @@ -129,11 +129,15 @@ For complete usage in Kotlin and Java clone the project in Android Studio and ru ## Issues Issues can be reported [here](https://github.com/mmobin789/pixel/issues). +## Known Issues +Due to an issue do not use this inside recyclerview or listview, it will not work as expected we are working on it to fix this issue soon. + ## Inspiration The idea of employing Kotlin Coroutines that drive the working of this library partly came from [Coil](https://github.com/coil-kt). ## Co-Creator [Malik Dawar](https://github.com/malikdawar) + [Muhammad Danish](https://github.com/DaaniDev) ## License Copyright 2020 Pixel Contributors