diff --git a/.github/workflows/publish-snapshot.yml b/.github/workflows/publish-snapshot.yml deleted file mode 100644 index b43da5ae..00000000 --- a/.github/workflows/publish-snapshot.yml +++ /dev/null @@ -1,46 +0,0 @@ -name: Publish - Snapshot - -on: - push: - branches: - - master - -jobs: - publish: - runs-on: ubuntu-latest - steps: - - name: Checkout project sources - uses: actions/checkout@v3 - - name: Check whether the version is a snapshot - run: | - if grep -q "\-SNAPSHOT" ./contentstack/build.gradle - then - : - else - exit 1 - fi - - name: Setup Gradle - uses: gradle/gradle-build-action@v2 - - name: Setup local.properties - run: | - cat << EOF >> local.properties - sdk.dir=$ANDROID_HOME - host="${{ secrets.HOST }}" - APIKey="${{ secrets.API_KEY }}" - deliveryToken="${{ secrets.DELIVERY_TOKEN }}" - environment="${{ secrets.ENVIRONMENT }}" - contentType="${{ secrets.CONTENT_TYPE }}" - assetUid="${{ secrets.ASSET_UID }}" - EOF - - name: Build the SDK - Snapshot - run: | - ./gradlew clean build - - name: Publish the SDK - Snapshot - run: | - ./gradlew publishAllPublicationsToMavenCentralRepository - env: - ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.mavenCentralUsername }} - ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.mavenCentralPassword }} - ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.signingInMemoryKey }} - ORG_GRADLE_PROJECT_signingInMemoryKeyId: ${{ secrets.signingInMemoryKeyId }} - ORG_GRADLE_PROJECT_signingInMemoryKeyPassword: ${{ secrets.signingInMemoryKeyPassword }} \ No newline at end of file diff --git a/.gitignore b/.gitignore index 66adfeb1..7e8a92bc 100644 --- a/.gitignore +++ b/.gitignore @@ -26,8 +26,8 @@ build/ # Local configuration file (sdk path, etc) local.properties -gradle.properties -/gradle.properties +# gradle.properties +# /gradle.properties # Proguard folder generated by Eclipse diff --git a/gradle.properties b/gradle.properties new file mode 100644 index 00000000..64b7045d --- /dev/null +++ b/gradle.properties @@ -0,0 +1,4 @@ +android.useAndroidX=true +android.enableJetifier=true +android.enableR8.fullMode=false +org.gradle.jvmargs=-XX:MaxMetaspaceSize=512m \ No newline at end of file