Skip to content

Commit

Permalink
Migrate to Maven Central repository
Browse files Browse the repository at this point in the history
  • Loading branch information
KamiSempai committed Apr 28, 2021
1 parent 6a1dd63 commit 765c50f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@
LocoLaser - Localozation tool for Android and iOS. See https://github.com/PocketByte/LocoLaser/ for more details.
<br>This example project shows how to use localization in iOS.

### Migration from JCenter to Maven Central
To migrate to Maven Central reposytory replace file `localize.command` in your project with a new one from current repository.

##### 1 Step: Add Bash script
Example has a special Bash scripts in folder `"./locloaser-example-ios/"`. You can copy them without changes in your project in the folder with sources. There are 3 files:
- **`localize.command`** - Run LocoLaser with default parameters;
Expand Down
4 changes: 2 additions & 2 deletions locloaser-example-ios/localize.command
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ CONFIG_FILE="localization_config.json"

TEMP_DIR="../DerivedData/LocoLaserTemp"
ARTIFACTS_DIR="$TEMP_DIR/artifacts"
REPOSITORY="https://bintray.com/pocketbyte/maven"
REPOSITORY="https://repo1.maven.org/maven2"

function artifactFile() {
local ARTIFACT=$1
Expand Down Expand Up @@ -40,7 +40,7 @@ function loadArtifact() {

local GROUP_PATH=${GROUP//[.]//}

ARTIFACT_URL="$REPOSITORY/download_file?file_path=$GROUP_PATH/$NAME/$VERSION/$NAME-$VERSION.jar"
ARTIFACT_URL="$REPOSITORY/$GROUP_PATH/$NAME/$VERSION/$NAME-$VERSION.jar"
echo "Loading: $ARTIFACT_URL"
curl -L -o $ARTIFACT_FILE $ARTIFACT_URL
if [ $? -eq 0 ]
Expand Down

0 comments on commit 765c50f

Please sign in to comment.