Skip to content

Commit

Permalink
[HOTFIX] - v8.6.5 (#74)
Browse files Browse the repository at this point in the history
  • Loading branch information
alyezz authored Sep 7, 2019
1 parent a38508f commit 40e07d7
Show file tree
Hide file tree
Showing 509 changed files with 54,956 additions and 318 deletions.
106 changes: 106 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,106 @@
version: 2
jobs:
android_tests:
working_directory: ~/project
macos:
xcode: "9.4.0"
environment:
JVM_OPTS: -Xmx3200m
steps:
- checkout:
path: ~/project
- run:
name: Setup environment variables
command: |
echo 'export PATH="$PATH:/usr/local/opt/node@8/bin:${HOME}/.yarn/bin:${HOME}/${CIRCLE_PROJECT_REPONAME}/node_modules/.bin:/usr/local/share/android-sdk/tools/bin"' >> $BASH_ENV
echo 'export ANDROID_HOME="/usr/local/share/android-sdk"' >> $BASH_ENV
echo 'export ANDROID_SDK_HOME="/usr/local/share/android-sdk"' >> $BASH_ENV
echo 'export ANDROID_SDK_ROOT="/usr/local/share/android-sdk"' >> $BASH_ENV
echo 'export QEMU_AUDIO_DRV=none' >> $BASH_ENV
echo 'export JAVA_HOME=/Library/Java/Home' >> $BASH_ENV
echo 'export PATH="$PATH:`pwd`/flutter/bin"' >> $BASH_ENV
echo "export PATH=\$PATH:/usr/local/share/android-sdk/platform-tools/" >>$BASH_ENV
- run:
name: Install Android sdk
command: |
HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask
HOMEBREW_NO_AUTO_UPDATE=1 brew cask install android-sdk
- run:
name: Install Gradle
command: |
HOMEBREW_NO_AUTO_UPDATE=1 brew tap homebrew/cask
HOMEBREW_NO_AUTO_UPDATE=1 brew install gradle
- run:
name: Install emulator dependencies
command: (yes | sdkmanager "platform-tools" "platforms;android-26" "extras;intel;Hardware_Accelerated_Execution_Manager" "build-tools;26.0.0" "system-images;android-26;google_apis;x86" "emulator" --verbose) || true
- run: avdmanager create avd -n Pixel_2_API_26 -k "system-images;android-26;google_apis;x86" -g google_apis -d "Nexus 5"
- run:
name: Run emulator in background
command: /usr/local/share/android-sdk/tools/emulator @Pixel_2_API_26 -noaudio -no-boot-anim -no-window
background: true
- run:
name: download Cordova
command: npm install -g cordova
- run:
name: Copy sampleApp
command: cp -a sampleApp ../
- run:
name: chmod permissions
command: cd ../; chmod -R 777 sampleApp
- run:
name: Npm Install
command: cd ../sampleApp; npm install
- run:
name: Add Instabug
command: cd ../sampleApp; cordova plugin add ../project
- run:
name: Build App
command: cd ../sampleApp; cordova build android
- run:
name: Download Android Dependencies
command: cd ../sampleApp/platforms/android; ./gradlew androidDependencies
- run:
name: Disable animations
command: |
adb shell settings put global window_animation_scale 0.0
adb shell settings put global transition_animation_scale 0.0
adb shell settings put global animator_duration_scale 0.0
adb shell settings put secure long_press_timeout 1500
- run:
name: Run UI Tests
command: cd ../sampleApp/platforms/android; ./gradlew app:connectedAndroidTest

ios_tests:
macos:
xcode: "10.2.0"
working_directory: ~/project
environment:
FL_OUTPUT_DIR: output
steps:
- checkout:
path: ~/project
- run:
name: download Cordova
command: npm install -g cordova
- run:
name: Copy sampleApp
command: cp -a sampleApp ../
- run:
name: chmod permissions
command: cd ../; chmod -R 777 sampleApp
- run:
name: Npm Install
command: cd ../sampleApp; npm install
- run:
name: Add Instabug
command: cd ../sampleApp; cordova plugin add ../project
- run:
name: Build App
command: cd ../sampleApp; cordova build ios
- run:
name: Build and run tests
command: cd ../sampleApp/platforms/ios; xcodebuild -workspace HelloCordova.xcworkspace -scheme HelloCordova -sdk iphonesimulator -destination 'platform=iOS Simulator,name=iPhone X,OS=12.2' test | xcpretty

publish:
macos:
xcode: "10.1.0"
Expand All @@ -13,8 +114,13 @@ workflows:
version: 2
publish:
jobs:
- android_tests
- ios_tests
- hold:
type: approval
requires:
- android_tests
- ios_tests
filters:
branches:
only: master
Expand Down
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
*.settings
.idea/

gradle/
gradlew
gradlew.bat
local.properties
node_modules/

Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## v8.6.5 (2019-09-06)

* Fixes various android issues

## v8.6.4 (2019-09-06)

* Fixes missing imports in android.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "instabug-cordova",
"version": "8.6.4",
"version": "8.6.5",
"description": "The purpose of this plugin is to simplify the process of integrating the Instabug SDK in a hybrid application, as well as to provide an interface to interfacing with the SDK through JavaScript.",
"main": "index.js",
"repository": {
Expand Down
127 changes: 0 additions & 127 deletions sample-app/www/css/index.css

This file was deleted.

33 changes: 0 additions & 33 deletions sample-app/www/css/second.css

This file was deleted.

Binary file removed sample-app/www/img/bg.png
Binary file not shown.
57 changes: 0 additions & 57 deletions sample-app/www/index.html

This file was deleted.

21 changes: 0 additions & 21 deletions sample-app/www/js/instabugSample.js

This file was deleted.

Loading

0 comments on commit 40e07d7

Please sign in to comment.