GithubHelp home page GithubHelp logo

codemagic-ci-cd / codemagic-sample-projects Goto Github PK

View Code? Open in Web Editor NEW
162.0 3.0 321.0 121.15 MB

A collection of sample apps built with Codemagic CI/CD. Please see the codemagic.yaml file for a sample workflow configuration.

Home Page: https://codemagic.io

Shell 1.25% Starlark 0.70% Kotlin 2.32% Java 11.20% Dart 7.22% Ruby 2.25% Swift 9.01% Objective-C 3.03% HTML 7.29% CSS 0.99% JavaScript 2.34% TypeScript 2.40% SCSS 0.76% C 0.65% C# 19.12% CMake 8.07% C++ 12.70% Makefile 0.41% Objective-C++ 1.09% ShaderLab 7.18%
android ios flutter react-native cicd yaml codemagic

codemagic-sample-projects's Introduction

Codemagic Sample Projects

codemagic-banner

Flutter

Android native

iOS native

React Native

Unity

Other platforms

Click to expand...

Ionic Samples

Kotlin Multiplatform Mobile Samples

.NET MAUI Samples


Integrations

Crash reporting

Code quality

Messaging

Project management

Testing

Real-device testing

Other

Older sample projects

Flutter Samples

iOS (Native) Samples

Android (Native) Samples

React Native Samples

Integrations

YAML Samples

Cordova Samples

Getting help and support

If you have a technical question or need help with some particular issue, you can get help on our GitHub discussions page.

Customers who have enabled billing can use the in-app chat widget to get support. You must be logged in to see the chat icon at the bottom right corner (please note that some adblockers might block the chat widget).

Raising issues

If there are any use cases that are not covered in the sample projects you can create an issue to request them:

https://github.com/codemagic-ci-cd/codemagic-sample-projects/issues

codemagic-sample-projects's People

Contributors

abegehr avatar aikedejongste avatar alanlawrance avatar aperekalin avatar cleandust avatar craastad avatar dtrdic avatar helinanever avatar himesh-cm avatar icarusdust avatar jamesmontemagno avatar k-codemagic avatar kandicepastel avatar kevin-suhajda avatar madisp avatar maks avatar mohammedbabelly20 avatar nevercode-rudrank avatar nilsreichardt avatar rafeysup93 avatar rudrankriyam avatar sbis04 avatar tahatesser avatar todah-zg avatar vearnold avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

codemagic-sample-projects's Issues

exited with status code 1

Hello there I am integrating the Codemagic in my iOS App.

I am getting exited with status code 1 error at scripts when doing pod install.

like,

scripts:
- name: Install pods
script: |
pod install

BUILD_NUMBER is used for both build number and minor version

Describe the sample projects update you'd like to see
In the sample yaml for flutter (flutter/flutter-android-and-ios-yaml-demo-project/codemagic.yaml) , the BUILD_NUMBER is correctly retrieved from google play but is then incorrectly used as both the minor version of the app version number and the build number.

BUILD_NUMBER=$(($(google-play get-latest-build-number --package-name "$PACKAGE_NAME" --tracks="$GOOGLE_PLAY_TRACK") + 1))      
          flutter build appbundle --release \
            --build-name=1.0.$BUILD_NUMBER \
            --build-number=$BUILD_NUMBER

I think it would be more correct if the BUILD_NUMBER variable were only used for the --build-number setting. the build-name is meant to change less frequently and could either be hard coded by the user of the template or retrieved in a seperate call to google-play (couldn't find such a call)....

BUILD_NUMBER=$(($(google-play get-latest-build-number --package-name "$PACKAGE_NAME" --tracks="$GOOGLE_PLAY_TRACK") + 1))      
          flutter build appbundle --release \
            --build-name=1.0.CHANGE_THIS_YOURSELF \
            --build-number=$BUILD_NUMBER

Additional context
Note in the screenshot the build number (4) is both the minor version and the build number. this is incorrect, the scripting should have produced 1.02 with a latest version of 4.

Screen Shot 2023-06-30 at 12 17 47 am

Getting support
Support for customers who haven't enabled billing is available in the Discussions section of our Documentation repository.

If you have enabled billing in Codemagic, you can contact the support team directly using the in-app chat widget.

Unity CCD - flag needs an argument: --environment

we are facing issue regarding Cloud Content Delivery. We followed this tutorial.
How to deploy game updates with Unity Cloud Content Delivery and Codemagic
Codemagic is now showing error "flag needs an argument: --environment"
All IDs are added to environment variable already.

#!/usr/bin/env bash
ucd entries sync PricklyBear/AssetBundles/Android --apikey $ {CCD_API_KEY} --bucket $ {CCD_BUCKET_ID} --environment $ {CCD_ENVIRONMENT_ID}
ucd releases create --apikey $ {CCD_API_KEY} --bucket $ {CCD_BUCKET_ID} --environment $ {CCD_ENVIRONMENT_ID}
flag needs an argument: --environment
flag needs an argument: --environment
Build failed :|
Step 2 script Login+Sync CCD exited with status code 1

Request for adding Codemagic App Preview to Codemagic Sample projects

Hey ๐Ÿ‘‹

This is a request to add a sample that uses the Codemagic App Preview tool. It's a free and open-source tool built on top of Codemagic that improves the pull request review process.

I could create a pull request for that and maintain it, that's not a problem. However, you need to decide if this something you want to have in your samples project since it's not an official Codemagic tool.

Please don't hesitate to deny this request.

Add Example for Testlab and IOS

I'm currently trying to add testlab to my flutter integration tests.
There are examples about how to do it with Android but none about IOS.

Readme files seem to contain old info about securing environment variables

Some readme files have the following:

Encrypted Environment Variables
Use the Codemagic web app to securely encrypt environment variables that are included in the codemagic.yaml. These values can only be accessed on the Codemagic build servers.

Please note that encrypted values are specific to your personal account or team. If you move your app from personal account to a Team or vice versa you will need to re-encrypt these values.

Let's revise current repos and update with new approach where variables are defined in Codemagic application in team level, app level and workflow level.

Encryption API remains active, but seems better to keep it simple in these cases.

Update Flutter samples

Looks like all the Flutter samples currently have flutter build apk --release

For instance

cd . && flutter build apk --release --build-name=1.0.0 --build-number=$(($(google-play get-latest-build-number --package-name "$PACKAGE_NAME") + 1))

Google requires an app bundle for publishing new apps from Aug 2021.

https://android-developers.googleblog.com/2021/06/the-future-of-android-app-bundles-is.html

Also, Flutter docs prefer app bundles too.
https://docs.flutter.dev/deployment/android#building-the-app-for-release

Solution

Update all Flutter samples including this

No artifacts were found in Unity Build

Hi, We are facing issue in artifacts section in codemagic.yaml file. Everything is just fine but wen creating build it says

== Gathering artifacts ==
No artifacts were found

articats are mentioned in yaml file. We followed these guidelines to create Unity application
Building Unity mobile apps

Please help what could be the issue.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.