Skip to content

Commit

Permalink
#1 configured rultor and fastlane
Browse files Browse the repository at this point in the history
  • Loading branch information
ammaratef45 committed Mar 3, 2019
1 parent 823fb10 commit e7d0c37
Show file tree
Hide file tree
Showing 15 changed files with 161 additions and 12 deletions.
35 changes: 25 additions & 10 deletions .rultor.yml
@@ -1,17 +1,32 @@
architect:
- ammaratef45
docker:
as_root: true
image: adamantium/flutter

install: |-
sudo gem install pdd
git clone https://github.com/flutter/flutter.git -b beta --depth 1
./flutter/bin/flutter doctor
curl -sSL https://get.rvm.io | bash -s stable --ruby
source /usr/local/rvm/scripts/rvm
gem install pdd
gem install fastlane
decrypt:
repo/attendance/android/api-project.json: "repo/attendance/android/api-project.json.asc"
repo/attendance/android/key.properties: "repo/attendance/android/key.properties.asc"

merge:
script: |-
flutter doctor
cd attendance
../flutter/bin/flutter packages get
../flutter/bin/flutter test
../flutter/bin/flutter -v build apk
cd ../attendance_admin
../flutter/bin/flutter packages get
../flutter/bin/flutter test
../flutter/bin/flutter -v build apk
flutter packages get
flutter test
flutter -v build apk
pdd -f /dev/null -v
deploy:
script: |-
flutter doctor
cd attendance
flutter -v build apk
cd android
fastlane beta
3 changes: 3 additions & 0 deletions attendance/android/Gemfile
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gem "fastlane"
4 changes: 2 additions & 2 deletions attendance/android/app/build.gradle
Expand Up @@ -41,8 +41,8 @@ android {
applicationId "com.ammar.attendance"
minSdkVersion 16
targetSdkVersion 27
versionCode 4
versionName "0.0.3-alpha"
versionCode 5
versionName "0.1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}

Expand Down
2 changes: 2 additions & 0 deletions attendance/android/fastlane/Appfile
@@ -0,0 +1,2 @@
json_key_file("api-project.json") # Path to the json secret file - Follow https://docs.fastlane.tools/actions/supply/#setup to get one
package_name("com.ammar.attendance") # e.g. com.krausefx.app
46 changes: 46 additions & 0 deletions attendance/android/fastlane/Fastfile
@@ -0,0 +1,46 @@
# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
# https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
# https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:android)

platform :android do
desc "Runs all the tests"
lane :test do
gradle(task: "test")
end

desc "Submit a new Beta Build to Crashlytics Beta"
lane :beta do
gradle(task: "clean assembleRelease")
crashlytics

# sh "your_script.sh"
# You can also use other beta testing services here
end

desc "Deploy a new version to the Google Play"
lane :deploy do
gradle(task: "clean assembleRelease")
upload_to_play_store
end
end

lane :beta do
gradle(
task: 'assemble',
build_type: 'Release'
)
upload_to_play_store(track: 'beta', apk: '../build/app/outputs/apk/release/app-release.apk')
end
47 changes: 47 additions & 0 deletions attendance/android/fastlane/README.md
@@ -0,0 +1,47 @@
fastlane documentation
================
# Installation

Make sure you have the latest version of the Xcode command line tools installed:

```
xcode-select --install
```

Install _fastlane_ using
```
[sudo] gem install fastlane -NV
```
or alternatively using `brew cask install fastlane`

# Available Actions
### beta
```
fastlane beta
```


----

## Android
### android test
```
fastlane android test
```
Runs all the tests
### android beta
```
fastlane android beta
```
Submit a new Beta Build to Crashlytics Beta
### android deploy
```
fastlane android deploy
```
Deploy a new version to the Google Play

----

This README.md is auto-generated and will be re-generated every time [fastlane](https://fastlane.tools) is run.
More information about fastlane can be found on [fastlane.tools](https://fastlane.tools).
The documentation of fastlane can be found on [docs.fastlane.tools](https://docs.fastlane.tools).
@@ -0,0 +1 @@
Basic simple stuff yet
@@ -0,0 +1 @@
Now you can see a list of sessions you scanned.
@@ -0,0 +1,3 @@
-See the history of sessions attended.
-See details of any session.
-Scan for session leaving is possible now.
@@ -0,0 +1,3 @@
-See the history of sessions attended.
-See details of any session.
-Scan for session leaving is possible now.
@@ -0,0 +1 @@
Scan the QR when arrive and leave a class for easy and quick attendance record with all needed info
@@ -0,0 +1 @@
Scan QR for classes attendance
@@ -0,0 +1 @@
Attendance
Empty file.
25 changes: 25 additions & 0 deletions attendance/android/fastlane/report.xml
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8"?>
<testsuites>
<testsuite name="fastlane.lanes">




<testcase classname="fastlane.lanes" name="0: default_platform" time="0.005435">

</testcase>


<testcase classname="fastlane.lanes" name="1: gradle" time="8.584314">

</testcase>


<testcase classname="fastlane.lanes" name="2: upload_to_play_store" time="92.252003">

<failure message="C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/actions/actions_helper.rb:48:in `execute_action'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/runner.rb:232:in `block in execute_action'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/runner.rb:227:in `chdir'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/runner.rb:227:in `execute_action'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/runner.rb:157:in `trigger_action_by_name'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/fast_file.rb:154:in `method_missing'&#10;Fastfile:45:in `block in parsing_binding'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/lane.rb:33:in `call'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/runner.rb:49:in `block in execute'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/runner.rb:45:in `chdir'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/runner.rb:45:in `execute'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/lane_manager.rb:56:in `cruise_lane'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/command_line_handler.rb:36:in `handle'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/commands_generator.rb:108:in `block (2 levels) in run'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:178:in `call'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/command.rb:153:in `run'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/runner.rb:476:in `run_active_command'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane_core/lib/fastlane_core/ui/fastlane_runner.rb:76:in `run!'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/commander-fastlane-4.4.6/lib/commander/delegates.rb:15:in `run!'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/commands_generator.rb:333:in `run'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/commands_generator.rb:41:in `start'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/fastlane/lib/fastlane/cli_tools_distributor.rb:119:in `take_off'&#10;C:/Ruby25-x64/lib/ruby/gems/2.5.0/gems/fastlane-2.117.1/bin/fastlane:23:in `&lt;top (required)&gt;'&#10;C:/Ruby25-x64/bin/fastlane:23:in `load'&#10;C:/Ruby25-x64/bin/fastlane:23:in `&lt;main&gt;'&#10;&#10;Google Api Error: apkUpgradeVersionConflict: APK specifies a version code that has already been used." />

</testcase>

</testsuite>
</testsuites>

0 comments on commit e7d0c37

Please sign in to comment.