-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6919320
commit 24d6dca
Showing
897 changed files
with
52,539 additions
and
9,501 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/bash | ||
file="$4" | ||
search="$1" | ||
replace="$2" | ||
dry_run="$3" | ||
|
||
if [[ "$dry_run" == "true" ]]; then | ||
if grep -q "$search" "$file"; then | ||
echo "$file" | ||
fi | ||
else | ||
sed -i '' "s#$search#$replace#g" "$file" | ||
fi |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
#!/bin/bash | ||
set -e | ||
# Function to check if a file contains a search string | ||
|
||
# Main script | ||
if [ $# -lt 2 ]; then | ||
echo "Usage: $0 <replacements_file> <directory> [-d]" | ||
exit 1 | ||
fi | ||
|
||
dry_run=false | ||
replacements_file="$1" | ||
directory="$2" | ||
|
||
# Check for dry run flag | ||
shift 2 | ||
while [[ $# -gt 0 ]]; do | ||
case "$1" in | ||
-d|--dry-run) | ||
dry_run=true | ||
;; | ||
*) | ||
echo "Unknown option: $1" | ||
exit 1 | ||
;; | ||
esac | ||
shift | ||
done | ||
|
||
# Read replacements from file | ||
while IFS= read -r line; do | ||
if [[ $line =~ ^([^:]+):(.+)$ ]]; then | ||
search="${BASH_REMATCH[1]}" | ||
replace="${BASH_REMATCH[2]}" | ||
echo "Replacing '$search' with '$replace'" | ||
|
||
# Find all files and apply the replacement or print | ||
find "$directory" -type f -print0 | xargs -0 -n 1 ./replace_in_file.sh "$search" "$replace" "$dry_run" | sort -u | ||
fi | ||
done < "$replacements_file" |
5 changes: 2 additions & 3 deletions
5
...-core/pubnub-core-api/src/jvmMain/kotlin/com/pubnub/api/endpoints/HasOverridableConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,8 @@ | ||
package com.pubnub.api.endpoints | ||
|
||
import com.pubnub.api.v2.BasePNConfiguration | ||
|
||
interface HasOverridableConfig { | ||
fun overrideConfiguration(configuration: BasePNConfiguration) | ||
fun overrideConfiguration(configuration: PNConfiguration) | ||
|
||
val configuration: BasePNConfiguration | ||
val configuration: PNConfiguration | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.