<commit_before># -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios-extension'

begin
  require 'bundler'
  Bundler.require
rescue LoadError
end

Motion::Project::App.setup do |app|
  # Use `rake config' to see complete project settings.
  app.name = '<%= name %>'
  app.frameworks << 'Social'
  app.info_plist['NSExtension'] = {
    'NSExtensionAttributes' => {
      'NSExtensionActivationRule' => {
        'NSExtensionActivationSupportsFileWithMaxCount' => 0,
        'NSExtensionActivationSupportsImageWithMaxCount' => 1,
        'NSExtensionActivationSupportsMovieWithMaxCount' => 0,
        'NSExtensionActivationSupportsText' => false, 
        'NSExtensionActivationSupportsWebURLWithMaxCount' => 0
      },
      'NSExtensionPointName' => 'com.apple.share-services',
      'NSExtensionPointVersion' => '1.0'
    },
    'NSExtensionPrincipalClass' => 'ShareViewController',
    'NSExtensionPointIdentifier' => 'com.apple.share-services'
  }
end
<commit_msg>[RM-678] fix info.plist in share extension to solve ERROR ITMS-9000<commit_after># -*- coding: utf-8 -*-
$:.unshift("/Library/RubyMotion/lib")
require 'motion/project/template/ios-extension'

begin
  require 'bundler'
  Bundler.require
rescue LoadError
end

Motion::Project::App.setup do |app|
  # Use `rake config' to see complete project settings.
  app.name = '<%= name %>'
  app.frameworks << 'Social'
  app.info_plist['NSExtension'] = {
    'NSExtensionAttributes' => {
      'NSExtensionActivationRule' => {
        'NSExtensionActivationSupportsFileWithMaxCount' => 0,
        'NSExtensionActivationSupportsImageWithMaxCount' => 1,
        'NSExtensionActivationSupportsMovieWithMaxCount' => 0,
        'NSExtensionActivationSupportsText' => false, 
        'NSExtensionActivationSupportsWebURLWithMaxCount' => 0
      },
      'NSExtensionPointIdentifier' => 'com.apple.share-services'
    },
    'NSExtensionPrincipalClass' => 'ShareViewController',
    'NSExtensionPointIdentifier' => 'com.apple.share-services'
  }
end

{'fraction_non_alphanumeric': 0.1307541625857003, 'fraction_numerical': 0.00930460333006856, 'mean_word_length': 4.120300751879699, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5012276', 'n_tokens_mistral': 695, 'n_tokens_neox': 658, 'n_words': 107}