Skip to content

Instantly share code, notes, and snippets.

View pokemonni01's full-sized avatar

Wachirapong Prasertwong pokemonni01

View GitHub Profile
dev_dependencies:
flutter_test:
sdk: flutter
# The "flutter_lints" package below contains a set of recommended lints to
# encourage good coding practices. The lint set provided by the package is
# activated in the `analysis_options.yaml` file located at the root of your
# package. See that file for information about deactivating specific lint
# rules and activating additional ones.
flutter_lints: ^2.0.0
name: flutter_app_icon
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
find . -name "*.pom" -type f -exec sh -c 'mvn deploy:deploy-file -Durl="https://gitlab.com/api/v4/projects/<PROJECT_ID>/packages/maven" -DrepositoryId="gitlab-maven" -DpomFile="$0" -Dfile="${0%.pom}.aar"' '{}' \;
find . -name "*.pom" -type f -exec sh -c 'mvn deploy:deploy-file -Durl="https://gitlab.com/api/v4/projects/28330556/packages/maven" -DrepositoryId="gitlab-maven" -DpomFile="$0" -Dfile="${0%.pom}.aar"' '{}' \;
@pokemonni01
pokemonni01 / deploy flutter aar command
Created July 27, 2021 09:07
deploy flutter aar command
find . -name "*.pom" -type f -exec sh -c 'mvn deploy:deploy-file -Durl="https://gitlab.com/api/v4/projects/28330556/packages/maven" -DrepositoryId="gitlab-maven" -DpomFile="$0" -Dfile="${0%.pom}.aar"' '{}' \;
<settings>
<servers>
<server>
<id>gitlab-maven</id>
<configuration>
<httpHeaders>
<property>
<name>Private-Token</name>
<value>REPLACE_WITH_YOUR_PERSONAL_ACCESS_TOKEN</value>
</property>
@pokemonni01
pokemonni01 / xml
Created July 27, 2021 08:57
settings.xml
<settings>
<servers>
<server>
<id>gitlab-maven</id>
<configuration>
<httpHeaders>
<property>
<name>Private-Token</name>
<value>REPLACE_WITH_YOUR_PERSONAL_ACCESS_TOKEN</value>
</property>