Skip to content

Commit a8d21ea

Browse files
committed
Update README and Fastfile with detailed usage examples and features for Instabug plugin
1 parent be8cebb commit a8d21ea

File tree

2 files changed

+110
-4
lines changed

2 files changed

+110
-4
lines changed

README.md

Lines changed: 75 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,87 @@ fastlane add_plugin instabug-stores-upload
1212

1313
## About instabug-stores-upload
1414

15-
Wrapper plugin for uploading builds to App Store and Play Store with Instabug-specific metadata reporting.
15+
Wrapper plugin for uploading builds to App Store and Play Store with Instabug-specific metadata reporting. This plugin provides custom actions that wrap the standard Fastlane actions and automatically report build and upload events to Instabug systems for better observability and integration into internal pipelines.
1616

17-
**Note to author:** Add a more detailed description about this plugin here. If your plugin contains multiple actions, make sure to mention them here.
17+
### Available Actions
18+
19+
- `instabug_build_ios_app` - Build iOS apps with Instabug reporting
20+
- `instabug_build_android_app` - Build Android apps with Instabug reporting
21+
- `instabug_upload_to_app_store` - Upload iOS builds to App Store with Instabug reporting
22+
- `instabug_upload_to_play_store` - Upload Android builds to Play Store with Instabug reporting
23+
24+
### Features
25+
26+
- Automatic reporting of build and upload events to Instabug
27+
- Branch-based tracking for Instabug Agents observability
28+
- Integration with existing Fastlane workflows
29+
- Support for both iOS and Android platforms
30+
- Secure API communication with Instabug services
1831

1932
## Example
2033

2134
Check out the [example `Fastfile`](fastlane/Fastfile) to see how to use this plugin. Try it by cloning the repo, running `fastlane install_plugins` and `bundle exec fastlane test`.
2235

23-
**Note to author:** Please set up a sample project to make it easy for users to explore what your plugin does. Provide everything that is necessary to try out the plugin in this project (including a sample Xcode/Android project if necessary)
36+
### Usage Examples
37+
38+
#### iOS Build
39+
```ruby
40+
lane :build_ios do
41+
instabug_build_ios_app(
42+
branch_name: "main",
43+
instabug_api_key: ENV["INSTABUG_API_KEY"],
44+
workspace: "MyApp.xcworkspace",
45+
scheme: "MyApp",
46+
export_method: "app-store",
47+
configuration: "Release"
48+
)
49+
end
50+
```
51+
52+
#### Android Build
53+
```ruby
54+
lane :build_android do
55+
instabug_build_android_app(
56+
branch_name: "main",
57+
instabug_api_key: ENV["INSTABUG_API_KEY"],
58+
task: "assembleRelease",
59+
project_dir: "android/",
60+
properties: {
61+
"android.injected.signing.store.file" => "keystore.jks",
62+
"android.injected.signing.store.password" => ENV["KEYSTORE_PASSWORD"],
63+
"android.injected.signing.key.alias" => "key0",
64+
"android.injected.signing.key.password" => ENV["KEY_PASSWORD"]
65+
}
66+
)
67+
end
68+
```
69+
70+
#### iOS Upload
71+
```ruby
72+
lane :upload_ios do
73+
instabug_upload_to_app_store(
74+
branch_name: "main",
75+
instabug_api_key: ENV["INSTABUG_API_KEY"],
76+
ipa: "path/to/your/app.ipa",
77+
skip_screenshots: true,
78+
skip_metadata: true
79+
)
80+
end
81+
```
82+
83+
#### Android Upload
84+
```ruby
85+
lane :upload_android do
86+
instabug_upload_to_play_store(
87+
branch_name: "main",
88+
instabug_api_key: ENV["INSTABUG_API_KEY"],
89+
package_name: "com.example.app",
90+
aab: "path/to/your/app.aab",
91+
track: "internal",
92+
skip_upload_screenshots: true
93+
)
94+
end
95+
```
2496

2597
## Run tests for this plugin
2698

fastlane/Fastfile

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,39 @@
11
# Fastfile for Instabug Stores Upload Plugin
22

3+
# Example lane for building iOS app with Instabug reporting
4+
lane :build_ios_app do |options|
5+
branch_name = options[:branch_name]
6+
7+
instabug_build_ios_app(
8+
branch_name: branch_name,
9+
instabug_api_key: ENV["INSTABUG_API_KEY"],
10+
# All standard build_ios_app parameters are supported
11+
workspace: "MyApp.xcworkspace",
12+
scheme: "MyApp",
13+
export_method: "app-store",
14+
configuration: "Release"
15+
)
16+
end
17+
18+
# Example lane for building Android app with Instabug reporting
19+
lane :build_android_app do |options|
20+
branch_name = options[:branch_name]
21+
22+
instabug_build_android_app(
23+
branch_name: branch_name,
24+
instabug_api_key: ENV["INSTABUG_API_KEY"],
25+
# All standard gradle parameters are supported
26+
task: "assembleRelease",
27+
project_dir: "android/",
28+
properties: {
29+
"android.injected.signing.store.file" => "keystore.jks",
30+
"android.injected.signing.store.password" => ENV["KEYSTORE_PASSWORD"],
31+
"android.injected.signing.key.alias" => "key0",
32+
"android.injected.signing.key.password" => ENV["KEY_PASSWORD"]
33+
}
34+
)
35+
end
36+
337
# Example lane for uploading to App Store with Instabug reporting
438
lane :upload_to_app_store do |options|
539
branch_name = options[:branch_name]
@@ -24,4 +58,4 @@ lane :upload_to_play_store do |options|
2458
aab: "path/to/your/app.aab",
2559
track: "internal"
2660
)
27-
end
61+
end

0 commit comments

Comments
 (0)