Skip to content

Commit

Permalink
Repository improvements (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
wcoder authored Oct 31, 2022
1 parent d594506 commit 8af5c6a
Show file tree
Hide file tree
Showing 6 changed files with 53 additions and 25 deletions.
2 changes: 1 addition & 1 deletion .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

See [Contributing](/documentation/articles/contributing.md) for information about coding styles, source structure, making pull requests, and more.

# Developers
## Developers

See the [Developer Guide](/documentation/articles/developer-guide.md) for details about developing in this repo.
10 changes: 5 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!-- WAIT!
<!-- WAIT!
Before you submit this PR, make sure you're building on and targeting the right branch!
PLEASE DELETE THE ALL THESE COMMENTS BEFORE SUBMITTING! THANKS!!!
Expand All @@ -21,12 +21,12 @@ Added:
Changed:
- object FakeControl.MakeShiny => FakeControl FakeControl.MakeShiny
Removed:
- object FakeControl.MakeShiny => FakeControl FakeControl.MakeShiny
-->

None

### Platforms Affected
Expand All @@ -51,6 +51,6 @@ Not applicable
<!-- Go over all the following points, and put an `x` in all the boxes that apply. -->

- [ ] I have read the [CONTRIBUTING](https://github.com/Softeq/XToolkit.WhiteLabel/blob/master/.github/CONTRIBUTING.md) document
- [ ] My code follows the [code styles](https://github.com/Softeq/dotnet-guidelines)
- [ ] My code follows the [code styles](https://github.com/Softeq/dotnet-guidelines/tree/xamarin_guidelines)
- [ ] Targets the correct branch
- [ ] Tests are passing (or failures are unrelated)
30 changes: 15 additions & 15 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,43 +1,43 @@

c/bindings:
- any: ['*Bindings*/*', '!*Bindings*Tests/*']
- any: ['*Bindings*/**/*', '!*Bindings*Tests/**/*']

c/common:
- any: ['*Common*/*', '!*Common*Tests/*']
- any: ['*Common*/**/*', '!*Common*Tests/**/*']

c/connectivity:
- any: ['*Connectivity*/*', '!*Connectivity*Tests/*']
- any: ['*Connectivity*/**/*', '!*Connectivity*Tests/**/*']

c/permissions:
- any: ['*Permissions*/*', '!*Permissions*Tests/*']
- any: ['*Permissions*/**/*', '!*Permissions*Tests/**/*']

c/push-notifications:
- any: ['*PushNotifications*/*', '!*PushNotifications*Tests/*']
- any: ['*PushNotifications*/**/*', '!*PushNotifications*Tests/**/*']

c/remote:
- any: ['*Remote*/*', '!*Remote*Tests/*']
- any: ['*Remote*/**/*', '!*Remote*Tests/**/*']

c/wl:
- any: ['*WhiteLabel*/*', '!*WhiteLabel*Tests/*', '!*WhiteLabel.Essentials*/*', '!*WhiteLabel.Forms*/*']
- any: ['*WhiteLabel*/**/*', '!*WhiteLabel*Tests/*', '!*WhiteLabel.Essentials*/*', '!*WhiteLabel.Forms*/**/*']

c/wl.essentials:
- any: ['*WhiteLabel.Essentials*/*', '!*WhiteLabel.Essentials*Tests/*']
- any: ['*WhiteLabel.Essentials*/**/*', '!*WhiteLabel.Essentials*Tests/**/*']

c/wl.forms:
- any: ['*WhiteLabel.Forms*/*', '!*WhiteLabel.Forms*Tests/*']
- any: ['*WhiteLabel.Forms*/**/*', '!*WhiteLabel.Forms*Tests/**/*']

c/playground:
- samples/Playground*/*
- samples/Playground*/**/*

CI/CD:
- .github/workflows/*
- azure-pipelines/*
- .github/workflows/**/*
- azure-pipelines/**/*

documentation:
- documentation/*
- documentation/**/*

p/Android:
- '*.Droid/*'
- '*.Droid/**/*'

p/iOS:
- '*.iOS/*'
- '*.iOS/**/*'
5 changes: 4 additions & 1 deletion .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ on:

jobs:
triage:
permissions:
contents: read
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@master
- uses: actions/labeler@v4
with:
repo-token: "${{ secrets.GITHUB_TOKEN }}"
8 changes: 5 additions & 3 deletions documentation/articles/developer-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,19 @@

## Clone source code

> git clone https://github.com/Softeq/XToolkit.WhiteLabel.git
```sh
git clone https://github.com/Softeq/XToolkit.WhiteLabel.git
```

## Building the repository

1. Open the main solution [XToolkit.sln](https://github.com/Softeq/XToolkit.WhiteLabel/tree/master/) via Visual Studio for Mac or Visual Studio IDE or Rider;
2. Restore NuGet packages;
3. For build Android project:
- Change build configuration to **Debug/AnyCPU**
- Change build configuration to **Debug.Droid/AnyCPU**
- Set **Playground.Droid** as startup project
4. For build iOS project:
- Change build configuration to **Debug/iPhoneSimulator**
- Change build configuration to **Debug.iOS/iPhoneSimulator**
- Set **Playground.iOS** as startup project
5. For build Xamarin.Forms projects:
- Android: **Playground.Forms.Droid**
Expand Down
23 changes: 23 additions & 0 deletions tools/binobj-cleaner.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
#!/bin/bash

# How to use:
# tools/binobj-cleaner.sh <path>
# path - root path and cleanup entry point
# Example:
# sh tools/binobj-cleaner.sh .

if [ -z $1 ] ; then
echo "Root path argument is required!"
exit 1
else
folders_to_remove=$(find $1 -type d \( -name bin -or -name obj \))

if [[ $folders_to_remove = "" ]]; then
echo "No bin or obj folders to remove"
else
echo "Removing folders:"
echo "$folders_to_remove"

rm -rf $folders_to_remove
fi
fi

0 comments on commit 8af5c6a

Please sign in to comment.