diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 355386f4d..000000000 --- a/.travis.yml +++ /dev/null @@ -1,65 +0,0 @@ -language: android -jdk: - - openjdk11 -env: - global: - - ANDROID_API=30 - - EMULATOR_API=19 - - ANDROID_BUILD_TOOLS=30.0.2 - - ANDROID_COMMAND_LINE_TOOLS=7583922 - - ANDROID_HOME=~/android-sdk - - secure: X3J97ccW+8K0bXPXhX608vPx7Pr/G4ju7quxydqMaYGgClHxoL/WpXOBAyyllde5P28PY4kioaqcI21BEhnAw0QUbmnzVLA1Qd5VS7aMPHpEnInKuOxGZ2d570OZd1f+ozFVt05vzG0VBJlBAkVhz2GWNxQdmIV1sO28MH526JMuYaEREuuywVSZmAeY7AAbW9MeCC2wvHvNmhk2nk6NLRQcsrDHcBsimy9fnnQ9lT/QsvToi1ZJd/MN7YkGDUULR+YmaotBzG546UJ1EiZQX91bFEJfP0oL43Pk7t5snzmHnKjLOr8Mt5QsIUXaiy/uzhUVmuDh1i0GEpZmhqM7nz/T6P7ogaLbbyJeauNmf15nu+e3hSvNiTzKyIwfSSflv8Do3g8/Eo3dKfIi3I8/OKF/uZ76kywh2LRqtZAqxRDiAMDZVwsRgD4aztoWm5AWa3tSoGy1J7i1eoqX6bNqokRbjgheTqcjN13kCdSZi3pZX7UBYm2Vumhn4izhTume19Rh9SqTmRgQ8jM7ynxHh7vVsJPPJG0HbQ623xz+d9mtXGy1fAb0dcUJMXdOhFN3m6AnKuHiF7cmsqje7Euk/TOZyqZmu0xEhTkugMbNKwGrklJiwRr3IoLtPdhLE38u3/auloUqBQ4K/iA9ZdhAreTSHEaI9d3J4N6kqCj3U30= -android: - components: - - tools - - platform-tools - - build-tools-$ANDROID_BUILD_TOOLS - - android-$ANDROID_API - - extra-android-support - - extra-android-m2repository - - extra-google-m2repository - licenses: - - ".+" -git: - depth: 500 -before_install: - # Get Java 11 compatible tools: https://stackoverflow.com/a/68534598/4407321 - - touch $HOME/.android/repositories.cfg - - wget "https://dl.google.com/android/repository/commandlinetools-linux-${ANDROID_COMMAND_LINE_TOOLS}_latest.zip" -O commandlinetools.zip - - unzip commandlinetools.zip -d $ANDROID_HOME/ - - yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "platforms;android-${ANDROID_API}" --sdk_root=$ANDROID_HOME - - yes | $ANDROID_HOME/cmdline-tools/bin/sdkmanager "build-tools;${ANDROID_BUILD_TOOLS}" --sdk_root=$ANDROID_HOME - # Get Frost content - - openssl aes-256-cbc -K $encrypted_0454d0cf846c_key -iv $encrypted_0454d0cf846c_iv - -in files/frost.tar.enc -out files/frost.tar -d - - tar xvf files/frost.tar -after_success: - - "./generate-apk-release.sh" -script: - - "./gradlew --quiet androidGitVersion" - - "./gradlew spotlessCheck lintReleaseTest testReleaseUnitTest assembleReleaseTest" -notifications: - email: false - slack: - rooms: - secure: NC8a55iKsav9il4rNCtNZN6avovtv6ZpdJjyTRABxHp1zImn9Cuxaplecgzp8fRJqP8qLqPB/cvHG2WCSjyfB6g4rBIU/1NvtL4sLe666Mw08upTDGKwhOyr5n1MEcmpkEJaJyuh9KoNK2+8PmUmdK+1oGXYy6Sa+a8Izzpaaa05QYiKiT8wIMFSk6+kocHBNkpAxTf2l/ywChhNJcappEXNjVCkEBL5S1TUdC//lPdDmsX6o+2fvs2goyxkYJl5voL34NLf2VBxDQUd/Nu0KUhwQW+aiV4xUNZSYyKi3YjPf/SBX20YLtRbrkpqct0M93BhwjCgFlO2wdyCyUc5dMde0SJ6h42yvhZKGKTkvbO353rDqs9hhiQzVtrTr2MNkefw6eJcPUJj2yPm4hUp4ppWRHunl/7Eha78Gde4MLrwDtDWNeByPWNNYpjr8CqQtmZ0JjT8PuZB2iHyNDr8TjXQot16zQ2Xg7oDmedUymiZmjRxI812zHIAP3nqT4IKd7ji0Bi9XxSqygfqQyMBCc9DhzF8LTgJvmrZ3ValSKPcGEqLZdeaVO9VmJOnZ/AY5vBrkjaWBmArFW5m5sLOVtlS49VavN/bSdgoRXqUatcNxKyUNaJVgA4W6XnNiXB61FFkC1gDvC/7OyS/PIOse3lPehL+5Z2re92zTEYhS8s= - on_success: always - on_failure: always - template: - - Frost Build <%{build_url}|#%{build_number}> (<%{compare_url}|%{commit}>) of - %{repository}@%{branch} %{result} in %{duration} - - "%{commit_subject}" - - "" -sudo: false -branches: - except: - - master - - l10n_dev -before_cache: - - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock - - rm -rf $HOME/.gradle/caches/*/plugin-resolution/ -cache: - directories: - - "$HOME/.gradle/caches/" - - "$HOME/.gradle/wrapper/" \ No newline at end of file diff --git a/files/frost.tar.enc b/files/frost.tar.enc deleted file mode 100644 index 045531267..000000000 Binary files a/files/frost.tar.enc and /dev/null differ diff --git a/generate-apk-release.sh b/generate-apk-release.sh deleted file mode 100755 index a1438a6c8..000000000 --- a/generate-apk-release.sh +++ /dev/null @@ -1,58 +0,0 @@ -#!/usr/bin/env bash - -# config -# make sure the GITHUB_API_KEY is encrypted and inside the travis file -# travis encrypt GITHUB_API_KEY=super_secret --add env.global -# Note - gradle 3.0.0 generates outputs in their own folders - ctrl + f > releaseTest - -RELEASE_REPO=AllanWang/Frost-for-Facebook-APK-Builder -USER_AUTH=PitchedApps -EMAIL=pitchedapps@gmail.com -MODULE_NAME=app -VERSION_KEY=Frost -# Make version key different from module name - -# create a new directory that will contain our generated apk -mkdir ${HOME}/${VERSION_KEY}/ -# copy generated apk from build folder to the folder just created -cp -a ${MODULE_NAME}/build/outputs/apk/releaseTest/. ${HOME}/${VERSION_KEY}/ -printf "Moved apks\n" -ls -a ${HOME}/${VERSION_KEY} -if [[ -z "$(find ${HOME}/${VERSION_KEY} -name '*.apk')" ]]; then - echo "No apks found" - exit 1 -fi - -# go to home and setup git -echo "Clone Git" -cd $HOME -git config --global user.email "$EMAIL" -git config --global user.name "$USER_AUTH CI" -# clone the repository in the buildApk folder -git clone --quiet --branch=master https://${USER_AUTH}:${GITHUB_API_KEY}@github.com/${RELEASE_REPO}.git master > /dev/null -# create version file -echo "Create Version File" -cd master -echo "${VERSION_KEY} v${TRAVIS_BUILD_NUMBER}" > "${VERSION_KEY}.txt" - -echo "Push Version File" -git remote rm origin -git remote add origin https://${USER_AUTH}:${GITHUB_API_KEY}@github.com/${RELEASE_REPO}.git -git add -f . -git commit -m "Travis build ${TRAVIS_BUILD_NUMBER} pushed [skip ci]" -git push -fq origin master > /dev/null - -echo "Create New Release" -API_JSON="$(printf '{"tag_name": "v%s","target_commitish": "master","name": "v%s","body": "Automatic Release v%s for branch %s %s","draft": false,"prerelease": false}' ${TRAVIS_BUILD_NUMBER} ${TRAVIS_BUILD_NUMBER} ${TRAVIS_BUILD_NUMBER} "\`${TRAVIS_BRANCH}\`" "\nhttps://github.com/${TRAVIS_REPO_SLUG}/commit/${TRAVIS_COMMIT}")" -newRelease="$(curl --data "${API_JSON}" -H "Authorization: token ${GITHUB_API_KEY}" https://api.github.com/repos/${RELEASE_REPO}/releases)" -rID="$(echo "$newRelease" | jq ".id")" - -cd ${HOME}/${VERSION_KEY} -echo "Push apk to $rID" -for apk in $(find *.apk -type f); do - apkName="${apk::-4}" - printf "Apk $apkName\n" - curl -H "Authorization: token ${GITHUB_API_KEY}" "https://uploads.github.com/repos/${RELEASE_REPO}/releases/${rID}/assets?name=${apkName}-v${TRAVIS_BUILD_NUMBER}.apk" --header 'Content-Type: application/zip' --upload-file ${apkName}.apk -X POST -done - -echo -e "Done\n" \ No newline at end of file