Skip to content

Commit

Permalink
Updates examples (#269)
Browse files Browse the repository at this point in the history
* Updates examples

* adds links
  • Loading branch information
michaelfarrell76 authored Nov 8, 2023
1 parent 71a2994 commit 53c053e
Show file tree
Hide file tree
Showing 14 changed files with 16,865 additions and 4 deletions.
51 changes: 51 additions & 0 deletions .pnp.cjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ repos:
- id: check-case-conflict
- id: check-executables-have-shebangs
- id: check-added-large-files
exclude: (yarn.lock|.yarn/|.pnp.cjs)
exclude: (yarn.lock|.yarn/|.pnp.cjs|examples/classifications.yml)
- id: check-json
exclude: (.vscode/|tsconfig.json|.devcontainer/)
- id: detect-private-key
Expand Down
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -713,6 +713,12 @@ Then, you'll need to grab that `dataSiloId` and a Transcend API key and pass it
yarn tr-discover-silos --scanPath=./myJavascriptProject --auth={{api_key}} ---dataSiloId=abcdefg
```

Here are some examples of a [Podfile](./examples/Podfile) and [gradle file](./examples/build.gradle). These are scanned like:

```sh
yarn tr-discover-silos --scanPath=./examples/ --auth=$TRANSCEND_API_KEY ---dataSiloId=b6776589-0b7d-466f-8aad-4378ffd3a321
```

This call will look for all the package.json files that in the scan path `./myJavascriptProject`, parse each of the dependencies into their individual package names, and send it to our Transcend backend for classification. These classifications can then be viewed [here](https://app.transcend.io/data-map/data-inventory/silo-discovery/triage). The process is the same for scanning requirements.txt, podfiles and build.gradle files.

You can include additional arguments as well:
Expand Down
46 changes: 46 additions & 0 deletions examples/Podfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Uncomment the next line to define a global platform for your project
# platform :ios, '9.0'

target 'YourAppTargetName' do
# Comment the next line if you don't want to use dynamic frameworks
use_frameworks!

# Pods for YourApp

# Marketing
pod 'Braze-iOS-SDK' # Braze (formerly Appboy) for marketing automation
pod 'Branch' # Branch for deep linking and attribution

# Analytics
pod 'Firebase/Analytics' # Firebase for analytics and other Google services
pod 'Mixpanel' # Mixpanel for advanced analytics
pod 'Amplitude-iOS', '~> 8.0' # Amplitude for event tracking

# Advertising
pod 'Google-Mobile-Ads-SDK' # Google Mobile Ads for monetization
pod 'FacebookAdsSDK' # Facebook Ads SDK for advertising
pod 'MoPub-SDK' # MoPub for ad serving

# Additional utilities that might be used alongside marketing and advertising
pod 'Alamofire', '~> 5.2' # Networking library for making HTTP requests
pod 'SDWebImage' # Asynchronous image loading

# Other dependencies often used in conjunction with marketing and advertising
pod 'AppsFlyerFramework' # AppsFlyer for app tracking and attribution
pod 'Adjust' # Adjust for attribution and analytics
pod 'Flurry-iOS-SDK/FlurrySDK' # Flurry for analytics and ads

# Ensure you include 'use_frameworks!' if one of your pods uses Swift
# ...

end

# Add post-install hooks if necessary, for configuring specific pod settings
post_install do |installer|
installer.pods_project.targets.each do |target|
target.build_configurations.each do |config|
config.build_settings['SWIFT_VERSION'] = '5.0' # Set a global Swift version for all pods
# Other configurations
end
end
end
55 changes: 55 additions & 0 deletions examples/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
apply plugin: 'com.android.application'

android {
compileSdkVersion 30
defaultConfig {
applicationId "com.yourcompany.yourapp"
minSdkVersion 16
targetSdkVersion 30
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'

// Braze (formerly Appboy) SDK for marketing
implementation 'com.appboy:android-sdk-ui:14.0.0'

// Branch SDK for deep linking and attribution
implementation 'io.branch.sdk.android:library:5.0.1'

// Google Firebase Analytics
implementation 'com.google.firebase:firebase-analytics:18.0.0'

// Google Mobile Ads SDK
implementation 'com.google.android.gms:play-services-ads:19.7.0'

// Facebook Ads SDK
implementation 'com.facebook.android:audience-network-sdk:6.2.0'

// Mixpanel for analytics
implementation 'com.mixpanel.android:mixpanel-android:5.8.7'

// Amplitude for event tracking
implementation 'com.amplitude:android-sdk:2.30.0'

// Other common libraries for network requests, image loading, etc.
implementation 'com.squareup.retrofit2:retrofit:2.9.0'
implementation 'com.squareup.okhttp3:okhttp:4.9.0'
implementation 'com.squareup.picasso:picasso:2.71828'

// Add more dependencies as needed
}

// ADD THIS AT THE BOTTOM
apply plugin: 'com.google.gms.google-services' // Google Services plugin
Loading

0 comments on commit 53c053e

Please sign in to comment.